Skip to main content
Glama

Set keyframe interpolation

set_keyframe_interpolation

Change keyframe interpolation to linear, bezier, or hold for chosen layer properties and keyframes, optionally setting separate in/out types with out defaulting to in.

Instructions

Set temporal interpolation (linear, bezier, hold) of keyframes. outType defaults to inType when only inType is given. Some properties (Source Text, checkboxes, dropdowns) only allow hold.

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

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.
inTypeNo
outTypeNo
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.9/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world mutation. The description goes beyond that by disclosing the outType defaulting rule and a property-type constraint that limits valid values, which is genuine behavioral context an agent could not infer from annotations alone. It stops short of describing what happens when a property has no keyframes or what the response contains.

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?

Three short sentences, front-loaded with the action and allowed values, followed by the default rule and the constraint. No filler or restatement of the tool name.

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 6-parameter mutation tool with no output schema, this covers the action, allowed values, a defaulting rule, and a failure-mode constraint, which is enough to call it correctly. Minor gaps remain around behavior when no keyframes exist and whether changes are undoable.

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 67%, and the two undocumented parameters (inType, outType) are exactly the ones the description clarifies via the defaulting rule, which is meaningful semantics not present in the schema. It also ties the 'hold'-only restriction to specific property paths. Layer/keys/property semantics are left entirely to the relatively rich schema.

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 (Set), resource (keyframe interpolation), and the exact allowed values (linear, bezier, hold). The word 'temporal' implicitly separates it from the sibling set_spatial_interpolation, but no sibling is named 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?

The note that Source Text, checkboxes, and dropdowns only allow 'hold' is a real precondition that tells the agent when certain values will fail. However, there is no explicit guidance on when to use this instead of set_spatial_interpolation or set_keyframe_ease, so the when-to-use routing is left to inference.

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