Skip to main content
Glama

save_usd_stage

Destructive

Persist a USD stage's root layer to disk, optionally forcing a re-write when the layer is clean and needs updating.

Instructions

Save a USD stage's root layer to disk. Wraps UE::FSdfLayer::Save(force) on the resolved stage's root layer. When force is false (default) and the root layer is clean, Save is a no-op and returns false — this is the USD-spec behavior and is reported honestly via 'saved:false' rather than as an error. Use force=true to re-write a clean layer (rare — typically only when a downstream tool requires a specific mtime).

Returns: { stage_name: string, resolution: string, saved: bool, dirty: bool, force: bool, real_path: string, errors: [string]? }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce-re-save even when the layer is clean (default false).
stage_nameYesName the stage was registered under, OR an absolute file path to auto-open.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description goes further by disclosing that a clean-layer save is a no-op returning false rather than an error, and by enumerating the exact return shape. This is meaningful behavioral context beyond what the structured fields provide.

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 most important fact (what it saves and the force semantics) is front-loaded in the first two sentences. The returns block is verbose but justified here because no output schema exists, so it is not wasted space.

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 two-parameter mutation with no output schema, the description supplies the return fields inline plus the no-op/error distinction and the force rationale. Nothing an agent needs to invoke it correctly 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 coverage is 100%, so both parameters are already documented, setting a baseline of 3. The description adds real semantic depth on 'force' by explaining the clean-layer no-op and its typical motivation, going beyond the terse schema text.

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?

The description opens with a precise verb+resource: 'Save a USD stage's root layer to disk,' and identifies the underlying operation (UE::FSdfLayer::Save). An agent can distinguish this from siblings like close_usd_stage or open_usd_stage without opening the schema.

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?

It clearly explains the default behavior (force=false no-op on a clean layer) and the narrow condition for when force=true is warranted (a downstream tool requiring a specific mtime). It gives clear usage context but doesn't explicitly route against alternative save tools such as save_asset or save_level.

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