Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

modify_anim_state_graph

Destructive

Apply a batch of structural operations to an animation state graph as one undoable transaction. Manage layers, states, transitions, conditions, and parameters in a single call.

Instructions

Apply a validated batch of structural operations to an anim state graph as one undoable transaction. Add operations may omit id to allocate one; generated ids and the resulting graph are returned. State deletion also deletes attached transitions. Parameter deletion is rejected while conditions use it. Use layer.update defaultStateId to change a layer default before removing its old default state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetIdYesAnim state graph asset id
operationsYes
Behavior5/5

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

Beyond the annotations, the description discloses important behaviors: the operation runs as one undoable transaction, add operations can omit ids, state deletion cascades to attached transitions, and parameter deletion is rejected while conditions reference it. These are meaningful edge-case behaviors that an agent could not infer from the schema alone and that materially affect invocation.

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

Conciseness5/5

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

The description is packed with useful information and no filler. Each sentence earns its place: transactionality, id allocation and return behavior, cascading deletion, and a specific layer default workflow. The core purpose is front-loaded before edge cases.

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?

Given the tool's complexity and the absence of an output schema, the description covers the key return value (generated ids plus resulting graph) and several critical constraints. It does not enumerate all operation kinds or describe validation failure behavior, but those are largely captured in the detailed input schema and the high-level contract is sufficiently complete for correct invocation.

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?

The schema documents the operation kinds and their fields in detail, while the description adds semantic value by explaining that add operations may omit id to have one allocated and that generated ids plus the resulting graph are returned. It also clarifies the defaultStateId workflow. With only 50% schema description coverage, the description partially compensates for the gaps, though it does not fully explain every operation contract.

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 clearly states the tool's purpose: apply a validated batch of structural operations to an anim state graph as one undoable transaction. It specifies a concrete verb, resource, and scope, and goes beyond a simple restatement by mentioning returned generated ids and the resulting graph. This is easily distinguishable from read-only siblings like get_anim_state_graph.

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?

The description gives concrete guidance on when to use this tool: for validated batch mutations that should be undoable. It also provides a specific procedural tip about using layer.update defaultStateId before removing an old default state. It does not explicitly say when not to use it or name alternatives, but the usage context is still sufficiently clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/playcanvas/editor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server