Skip to main content
Glama

Scale keyframe timing

scale_keyframe_timing

Stretch or compress keyframe timing around a pivot time to retime animation speed while preserving easing curve shape.

Instructions

Stretch or compress keyframe timing around a pivot time (default: first selected key). factor 2 = twice as slow, 0.5 = twice as fast. Ease speeds are rescaled so the curves keep their shape.

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>",
      "factor": "<factor>"
    },
    "name": "scale_keyframe_timing"
  }
}

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.
pivotNoTime that stays fixed (default: first affected key).
factorYesTime scale factor.
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?

Beyond the annotations (which only say this is a non-read-only, non-destructive, non-open-world operation), the description discloses a non-obvious side effect the agent could not anticipate: ease speeds are rescaled so curves keep their shape. That is exactly the kind of behavior an agent needs before mutating animation data.

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?

Three short sentences, front-loaded with the action, then the factor convention, then the ease side effect; nothing is padding. Minor deduction for the pivot default being restated in a slightly different form than the schema, which creates ambiguity rather than value.

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 mutation tool with 6 parameters, 3 required, full schema coverage and no output schema, the definition covers action, scaling convention, pivot, and the ease-rescaling side effect. It leaves unstated what happens to keys outside the affected set and what the tool returns, but those gaps are modest given the schema's rich key-selection documentation.

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 is 3; the description earns an extra point by giving the numeric interpretation of 'factor', which the schema only states as 'Time scale factor.' with exclusiveMinimum 0. The pivot explanation is largely duplicated from the schema, and the description's 'first selected key' subtly conflicts with the schema's 'first affected key'.

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 verb phrase 'Stretch or compress keyframe timing around a pivot time' names a precise operation and resource, and the factor sentence makes the transformation concrete. It does not name a sibling it differs from (e.g. set_keyframe_ease), so an agent must infer the boundary from siblings alone.

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 factor examples ('2 = twice as slow, 0.5 = twice as fast') give practical direction on how to call it, and the pivot default is stated. There is no explicit when-to-use/when-not guidance, e.g. no mention that this is for relative retiming rather than absolute retiming via set_layer_timing.

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