Skip to main content
Glama

Add animation to project

spine_add_animation
Destructive

Adds one Spine 4.3 JSON animation to a .spine project. Use dry-run to validate against the skeleton; apply backs up, imports only that animation, re-exports, verifies, and rolls back on mismatch.

Instructions

Adds one Spine 4.3 JSON animation to a .spine project. Dry-run validates against the skeleton; apply backs up, imports only this animation through the CLI, re-exports, verifies and rolls back on any mismatch. Existing names need replace; prefer a new name. Times in seconds; rotate uses value; bezier curve is absolute [cx1,cy1,cx2,cy2] per channel.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project": "<project>",
      "name": "<name>",
      "animation": "<animation>"
    },
    "name": "spine_add_animation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
applyNo
editorNo
projectYes.spine project
replaceNo
skeletonNo
animationYes
stagingPathNo
allowUpgradeNoWrite an older-version project
loopAnimationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.70.1

TDQS

A4/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=true; the description goes well beyond by disclosing the full apply pipeline: backup, CLI import of only this animation, re-export, verification, and automatic rollback on any mismatch. That rollback guarantee is exactly the kind of safety detail an agent needs before invoking a destructive write, and it is consistent with the destructive annotation.

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?

Three tightly packed sentences with the core action and mode semantics front-loaded, then collision guidance, then payload conventions. No filler, though the final sentence compresses several distinct payload rules together in a way that reads as dense rather than cleanly structured.

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

Completeness3/5

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

For a destructive, 10-parameter tool with a nested free-form animation object and no output schema, the description covers the workflow and safety model well but leaves several parameters opaque, notably the editor enum choices and stagingPath. An agent can call it correctly in the common case but would be guessing on those options.

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?

With only 20% schema description coverage across 10 parameters, the description has to compensate more than it does. It clarifies apply (dry-run vs apply), replace (collision handling), and animation payload conventions (seconds, rotate uses `value`, absolute bezier curve per channel), but leaves editor's enum values, stagingPath, skeleton, and loopAnimations unexplained. Useful additions, incomplete coverage.

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 first sentence states a specific verb, resource, format and target: 'Adds one Spine 4.3 JSON animation to a .spine project.' That is far more precise than the title alone and implicitly separates it from edit/derive/generate siblings by scoping to a single animation against an existing project. It stops short of naming which sibling to use for related tasks, so it lands at 4 rather than 5.

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 distinguishes the two modes clearly: dry-run validates against the skeleton, apply performs the real import. It also gives a decision rule for name collisions ('Existing names need replace; prefer a new name'). What it lacks is any explicit routing to alternatives (e.g., when to use spine_edit_animation instead), so it is clear context without exclusions.

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