Skip to main content
Glama

get_usd_prim_metadata

Read-onlyIdempotent

Read metadata for a USD prim on a registered stage, returning one key's value or all authored and fallback entries with a count. Read-only.

Instructions

Read the metadata of a prim on a registered USD stage: one key (present plus value as {type, value}) or, with no key, all entries (authored and fallback) plus count. Above 100 entries only count and a note return; unsupported value types become a placeholder string. Read-only.

Returns: { present: bool, key: string, value: object, metadata: object, count: number, note?: string }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoMetadata field to read, e.g. "documentation"; empty or omitted (default) returns all entries.
prim_pathYesAbsolute SdfPath of an existing prim, e.g. "/World/Cube".
stage_nameNoName the stage was registered under by create_usd_stage or open_usd_stage; a stage already in the USD cache also matches by the end of its root layer identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.2.0
    • changedInput schema / properties / key / description
      Previous value: -"Specific key to read. Empty (default) returns GetAllMetadata"New value: +"Metadata field to read, e.g. \"documentation\"; empty or omitted (default) returns all entries."
    • changedInput schema / properties / prim_path / description
      Previous value: -"Target prim path"New value: +"Absolute SdfPath of an existing prim, e.g. \"/World/Cube\"."
    • changedInput schema / properties / stage_name / description
      Previous value: -"Stage cache key"New value: +"Name the stage was registered under by create_usd_stage or open_usd_stage; a stage already in the USD cache also matches by the end of its root layer identifier."
  2. First observedv1.1.0

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds substantial behavior beyond the annotations: entries above 100 collapse to count plus a note, and unsupported value types are downgraded to a placeholder string. These truncation and coercion caveats are exactly the kind of operational detail an agent needs and annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but efficient: the mode behavior and the caveats come first, then a compact return shape. The sentence structure is slightly run-on, but every clause carries information and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no formal output schema, the description compensates by enumerating the return object fields (present, key, value, metadata, count, note). For a read-only three-parameter tool with full annotation coverage, this is nearly complete; only the stage_name resolution nuance is left to the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents key, prim_path, and stage_name. The description largely restates the key semantics ('empty or omitted returns all entries') and adds the {type, value} value shape, but contributes little beyond the schema's own field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Read the metadata of a prim on a registered USD stage,' with the key/no-key modes spelled out. It is clearly distinguishable in intent from mutation siblings like set_usd_prim_metadata, though it never names the neighboring read tools (get_usd_prim_info, list_usd_prim_attributes) to route the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the two modes (single key vs all entries) but gives no when-to-use guidance, no prerequisites, and no reference to alternative read tools. The agent must infer selection criteria between this and siblings like get_usd_attribute_value on its own.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools