Skip to main content
Glama

Set speed

clip.set_speed
Idempotent

Speed up, slow down, ramp or reverse a clip and its linked clips. rate is constant; curve is a speed ramp over the clip. The clip keeps its source and its length changes; ripple (default) moves later clips. Pitch is kept unless preserve_pitch is false. Returns the new timeline_id (edit that one next), what changed, and where each changed clip now sits.

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": {
      "clip_id": "<clip_id>",
      "timeline_id": "<timeline_id>"
    },
    "name": "clip.set_speed"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNoConstant speed: 2 = twice as fast
curveNoSpeed ramp: rates at fractions of the clip as it plays after the change (first at 0, last at 1; 0.5 is halfway through the new length), linear between. timeline.get gives each point its clip frame and source frame
rippleNoMove later clips as the clip gets longer or shorter
clip_idYes
previewNoinline: image in the result; link: URI that renders on read; nonelink
reverseNo
interpolateNoVideo, when it shows fewer new frames a second than the sequence (slowed, or a lower frame rate; rate 1 smooths that): none repeats frames; blend crossfades neighbours; motion makes new frames from the movement (minterpolate, slow). Made once as a job of its own (job.list); a render that needs it names the job until it is done, and an export waits. Up to 6000 frames a clip
timeline_idYesTimeline handle; every edit returns a new one
other_tracksNoTracks holding neither this clip nor a clip linked to it (linked clips, such as its own sound, always change with it): what they do when this edit moves later clips. stay: they don't move, and the result warns which clips there now play early or late. sync: they get the same change, so titles, overlays and sound stay in step: time taken out here comes out of them too (like range.extract), time added here opens the same gap in them (clips crossing that point are split, as insert does). Locked tracks always staystay
preserve_pitchNoKeep voices at their pitch (default true)

Output Schema

NameRequiredDescriptionDefault
parentYesThe version this edit started from
changedYesWhat the edit added, removed or modified; a clip or transition says its track and where it now sits (frames, end exclusive)
clip_idNoThe clip this edit made or acted on (each tool says which)
previewYes
clip_idsNoEvery clip this edit made or acted on, linked ones included (each tool says which)
track_idNo
warningsYes
timeline_idYesThe new version: edit this one next (older ids stay valid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / other_tracks / description
      Previous value: -"What the other tracks do when this edit moves later clips on the clip's own tracks (linked clips always move with it). stay: they don't move, and the result warns which clips there now play early or late. sync: they get the same change, so titles, overlays and sound stay in step: time taken out here comes out of them too (like range.extract), time added here opens the same gap in them (clips crossing that point are split, as insert does). Locked tracks always stay"New value: +"Tracks holding neither this clip nor a clip linked to it (linked clips, such as its own sound, always change with it): what they do when this edit moves later clips. stay: they don't move, and the result warns which clips there now play early or late. sync: they get the same change, so titles, overlays and sound stay in step: time taken out here comes out of them too (like range.extract), time added here opens the same gap in them (clips crossing that point are split, as insert does). Locked tracks always stay"
    • addedOutput schema / properties / changed / description
      Added value: +"What the edit added, removed or modified; a clip or transition says its track and where it now sits (frames, end exclusive)"
    • addedOutput schema / properties / clip_id / description
      Added value: +"The clip this edit made or acted on (each tool says which)"
    • addedOutput schema / properties / clip_ids / description
      Added value: +"Every clip this edit made or acted on, linked ones included (each tool says which)"
    • changedOutput schema / properties / parent / description
      Previous value: -"Timeline handle; every edit returns a new one"New value: +"The version this edit started from"
    • changedOutput schema / properties / timeline_id / description
      Previous value: -"Timeline handle; every edit returns a new one"New value: +"The new version: edit this one next (older ids stay valid)"
  2. Changed1 schema field changed
    • changedInput schema / properties / interpolate / description
      Previous value: -"Video, when it shows fewer new frames a second than the sequence (slowed, or a lower frame rate; rate 1 smooths that): none repeats frames; blend crossfades neighbours; motion makes new frames from the movement (minterpolate, slow, on first render). Up to 6000 frames a clip"New value: +"Video, when it shows fewer new frames a second than the sequence (slowed, or a lower frame rate; rate 1 smooths that): none repeats frames; blend crossfades neighbours; motion makes new frames from the movement (minterpolate, slow). Made once as a job of its own (job.list); a render that needs it names the job until it is done, and an export waits. Up to 6000 frames a clip"
  3. Changed1 schema field changed
    • addedInput schema / properties / interpolate
      Added value: +{
      +  "description": "Video, when it shows fewer new frames a second than the sequence (slowed, or a lower frame rate; rate 1 smooths that): none repeats frames; blend crossfades neighbours; motion makes new frames from the movement (minterpolate, slow, on first render). Up to 6000 frames a clip",
      +  "enum": [
      +    "none",
      +    "blend",
      +    "motion"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=true), the description discloses the key side effects: the clip keeps its source, its length changes, ripple moves later clips by default, pitch is preserved unless preserve_pitch is false, and linked clips change too. It also summarizes the return payload (new timeline_id, what changed, where clips now sit), which the annotations do not convey.

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?

Five front-loaded sentences: purpose first, then the rate/curve distinction, then geometry and ripple, then pitch, then the return. Every sentence carries information an agent needs before invoking, and nothing is padded.

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 10-parameter mutation tool with an output schema and 80% schema coverage, the description covers purpose, the central edit semantics, ripple behavior, pitch, and the return value. The heavier ancillary behaviors (interpolate's background job and export blocking, other_tracks sync) live only in the schema, so the description is slightly thin for such a complex tool.

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?

With 80% schema coverage the baseline is 3, but the description adds real meaning by contrasting rate (constant) with curve (ramp) and by stating the pitch default behavior. It does not cover reverse, interpolate, or other_tracks, but those are well documented in the schema itself.

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?

Names a specific verb set (speed up, slow down, ramp, reverse) and a precise resource (a clip and its linked clips). It immediately distinguishes the two operating modes — 'rate is constant; curve is a speed ramp' — so an agent knows which parameter shapes the edit without opening the schema.

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?

Provides useful operational context: ripple is the default and moves later clips, and the agent should edit the returned timeline_id next. However, it never says when to prefer this tool over related siblings (e.g. clip.freeze or clip.trim) or when to avoid changing speed at all, so guidance is implied rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.