Skip to main content
Glama

create_usd_attribute

Create a typed USD attribute on an existing prim, returning it or reusing an existing attribute. Edits the open stage in memory; save the stage separately to persist changes.

Instructions

Create an attribute of a given USD type on a prim of an open stage, or return the existing one with created false. Edits the stage in memory; save_usd_stage writes it. Returns name, type_name, cpp_type and created; author its value with set_usd_attribute_value.

Returns: { prim_path: string, name: string, type_name: string, cpp_type: string, created: bool }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
attr_nameYesAttribute name (e.g. "size", "displayColor")
prim_pathYesAbsolute SdfPath of an existing prim on that stage, e.g. "/World/Cube".
type_nameYesUSD type name (e.g. "float", "float3", "token", "asset")
stage_nameYesName the stage was registered under by open_usd_stage (default the file basename) or create_usd_stage (default "Untitled").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.2.0
    • changedInput schema / properties / prim_path / description
      Previous value: -"Target prim path"New value: +"Absolute SdfPath of an existing prim on that stage, e.g. \"/World/Cube\"."
    • changedInput schema / properties / stage_name / description
      Previous value: -"Stage cache key"New value: +"Name the stage was registered under by open_usd_stage (default the file basename) or create_usd_stage (default \"Untitled\")."
  2. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false). The description adds real behavioral context beyond that: the mutation is in-memory only until save_usd_stage, and re-invoking returns the existing attribute with created=false rather than duplicating. This persistence and get-or-create detail is valuable and not encoded in the annotations.

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?

The purpose is front-loaded in the first sentence, followed by persistence and follow-up guidance. The return fields are stated twice (inline and in a Returns block), which is mildly redundant, but the overall length is appropriate for the tool's complexity.

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?

With no output schema, the description correctly carries the return contract (prim_path, name, type_name, cpp_type, created). Combined with the open-stage precondition, in-memory edit model, save step, and the pointer to set_usd_attribute_value, an agent has everything needed to invoke and chain this tool.

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 description coverage is 100%, so all four parameters (attr_name, prim_path, type_name, stage_name) are already documented with examples in the schema. The description references the USD type but adds no syntax or format detail beyond what the schema provides, so the baseline 3 applies.

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 (create an attribute of a given USD type on a prim of an open stage) and clarifies the get-or-create semantics (returns existing with created=false). It also distinguishes itself from the sibling set_usd_attribute_value by naming that tool as the way to author the value.

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

Usage Guidelines4/5

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

Gives clear workflow context: the stage must already be open, edits are in-memory, and save_usd_stage persists them; set_usd_attribute_value is named for the follow-up step. It lacks an explicit when-not-to-use statement, but the surrounding guidance is strong enough that an agent can sequence it correctly.

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