Skip to main content
Glama

Read and author animations

godot_animation
Idempotent

Read, create, and edit Godot AnimationPlayer animations directly in .tscn or .tres files without opening Godot; inspect keyframes, tracks, loops, and write changes with undo.

Instructions

The animations of an AnimationPlayer, read from and written to the scene file (or an Animation .tres); no Godot needed. op read: every animation with length, loop mode and tracks, keyframes as time -> value. op create: a new animation (the library is made when the player has none). op add_track: a value track (path such as Sprite2D:position) or a method track with keys [{time, value | method + args, transition?}]. op set_key / remove_key: one keyframe of a track. op remove_track, op remove (an animation), op set (length, loop_mode, step). The track path must name a node that exists in the scene and a property its class has; otherwise the nearest name is given. Dry run by default; write: true writes, and godot_undo takes it back.

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": {
      "scene": "<scene>",
      "op": "<op>"
    },
    "name": "godot_animation"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYeswhat to do
argsNoset_key on a method track: its arguments
keysNoadd_track: the keyframes; a value is Godot text such as "Vector2(10, 0)" or a number
nameNocreate: the new animation's name
pathNoadd_track: node and property, e.g. "Sprite2D:position"; for a method track the node
stepNocreate or set: the snap step in seconds
timeNoset_key, remove_key: the keyframe's time
typeNoadd_track: the track type (default value)
sceneYesthe .tscn or .tres file (res:// path, or relative to the project)
trackNoset_key, remove_key, remove_track: the track index
valueNoset_key: the value (Godot text or a number)
writeNowrite the change (default false: show it)
interpNoadd_track: interpolation (0 nearest, 1 linear, 2 cubic)
lengthNocreate or set: length in seconds
methodNoset_key on a method track: the method
playerNopath of the AnimationPlayer in the scene (default: the only one)
updateNoadd_track: update mode (0 continuous, 1 discrete, 2 capture)
libraryNothe animation library name (default "")
animationNothe animation's name (read: only this one)
loop_modeNocreate or set: how it loops
loop_wrapNoadd_track: wrap interpolation at the loop
transitionNoset_key: the easing (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: dry run by default, write:true commits, and godot_undo reverses it, which is the key reversibility fact for a mutating tool. It also discloses validation behavior — the track path must name an existing node and a property its class has, otherwise the nearest name is returned — so the agent knows how failures surface. This is consistent with readOnlyHint=false/idempotentHint=true and the removals are framed as undoable.

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?

Front-loaded with the resource and the no-Godot-needed fact, then structured as 'op X:' clauses, which scales well for a 22-parameter, eight-op tool. The sentences are long and semicolon-chained, so density costs some readability, but almost nothing is redundant.

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 complex multi-op tool with no output schema, it covers the important return shape (animations with length, loop mode, tracks, and keyframes as time -> value) and the safety model. What a dry run actually prints and what a successful write returns are not described, leaving a small gap for an agent that needs to interpret results.

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 baseline is 3; the description still adds real meaning by tying parameter groups to ops and giving concrete formats (path as 'Sprite2D:position', keys as [{time, value | method + args, transition?}], values as Godot text like "Vector2(10, 0)"). A few parameters (interp, update, loop_wrap) are left to the schema alone.

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?

States the resource precisely (an AnimationPlayer's animations in a .tscn or Animation .tres) and then enumerates every op with a verb and object: read, create, add_track, set_key/remove_key, remove_track, remove, set. An agent can map its intent to a specific op 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?

Per-op guidance is explicit (which op adds a track, which edits a single keyframe, which changes length/loop/step) and the dry-run-by-default rule plus 'write: true writes' tells the agent exactly how to proceed. It does not name a sibling alternative to use instead when, e.g., an editor-based path would be preferable, so it stops short of full when/when-not coverage.

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