Skip to main content
Glama

Kalpana Designer

Edit single keyframes

edit_keyframes

Tune existing motion one keyframe at a time: add a keyframe, move one in time, change its value or easing (or hold), delete one, or shift a layer's whole motion earlier or later. Keyframes are found by track and time (read them with get_design timeline_detail); a delete that empties a track removes it. Returns what was edited. If one edit cannot apply, none do; saved as a new revision that undo reverts. Use it for small timing and value fixes; to replace a whole track use animate with tracks, and to remove motion clear_animation.

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": {
      "page_id": "<page_id>",
      "edits": "<edits>",
      "intent": "<intent>"
    },
    "name": "edit_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsYesChanges applied in order; if one cannot apply, none do.
intentYesOne short sentence: what you change and why. Kept in the design history.
page_idYesThe page to work on, as returned by create_design.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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 by disclosing atomicity ('if one edit cannot apply, none do'), revision/undo semantics ('saved as a new revision that undo reverts'), and the side effect that deleting the last keyframe on a track removes the track. That side-effect disclosure matters given destructiveHint=false, and the undo guarantee justifies the non-destructive claim.

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?

Information-dense with no filler: the operation list comes first, then lookup method, then invariants, then sibling alternatives. The opening sentence is a long run-on enumeration, but every clause carries a distinct fact an agent needs.

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?

Covers atomicity, undo/revision, track cleanup, lookup path, and sibling alternatives for a mutation tool with 3 top-level params and deep nested schemas. The return value is only glossed as 'returns what was edited', which is thin given there is no output schema, but it's a minor gap.

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 100% and the KeyframeEdit oneOf already documents each op, the `at` millisecond match, `by`/`from` for shift, and value units. The description's 'keyframes are found by track and time' largely restates the schema's own wording, so it adds little parameter-level meaning beyond the baseline.

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?

Names a specific verb (tune/edit) and enumerates the concrete operations: add a keyframe, move it in time, change value/easing/hold, delete, or shift a layer's whole motion. It also distinguishes itself from siblings animate and clear_animation, so an agent can tell what this tool is for 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 Guidelines5/5

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

Explicit routing: 'Use it for small timing and value fixes; to replace a whole track use animate with tracks, and to remove motion clear_animation.' It also tells the agent to read current keyframes via get_design timeline_detail before editing, covering the prerequisite step.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources