Skip to main content
Glama

Animate a clip transform property

animate_clip_transform

Animates one motion or opacity property of a video clip from one value to another over a time range with easing, adding two keyframes and replacing existing ones for that property.

Instructions

Animate one Motion/Opacity property of a video clip from a value to a value between two times, with easing. Properties and units: position [x, y] and anchor_point [x, y] (pixels or normalised per units, as in set_clip_position / set_clip_anchor_point), scale (percent), rotation (degrees), opacity (percent). Adds two keyframes; existing keyframes of that property between start and end are replaced, others are kept. Returns the property's 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": {
      "property": "<property>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "animate_clip_transform"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd value: a number, or [x, y] for position / anchor_point.
endNoEnd time in seconds (see time_base). Default: the clip's end.
fromYesStart value: a number, or [x, y] for position / anchor_point.
startNoStart time in seconds (see time_base). Default 0 = clip start.
unitsNoUnit of x/y. "pixels" (default): sequence-frame pixels for position (0,0 = top-left of the frame), source-frame pixels for the anchor point. "normalized": 0-1 fractions of the same frame (0.5, 0.5 = centre).
easingNoSpeed curve of the move. "linear" (default): constant speed. "ease_in": starts slowly and speeds up. "ease_out": starts fast and slows into the end value. "ease_in_out": slow at both ends. "hold": keeps the start value, then jumps to the end value at the end time.
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
propertyYesProperty to animate.
time_baseNoHow start/end are measured. "clip" (default): seconds from the clip's start on the timeline (0 = first frame of the clip). "sequence": seconds on the timeline.
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.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
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

A3.9/5.0
Behavior4/5

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

Annotations declare a non-read-only, non-idempotent, non-destructive mutation, and the description adds the crucial detail that only keyframes of that property between start and end are replaced while others are kept - a partial-overwrite semantic an agent could not infer from the schema. It also discloses the return payload (the property's keyframes) despite there being no output schema, though it doesn't cover failure modes or what happens if start > end.

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?

The core action and the destructive-scope caveat are front-loaded in the first two sentences, with the return value last - a sensible order. The middle sentence is dense with parenthetical unit qualifiers that partially duplicate the schema, costing a little economy, but nothing is wasted outright.

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 14-parameter mutation tool with no output schema, the description covers what the tool does, which properties/units are valid, what it overwrites, and what it returns. Remaining gaps are minor edge behavior (invalid time ranges, behavior when no clip is resolvable), and clip-targeting guidance is already fully carried by the schema.

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 every parameter is already documented, making 3 the baseline. The description reinforces the property/unit relationship and points to set_clip_position / set_clip_anchor_point for the [x, y] convention, but adds no new meaning for start, end, time_base, easing, or the clip-identification parameters beyond what the schema states.

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?

"Animate one Motion/Opacity property of a video clip from a value to a value between two times, with easing" names a specific verb (animate), resource (clip transform property), and the temporal scope. It then enumerates the supported properties with units, so an agent can distinguish this keyframe-insertion operation from the static siblings like set_clip_transform or set_clip_position.

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?

Usage is implied rather than stated: the 'from a value to a value between two times' framing tells an agent this is for time-varying changes, and the mention of set_clip_position / set_clip_anchor_point only cross-references unit conventions, not tool selection. There is no explicit 'use this instead of set_clip_transform when...' routing or statement of preconditions (e.g. clip must exist, property must be animatable).

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