Skip to main content
Glama
dha-aa
by dha-aa

Edit Keyframes

edit_keyframes
Destructive

Edit single keys on one property, in order, leaving the others. Address a key by t (within half a frame) or index (1-based).

Instructions

Edit single keys on one property, in order, leaving the others. Address a key by t (within half a frame) or index (1-based). set creates a key at t (v or the current value) or updates one; spatial_in/out are motion-path tangents relative to the key. move keeps every setting. Returns the edited keys (get_keyframes lists all).

Input Schema

NameRequiredDescriptionDefault
pathYes
editsYes
layer_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.23.0
    • changedInput schema / properties / edits / items / properties / ease_in / anyOf
      Previous value: -[
      -  {
      -    "const": "easy",
      -    "type": "string"
      -  },
      -  {
      -    "properties": {
      -      "influence": {
      -        "default": 33.33,
      -        "type": "number"
      -      },
      -      "speed": {
      -        "default": 0,
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "const": "easy"
      +  },
      +  {
      +    "properties": {
      +      "influence": {
      +        "default": 33.33,
      +        "type": "number"
      +      },
      +      "speed": {
      +        "default": 0,
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / edits / items / properties / ease_out / anyOf
      Previous value: -[
      -  {
      -    "const": "easy",
      -    "type": "string"
      -  },
      -  {
      -    "properties": {
      -      "influence": {
      -        "default": 33.33,
      -        "type": "number"
      -      },
      -      "speed": {
      -        "default": 0,
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "const": "easy"
      +  },
      +  {
      +    "properties": {
      +      "influence": {
      +        "default": 33.33,
      +        "type": "number"
      +      },
      +      "speed": {
      +        "default": 0,
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / edits / items / properties / v / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "items": {
      -      "type": "number"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": [
      +      "number",
      +      "string",
      +      "boolean",
      +      "object"
      +    ]
      +  },
      +  {
      +    "items": {
      +      "type": "number"
      +    },
      +    "type": "array"
      +  }
      +]
  2. First observedv2.22.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this as a destructive, non-idempotent mutation, so the description does not need to carry the full safety burden. It adds useful behavioral details such as half-frame key matching, 1-based indexing, set creating or updating a key, move preserving every setting, spatial tangents being relative to the key, and returning the edited keys. It does not explicitly describe delete behavior, which is a minor remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded, with no filler. Each sentence conveys operational meaning about scope, key addressing, action semantics, or return behavior.

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 complex nested keyframe-editing tool with no output schema, the description covers core behavior and return values well. However, it omits explicit semantics for the delete action and several nested edit fields, leaving some gaps that the schema alone must resolve.

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?

Although top-level schema coverage is low, the description adds important meaning for core parameters: key addressing by t or index, the half-frame tolerance, set/create/update semantics for t and v, move preserving settings, and spatial_in/out being relative motion-path tangents. It does not cover every nested field such as interp, roving, ease, or auto_bezier, but it substantially compensates for the most ambiguous edit parameters.

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?

The description states a specific verb and resource: editing single keys on one property while leaving other keys untouched. This clearly distinguishes it from bulk alternatives such as set_keyframes and from get_keyframes, which is named for listing.

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?

It gives clear context for when this tool is appropriate: editing individual keys without affecting the rest, and points to get_keyframes for listing all keys. It does not explicitly state when to prefer set_keyframes or other siblings, but the usage context is clear.

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