Skip to main content
Glama

Add keyframes

add_keyframes

Add or overwrite keyframes on animatable After Effects properties, specifying time, value, interpolation, and optional ease. Returns the property's keys and final indexes of the added keys.

Instructions

Add (or overwrite) keyframes on any animatable property. Each key: {time, value, interpolation?, easeIn?, easeOut?}. easeIn/easeOut = {speed (units/sec, number or per-dimension array), influence (0.1-100 %)}. Returns the property's keys and the final indexes of the added 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": {
      "layer": "<layer>",
      "property": "<property>",
      "keys": "<keys>"
    },
    "name": "add_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
keysYesKeyframes to set.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
propertyYesProperty path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'.
interpolationNoPreset applied to every new key without its own interpolation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Because annotations declare a write operation (readOnlyHint=false, destructiveHint=false), the description adds real context beyond the annotations: it tells the agent that existing keys at the same time are overwritten and that the response contains the property's keys plus the final indexes of the added keys. The ease units (units/sec) and influence range (0.1-100%) are also disclosed. It does not say what happens when the property is locked, expression-driven, or not keyframable, so it does not reach a 5.

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?

The definition is front-loaded, with the core action and overwrite caveat first, followed by the key shape, ease semantics, and return value. It is dense and mostly earns its space, though the '{time, value, interpolation?, easeIn?, easeOut?}' recap duplicates the fully described schema.

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 a five-parameter mutation tool with nested key objects and no output schema, the description covers the essentials: overwrite semantics, ease units and ranges, interpolation presets, and the return contents. Remaining gaps are edge cases (locked properties, expression-driven properties, partial-failure behavior) that are minor for a normal call.

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?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning beyond the schema: ease speed is in units per second, influence is a percentage in the 0.1–100 range, and the per-key object shape is summarized. The schema's own ease descriptions only say 'Incoming/Outgoing temporal ease', so the description compensates where the schema is thin.

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 uses a specific verb and resource ('Add (or overwrite) keyframes') and scopes it to 'any animatable property', which separates it from narrower siblings such as set_source_text_keyframes or animate_property. The agent can tell what this tool does 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 Guidelines3/5

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

The parenthetical '(or overwrite)' implies behavior, and 'any animatable property' indicates that the tool is applicable, but no sibling tool is named and there are no when-not conditions. The agent must infer how to choose this tool over get_keyframes, remove_keyframes, shift_keyframes, or set_source_text_keyframes.

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

Deploy Server

Other Tools