Skip to main content
Glama

define_usd_prim

Destructive

Defines a USD prim at a given path on a registered stage, creating missing ancestors and setting type/specifier; omit type_name to retype it to Xform.

Instructions

Define a prim (specifier def) of type_name at prim_path on a registered USD stage, at its current edit target, defining missing ancestors as typeless prims. On an existing prim of another type it replaces the type, so leaving type_name out retypes it to Xform. The requested specifier is then authored at the edit target (specifier_set_ok); specifier reports it only when that write succeeded, and a failed write fails the call. An unknown specifier is refused before anything is authored. In memory only: save_usd_stage writes it. override_usd_prim authors an over instead; set_usd_prim_type changes only the type.

Returns: { prim_path: string, type_name: string, specifier?: string, is_valid: bool, specifier_set_ok: bool, requested?: object }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
prim_pathYesAbsolute SdfPath, e.g. /World/Cube
specifierNo"Def" | "Over" | "Class", case-insensitive; anything else is refused. Default: Def
type_nameNoUSD type name (Xform, Mesh, Cube, Scope, Camera, DistantLight...). Default: Xform
stage_nameNoName the stage was registered under

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.2
    • changedInput schema / properties / specifier / description
      Previous value: -"\"Def\" | \"Over\" | \"Class\". Default: Def"New value: +"\"Def\" | \"Over\" | \"Class\", case-insensitive; anything else is refused. Default: Def"
  2. First observedv1.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true) by disclosing what is actually destroyed or mutated: an existing prim of another type is replaced, missing ancestors are created as typeless prims, an unknown specifier is refused before anything is authored, and a failed specifier write fails the whole call. It also flags the in-memory-only behavior and the persistence escape hatch.

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 and front-loaded: the core action and scope come first, then consequences, then alternatives, then a compact Returns block. It is information-rich rather than padded, though the sentences pack multiple clauses and could be marginally tighter.

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

Completeness5/5

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

For a mutation tool with no output schema, the description supplies the return shape (prim_path, type_name, specifier, is_valid, specifier_set_ok, requested), the failure semantics, and the interaction with save_usd_stage. Nothing an agent needs to invoke or interpret it is missing.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline would be 3, but the description adds real semantic meaning: the default type_name is Xform and leaving it out on an existing prim retypes it, and the specifier is only reported when the write succeeded. This is more than a restatement of the schema.

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

Purpose5/5

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

States a specific verb and resource with full scope: define a prim of given type at prim_path on a registered stage, at the current edit target, creating typeless ancestors. It explicitly distinguishes itself from the sibling tools override_usd_prim (authors an over) and set_usd_prim_type (changes only the type), so an agent can route correctly without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use and when-not-to-use guidance: use override_usd_prim to author an over instead, set_usd_prim_type to change only the type, and save_usd_stage to persist since changes are in-memory only. Also states that omitting type_name intentionally retypes an existing prim to Xform, which is a non-obvious usage consequence.

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