Skip to main content
Glama

Add a keyframe

add_keyframe

Add or update a keyframe on an effect parameter at a specified time, with optional value and interpolation, enabling the parameter's animation stopwatch when needed.

Instructions

Add a keyframe to an effect parameter at a time, optionally with a value and interpolation; turns animation (the stopwatch) on if needed. If a keyframe already exists at that time its value is updated. Without value the keyframe takes the value the parameter currently has at that time. Times are sequence seconds by default (see time_base). A parameter that cannot be keyframed fails with UNSUPPORTED. Returns time, clip_source_time, value and keyframe_count. Use add_keyframes for several keyframes, and the dedicated tools (animate_clip_transform, fade_in_clip, add_volume_keyframes) for common animations.

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": {
      "time": "<time>"
    },
    "name": "add_keyframe"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeYesKeyframe time, in seconds (see time_base).
valueNoValue at the keyframe (number, boolean, [x, y] or string). Omit to keep the value the parameter has at that time.
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
time_baseNoHow times are measured. "sequence" (default): sequence time, seconds from the start of the timeline. "clip": clip source time, seconds from the start of the source media (the unit Premiere stores keyframes in). Times in the result use the same base. The sequence-to-source conversion ignores clip speed: on a speed-changed or reversed clip use "clip".
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
param_nameNoParameter display name, case-insensitive, e.g. "Blurriness". The first match is used. Ignored when param_index is given.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
effect_nameNoEffect display name or match name, case-insensitive, e.g. "Gaussian Blur" or "Motion". The first match is used. Ignored when effect_index is given.
param_indexNo0-based parameter index (from get_effect_parameters). Required for parameters with an empty display name.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
effect_indexNo0-based index of the effect in the clip's effect list (from list_clip_effects). Use it when the clip has two effects with the same name.
interpolationNoInterpolation of the segment that starts at the keyframe: "linear", "hold" (value stays until the next keyframe), "ease_in" (fast start, slows into the next keyframe), "ease_out" (slow start, then faster), "ease_in_out" (slow at both ends) or "bezier" (marks the keyframe as Bezier; scripts cannot set its handles, so a keyframe that was linear keeps a straight segment: use the ease types for a curve).
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that animation is enabled if needed, existing keyframes are updated, unsupported parameters fail with UNSUPPORTED, and the default time base is sequence seconds. It also documents the return fields even though no output schema exists.

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?

The core action is front-loaded, and the paragraph is dense but free of filler. Return details and alternatives each earn their place in the definition.

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

Completeness5/5

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

For a complex mutation with 14 parameters and no output schema, the description covers purpose, side effects, failure behavior, return fields, time-base defaults, and alternatives. An agent has enough information to invoke it correctly.

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 the schema already documents all 14 parameters thoroughly. The description reinforces the default time base and optional value behavior but does not add substantial parameter meaning beyond the schema.

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 states a specific verb and resource: 'Add a keyframe to an effect parameter at a time.' It also distinguishes the tool from add_keyframes and dedicated animation helpers, so an agent can route correctly without opening sibling schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It names when to use add_keyframes for multiple keyframes and dedicated tools such as animate_clip_transform, fade_in_clip, and add_volume_keyframes for common animations. It also clarifies the existing-keyframe and omitted-value behaviors, which are important usage conditions.

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