Skip to main content
Glama

Add several keyframes

add_keyframes

Adds a batch of time/value keyframes to one effect parameter, updating any keyframe at an existing time and optionally replacing current keyframes.

Instructions

Add a batch of keyframes (time/value pairs, optional interpolation each) to one effect parameter; turns animation on if needed. A keyframe at an existing keyframe's time updates it. With replace_existing the parameter's current keyframes are removed first. Returns added, removed_existing and the resulting keyframe list (index, time, value).

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": {
      "keyframes": "<keyframes>"
    },
    "name": "add_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
keyframesYesKeyframes to add, each {time, value, interpolation?}.
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.
sequence_nameNoSequence name; used only when sequence_id is not given.
replace_existingNoRemove the parameter's existing keyframes first. Default false.

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?

With annotations already declaring readOnlyHint=false, destructiveHint=false and idempotentHint=false, the description still adds substantial context: animation is auto-enabled, same-time keyframes are updated in place, replace_existing deletes prior keyframes, and it even names the return fields (added, removed_existing, keyframe list with index/time/value) despite having no output schema. The opt-in deletion behaviour behind replace_existing is disclosed in text, so it is clarified rather than contradicted by destructiveHint=false.

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 compact sentences, front-loaded with the core action and followed by overwrite semantics, the replace flag, and the return shape — no filler or restated title language.

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 13-parameter mutation tool with full schema coverage and no output schema, the description covers the mutation semantics and even the return contents, which is everything an agent needs beyond structured fields.

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% and all 13 parameters are documented in-schema, so the schema already carries the semantics. The description only echoes replace_existing and the time/value/interpolation shape without adding syntax or constraints beyond what the schema states; baseline 3 applies.

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 and resource (add a batch of keyframes) plus the exact scope: one effect parameter, with time/value pairs and optional per-keyframe interpolation. The word 'batch' implicitly separates it from the singular add_keyframe sibling, and the note that it turns animation on if needed tells the agent the preconditions are handled.

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?

The definition gives clear operating context — one parameter at a time, existing keyframes at the same time are updated rather than duplicated, and replace_existing wipes current keyframes first. It stops short of explicitly routing against siblings (clear_keyframes, remove_keyframes_in_range, add_keyframe for a single key), so the alternative-selection guidance is only implied.

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