Skip to main content
Glama

set_keyframes

Set keyframes on an After Effects layer property with per-key values and linear, easy ease, or hold interpolation, and optionally clear existing keyframes first.

Instructions

Set keyframes: keyframes=[{"time": 0, "value": [960,540]}, ...]. ease: linear | ease (easy ease, 33%) | hold. A per-key "ease" overrides it.

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

Input Schema

NameRequiredDescriptionDefault
compNo
easeNolinear
layerYes
propertyYes
keyframesYes
clear_existingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It explains the ease override rule but never says whether keyframes are appended or replace existing ones, what the default clear_existing=false actually means in practice, or what happens on invalid time/value input. For a mutation tool with zero structured safety metadata, this is thin.

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

Conciseness3/5

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

It is short and front-loads the keyframe example, which is the right priority. However, the second sentence is written as a compressed fragment ('ease: linear | ease (easy ease, 33%) | hold. A per-key "ease" overrides it.') that is terse to the point of ambiguity about which parameter it refers to.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A 6-parameter mutation tool with no annotations, no output schema, and 0% schema description coverage needs substantially more than two sentences. The description omits what the tool returns, how clear_existing behaves, and how comp/layer/property are resolved, leaving an agent to guess on several required inputs.

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

Parameters2/5

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

Schema description coverage is 0% across 6 parameters, and the description only compensates for two of them (keyframes object shape and the ease vocabulary, which is genuinely useful since the schema declares no enums). The consequential clear_existing flag, plus comp/layer/property resolution rules, remain entirely undocumented, so coverage is well short of adequate.

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 and resource ('Set keyframes') and immediately shows the expected data shape, so an agent knows this creates/updates keyframe data on a property. It does not differentiate itself from siblings like set_property or set_expression, which is the only thing keeping it off a 5.

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?

Usage is only implied by the verb – there is no statement of when to use this versus set_property (static value) or set_expression (animated by script), nor any prerequisites about the layer/property chain existing. The ease enumeration gives a hint about animation context but no explicit routing guidance.

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