Skip to main content
Glama

Set keyframes

cavalry_set_keyframes
Idempotent

Create keyframes on a layer, setting attribute values at specific frames and optionally applying Magic Easing for animation control.

Instructions

Create keyframes on a layer. Each keyframe sets one or more attribute values at a frame and can apply a Magic Easing to the keyframes it creates. Example: [{"frame": 0, "values": {"position.x": -300}, "easing": "SlowOut"}, {"frame": 30, "values": {"position.x": 300}}].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
layerIdYesCavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids.
keyframesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so safety profile is covered. Description adds the Magic Easing concept and example structure, but doesn't clarify what happens on frames that already have keyframes (overwrite? append?) or permission requirements.

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 a concrete example. Efficient but the example is long; still, it earns its place by clarifying structure.

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 mutation tool with annotations covering safety, the description is adequate but missing: behavior on existing keyframes, return format, and how it interacts with cavalry_set_attributes. No output schema to offload return details, so the description could say more about what's returned.

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 description coverage is 50%. The example clarifies the shape of the values map and easing application, which is helpful. However, the 'expression' property is not explained in the description, leaving half the nested parameter semantics to the schema alone.

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?

States a specific verb (Create) and resource (keyframes on a layer). Clear what it does, but doesn't explicitly differentiate from the sibling cavalry_delete_keyframes or cavalry_set_attributes.

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?

Implied usage by describing keyframe structure, but no explicit when-to-use vs cavalry_set_attributes or cavalry_delete_keyframes. An agent might wonder whether to set keyframes here or attributes elsewhere.

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