Skip to main content
Glama

Set clip time interpolation

set_clip_time_interpolation
Idempotent

Set how a video clip generates in-between frames when its speed or frame rate differs from the sequence, choosing frame sampling, blending, or optical flow for the desired motion look.

Instructions

Choose how a video clip builds in-between frames when its speed or frame rate differs from the sequence: frame_sampling (repeat/drop frames), frame_blending (cross-fade frames) or optical_flow (synthesise frames from motion; slowest, smoothest for slow motion). Video clips only (BAD_ARGS for audio). Leaves the sequence active. Returns time_interpolation and frame_blend as read back.

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": {
      "mode": "<mode>"
    },
    "name": "set_clip_time_interpolation"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesTime interpolation mode: "frame_sampling", "frame_blending" or "optical_flow".
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
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

A4.4/5.0
Behavior4/5

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

Annotations already declare non-read-only, idempotent, non-destructive, closed-world, so the safety bar is partly met. The description adds real context beyond them: audio clips raise BAD_ARGS, the sequence is left active after the call, and the response echoes time_interpolation and frame_blend as read back — useful for confirming the write took effect on an idempotent setter.

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?

Front-loads the purpose, then mode semantics, then constraints and return values in a compact multi-clause form with no filler sentences. The nested parentheticals are dense but each clause carries distinct information; slightly heavier punctuation than ideal.

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 7-parameter setter with no output schema, the description covers purpose, mode selection, media-type restriction, side effects on sequence state, and return fields. Nothing an agent needs to invoke it correctly is missing.

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 baseline is 3, but the description goes further by explaining what each mode value actually does to frames (repeat/drop, cross-fade, motion synthesis) and its performance cost — semantics the enum-only schema does not convey. The clip/track/sequence targeting parameters are left entirely to the schema, which is acceptable given full coverage.

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 ('Choose how a video clip builds in-between frames') and resource (clip time interpolation), and enumerates the three modes it sets. An agent can immediately tell this configures retiming behaviour rather than keyframe or LUT interpolation, which are the adjacent siblings.

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?

Gives explicit selection guidance among the three modes with tradeoffs ('optical_flow ... slowest, smoothest for slow motion'; frame_sampling = repeat/drop; frame_blending = cross-fade) and an applicability constraint ('Video clips only (BAD_ARGS for audio)'). It does not explicitly rule out or point to the near-named sibling set_clip_frame_blend, but the when-to-use context for the enum values 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