Skip to main content
Glama

Animate Object

animate_object
Destructive

Keys object transforms and shape keys into a named animation clip on an NLA track for glTF export, replacing existing keys for doors, rotors, and morphs.

Instructions

Key an object's transform and shape keys into a named clip on an NLA track, exported as one glTF animation; a call replaces the object's keys in it. Returns: channels, frames, seconds, Godot warnings. WHEN TO CALL: for doors, rotors, morphs.

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": {
      "object": "<object>",
      "clip": "<clip>",
      "keys": "<keys>"
    },
    "name": "animate_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipYesAnimation name, shared across objects
keysYes{frame, location, rotation (degrees), scale, shape_key: {name: value}}; null skips an axis
loopNoRepeat; default as Godot reads the name
objectYesName
interpolationNoDefault linear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false; the description goes further by specifying that an existing clip's keys for that object are replaced and by enumerating the return payload (channels, frames, seconds, Godot warnings). That is real context an agent cannot get from the annotations alone. It does not cover permission needs or whether other objects' keys in the same clip are untouched.

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 core action, then the overwrite caveat, then returns, then a terse usage cue. Dense but every clause carries information; the telegraphic 'for doors, rotors, morphs' style is efficient rather than padded.

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?

A mutation tool with full schema documentation, destructive annotations, and a stated return shape leaves few gaps. Remaining ambiguity is minor: whether other objects' keys in a shared clip survive the call, and what a 'Godot warning' implies for the caller.

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 100% and already documents clip, keys, loop, interpolation, and object with defaults and types. The description adds only the overwrite rule ('a call replaces the object's keys in it'), which is about behavior rather than parameter meaning, so 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?

Uses a specific verb ('key') against a specific resource ('transform and shape keys into a named clip on an NLA track') and states the export artifact (one glTF animation). This is clearly not create_object or set_object, though no sibling is named explicitly to sharpen the boundary.

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 'WHEN TO CALL: for doors, rotors, morphs' line gives concrete usage contexts that an agent can pattern-match against a request. It stops short of exclusions or naming an alternative tool, so the agent must infer when not to use it.

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