Skip to main content
Glama

Remove a keyframe

remove_keyframe
Destructive

Remove one effect-parameter keyframe at or near a given time using a tolerance. Returns the removed time and remaining keyframe count, and fails if no keyframe is found.

Instructions

Remove the keyframe of an effect parameter at a time. The nearest keyframe within tolerance seconds is removed; fails with NOT_FOUND when there is none. Returns removed_time and the remaining keyframe_count. Use remove_keyframes_in_range or clear_keyframes for several.

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": "remove_keyframe"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeYesTime of the keyframe, in seconds (see time_base).
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.
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.6/5.0
Behavior5/5

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

Goes well beyond the destructive/non-idempotent annotations by disclosing the nearest-match tolerance behavior, the NOT_FOUND failure mode when no keyframe is in range, and the return payload (removed_time, keyframe_count) — important since there is no output schema. An agent knows what it can lose and what it gets back before calling.

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 its matching rule, then the failure/return contract, then the sibling escape hatch. Every sentence carries distinct information with no repetition of the schema.

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 13-parameter destructive tool with no output schema, the description covers the matching semantics, error case, and return values adequately, leaving addressing detail to the well-documented schema. It stops short of mentioning reversibility/undo or what happens if clip identifiers are ambiguous, which would fully close the loop.

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 coverage is 100%, so the schema already documents tolerance, time_base, and the clip/effect/param addressing options in more detail than the description does. The description only echoes the tolerance idea, adding no syntax or fallback ordering beyond the schema; 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 a precisely scoped resource: a single keyframe of an effect parameter, matched as the nearest within tolerance. That scope (one keyframe, nearest-match) distinguishes it cleanly from remove_keyframes_in_range and clear_keyframes without needing their 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?

Explicitly routes the agent elsewhere for the multi-keyframe cases: 'Use remove_keyframes_in_range or clear_keyframes for several.' That is a concrete when-not condition tied to named alternatives, not merely implied usage.

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