Skip to main content
Glama

Copy and edit animation keyframes

spine_edit_animation
Destructive

Edit Spine animation timelines safely: preview keyframe changes with dry-run, then import and verify through CLI.

Instructions

Copies source to name, edits timelines in order, then uses backed-up CLI import and readback verification. Dry-run by default. edits:[] duplicates. path is JSON segments, e.g. ['bones','head','rotate']; times are seconds. set replaces whole keys at matching times. easing is normalized; raw key.curve is absolute Spine 4.3. See docs/USAGE.md#keyframe-editing.

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>",
      "source": "<source>",
      "name": "<name>",
      "edits": "<edits>"
    },
    "name": "spine_edit_animation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
applyNo
editsYes
editorNo
sourceYes
projectYes
replaceNo
skeletonNo
stagingPathNo
allowUpgradeNo
loopAnimationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.70.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, but the description adds genuinely new behavioral context: a backup is taken, the write goes through a CLI import followed by readback verification, and the default is a dry run. Those facts materially change how an agent should sequence a destructive edit. It still does not say what verification failure looks like or what happens to the original when replace is set.

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 main behavior is front-loaded and every sentence carries information, with no filler. Some fragments are overly compressed ("edits:[] duplicates.", the easing/curve sentence), which costs a little clarity for a dense eleven-parameter tool.

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, eleven-parameter mutation with no output schema, the description covers the central edits mechanics and the safety model but leaves roughly half the parameters unexplained and says nothing about what is returned or how failures surface. It is adequate to attempt a call, not complete.

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 coverage is 0%, so the description carries the burden. It does well on the edits array: op semantics (set replaces whole keys at matching times), path as JSON segments with a concrete example, times in seconds, and easing normalization vs absolute raw key.curve. But editor, replace, skeleton, stagingPath, allowUpgrade, and loopAnimations are entirely undocumented in both schema and description.

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?

"Copies source to name, edits timelines in order" states a specific verb sequence and resource: it copies an existing animation to a new name and applies keyframe edits. That is far more than the title restates. It does not explicitly contrast with spine_derive_animation or spine_add_animation, so sibling differentiation is left implicit.

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?

"Dry-run by default" is real usage guidance because it tells the agent an explicit apply step is needed, and "edits:[] duplicates" signals the no-op copy case. However, there is no statement of when to prefer this over spine_derive_animation or spine_add_animation, and no exclusions.

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