Skip to main content
Glama

set_keyframes

Animate anything in a shot by setting, removing, or clearing keyframes on a track; control cast, item, text, light, scene, mask, or adjustment values over time.

Instructions

Animate anything in a shot (shot_id, or scene + shot; left out: the shot on screen) by hand with keyframes on a track. Tracks: "cast:" (x, y, z, size, spin, turn), "item:" (x, z, size), "text:" (x, y, size), "light:" (x, y, z, intensity, color), "scene:light" (level, ambient), "mask:shot", "adjust:", "element:". op set puts values at a time (a first key after 0 also keys the resting value at 0), remove deletes the key at that time, clear drops the track. One undo step for the person. For ready-made moves use direct_cast; for the camera use set_camera keys.

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": {
      "track": "<track>"
    },
    "name": "set_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoSeconds into the shot.
opNoset if left out.
easeNoHow it travels on to the next key: smooth, even, fast-start, slow-start, punch, bounce.
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
sceneNoScene index from 0 (with shot). Used when shot_id isn't given.
trackYesWhich thing, like "cast:member-1" or "scene:light" (ids from get_shot).
valuesNoLike {"x": 3, "size": 1.4}.
shot_idNoThe shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing a non-obvious side effect ('a first key after 0 also keys the resting value at 0'), the per-op effect (set places values, remove deletes the key, clear drops the track), and the undo granularity ('One undo step for the person'). The undo note also reconciles 'clear drops the track' with destructiveHint=false, since the deletion is reversible. It does not state what the tool returns, which is the only notable gap.

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-loads the action, then falls into a compact parenthetical for target resolution and a dense enumeration of track types. The track list is long but every entry carries new information; the closing sentence efficiently handles exclusions. Slightly dense as prose, but no filler.

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 an 8-parameter mutation tool with nested `values`, one enum, and no output schema, the definition covers target resolution, op defaults, easing, per-track channels, and undo behavior. The remaining gap is return behavior — with no output schema, the agent gets no signal about what comes back after a keyframe is set.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description still adds real meaning the schema lacks: it maps each track prefix to the exact animatable channels (e.g. 'cast:<member id>' takes x, y, z, size, spin, turn; 'light:<light id>' takes x, y, z, intensity, color). That channel list is the single most important thing an agent needs to build a valid `values` object and is absent from the schema.

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 a specific verb and resource: 'Animate anything in a shot ... by hand with keyframes on a track.' The enumerated track namespaces (cast:, item:, text:, light:, scene:light, mask:, adjust:, element:) make the scope concrete and separable from set_cast/set_light, which set state rather than animate over time.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes away to alternatives: 'For ready-made moves use direct_cast; for the camera use set_camera keys.' It also states the default target rule ('left out: the shot on screen') and default op ('set if left out'), so the agent knows both when to use this tool and how to call it minimally.

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