Skip to main content
Glama

set_usd_edit_target

DestructiveIdempotent

Point a USD stage's edit target at a chosen layer using stage name and optional layer index; subsequent mutations apply to that layer, not the root.

Instructions

Point the stage's edit target at a specific layer in the stack (mutations after this call land on the chosen layer, not the root).

Returns: { stage_name: string, layer_index: int, edit_target: string, edit_target_real_path: string, errors: [string]? }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stage_nameYesName the stage was registered under.
layer_indexNo0-based index into GetLayerStack(true) of the new edit target. Defaults to 0 (the root layer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true. The description adds real value by disclosing that subsequent mutations are redirected to the chosen layer rather than the root, which explains the destructive/idempotent profile. It does not, however, explain any persistence implications of the target change or what happens to layers that are muted or isolated.

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?

Two compact sentences with the behavioral effect front-loaded, followed by the return shape. The 'Returns:' block is genuinely useful since no output schema exists, though the '(mutations after this call...)' parenthetical slightly restates the first clause.

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?

For a two-parameter tool with no output schema, the description covers purpose, post-call effect, and the exact return object, which compensates for the missing output schema. The remaining gap is persistence semantics (whether the edit target survives a stage save), which an agent doing multi-step USD authoring could want.

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 both stage_name and layer_index (including the 0-based index and the root default) are already fully documented in the schema. The description only echoes the concept of a 'chosen layer' and 'root', adding no format or indexing detail beyond the structured data, so the baseline 3 applies.

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?

The description gives a specific verb+resource: it points the stage's edit target at a chosen layer in the stack, and explains the operational consequence ('mutations after this call land on the chosen layer, not the root'). That clearly distinguishes it from adjacent USD tools like insert_usd_sublayer, mute_usd_layer, and isolate_usd_layer, though it doesn't name any of them explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the sentence 'mutations after this call land on the chosen layer, not the root' tells the agent when the call matters, but there is no explicit guidance on when to switch layers, when not to, or how to revert to the root target beyond the schema's default note.

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