Skip to main content
Glama

Shift keyframes

shift_keyframes

Move keyframes in After Effects by a time offset while preserving ease and tangent settings. Specify all, selected, indexed, or ranged keys to retime animation without losing interpolation.

Instructions

Move keyframes in time by an offset (seconds, or '12f' / '-12f'), keeping all ease and tangent settings.

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>",
      "offset": "<offset>"
    },
    "name": "shift_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
keysNoKeyframes to affect: 'all' (default), 'selected', a 1-based index, an array of indexes, {start,end} time range (inclusive, either end optional), or {times:[...]} exact key times.
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
offsetYesTime offset; negative moves earlier.
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'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare the safety profile (not read-only, not destructive, not open-world), so the description's note that ease and tangent settings are preserved is genuinely useful extra behavior — an agent knows interpolation is not flattened. It leaves open what happens when shifted keys collide with existing ones or land before time zero, which would be the next thing to disclose.

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?

A single sentence that front-loads the action, then the offset format, then the preservation guarantee — every clause carries information an agent needs and nothing is repeated from the schema or title.

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 no output schema, the description covers the action, the offset syntax and the side-effect on easing, which is enough to call it correctly. It does not say what the response reports (e.g., count of moved keyframes) or how out-of-range shifts are handled, 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%, so layer, property, keys and comp are fully documented in the schema, making 3 the baseline. The description adds only the offset unit vocabulary ('12f', '-12f') and the direction convention, which the schema already partly covers with 'negative moves earlier'.

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?

The description gives a specific verb and resource ('Move keyframes in time by an offset') and even specifies the offset units, so an agent can immediately tell this operates on keyframe timing rather than layers or comp markers. It stops short of naming a sibling such as shift_layers_in_time to draw the boundary explicitly.

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: the verb 'move' signals a retiming operation as opposed to add_keyframes, remove_keyframes or copy_keyframes, but there is no explicit statement of when to pick this over shift_layers_in_time or what prerequisites exist (e.g., a selected layer or active comp). No exclusions or alternatives are offered.

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