Skip to main content
Glama

Set keyframe interpolation

set_keyframe_interpolation

Control how an effect parameter changes between keyframes by setting interpolation to linear, hold, bezier, or ease types for one or all keyframes in Premiere Pro.

Instructions

Set the interpolation of one keyframe (at time) or of all keyframes (all=true) of an effect parameter: linear, hold, bezier, ease_in, ease_out or ease_in_out. The interpolation governs the segment from that keyframe to the next one. Premiere cannot report interpolation back; check the effect with get_parameter_value_at_time. Fails with NOT_FOUND when no keyframe matches. Returns changed and the times of the changed keyframes.

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

Input Schema

NameRequiredDescriptionDefault
allNoApply to every keyframe of the parameter; time is then ignored. Default false.
timeNoTime of the keyframe, in seconds (see time_base). Required unless all is true.
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".
toleranceNoHow far from `time` the keyframe may be, in seconds. Default half a frame of the sequence.
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.
interpolationYesInterpolation 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.5/5.0
Behavior5/5

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

Annotations only declare the generic non-read-only/non-destructive/non-idempotent profile; the description adds real behavior: the NOT_FOUND failure mode, the return payload (changed plus changed keyframe times), the irreversibility signal that Premiere cannot report interpolation back, and the important caveat that a bezier keyframe cannot have its handles scripted.

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?

Four front-loaded sentences with no filler: purpose and value set first, then the segment semantics, then the read-back limitation and failure/return behavior. Sentences are dense and long, but every clause carries operational information an agent needs.

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 15-parameter mutation with no output schema, the description supplies the return shape, the error case, and the key caveat (no read-back, bezier handles unscriptable). What it omits – sequencing of the sequence/clip resolution chain and tolerance behavior – is fully covered by 100%-covered schema descriptions.

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 still adds meaning by noting that all=true overrides `time` and time is required otherwise, and by framing interpolation as the outgoing segment of a keyframe rather than the incoming one. Most remaining parameter detail (time_base, tolerance, indices) lives only in the schema and is not echoed.

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?

States a specific verb ('Set the interpolation') and resource ('keyframe', either one at `time` or all keyframes), plus the exact value domain. The sentence 'The interpolation governs the segment from that keyframe to the next one' pins down the semantics so the agent knows precisely what is being modified.

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

Usage Guidelines4/5

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

Explains the single-vs-all branch (all=true makes `time` irrelevant) and names get_parameter_value_at_time as the way to verify the result, since interpolation cannot be read back. It does not address when to prefer add_keyframe/remove_keyframe instead, but the write-on-existing-keyframe context is clear.

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