Skip to main content
Glama

Change timing

retime_clip

Use this when the user wants the timing of part of a clip changed: "slow down the part at 0:12", "freeze on the reaction for 2 seconds", "cut out 0:20 to 0:25". One change per call; captions follow the footage. Not for: the whole clip faster or slower (style_clip speed), silences or trimming (edit_clip). Undoable (undo_edit). Costs no Horizon Units. Returns job_id; job_status waits for it.

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>"
    },
    "name": "retime_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
speedNoPlayback speed for the part, 0.25 to 4. 1 is normal, 0.5 is half speed. Use alone, one change per call.
removeNoTrue cuts start_seconds to end_seconds out of the clip. False (default) removes nothing. Use alone, one change per call.
clip_idYesClip id from list_clips.
end_secondsNoEnd of the part, in seconds as it plays. 0 means the clip end. Not used with freeze_seconds.
start_secondsNoStart of the part, in seconds of the clip as it plays (0:12 is 12). For freeze_seconds it is the frame to hold.
freeze_secondsNoHolds the frame at start_seconds for this long, 0.1 to 10 seconds, e.g. 2. Use alone, one change per call.

Output Schema

NameRequiredDescriptionDefault
nextYes
notesYes
job_idYes
statusYes
changedYes
clip_idYes
editor_urlYes
estimated_huNo
voiceover_job_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / properties / end_seconds / default
      Removed value: -0
    • removedInput schema / properties / freeze_seconds / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / freeze_seconds / default
      Removed value: -null
    • addedInput schema / properties / freeze_seconds / type
      Added value: +"number"
    • removedInput schema / properties / remove / default
      Removed value: -false
    • removedInput schema / properties / speed / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / speed / default
      Removed value: -null
    • addedInput schema / properties / speed / type
      Added value: +"number"
    • removedInput schema / properties / start_seconds / default
      Removed value: -0
  2. Changed13 schema fields changed
    • addedInput schema / properties / clip_id / description
      Added value: +"Clip id from list_clips."
    • removedInput schema / properties / clip_id / title
      Removed value: -"Clip Id"
    • addedInput schema / properties / end_seconds / description
      Added value: +"End of the part, in seconds as it plays. 0 means the clip end. Not used with freeze_seconds."
    • removedInput schema / properties / end_seconds / title
      Removed value: -"End Seconds"
    • addedInput schema / properties / freeze_seconds / description
      Added value: +"Holds the frame at start_seconds for this long, 0.1 to 10 seconds, e.g. 2. Use alone, one change per call."
    • removedInput schema / properties / freeze_seconds / title
      Removed value: -"Freeze Seconds"
    • addedInput schema / properties / remove / description
      Added value: +"True cuts start_seconds to end_seconds out of the clip. False (default) removes nothing. Use alone, one change per call."
    • removedInput schema / properties / remove / title
      Removed value: -"Remove"
    • addedInput schema / properties / speed / description
      Added value: +"Playback speed for the part, 0.25 to 4. 1 is normal, 0.5 is half speed. Use alone, one change per call."
    • removedInput schema / properties / speed / title
      Removed value: -"Speed"
    • addedInput schema / properties / start_seconds / description
      Added value: +"Start of the part, in seconds of the clip as it plays (0:12 is 12). For freeze_seconds it is the frame to hold."
    • removedInput schema / properties / start_seconds / title
      Removed value: -"Start Seconds"
    • removedInput schema / title
      Removed value: -"retime_clipArguments"
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only cover the safety profile (not read-only, non-destructive, non-idempotent); the description adds genuinely new behavior: the edit is undoable via undo_edit, it costs no Horizon Units, captions follow the footage, and it is asynchronous — returning a job_id that job_status waits on. Those are the facts an agent needs to sequence calls and set user expectations, and none are recoverable from the annotations.

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?

Front-loaded with the use case and examples, then alternatives, then behavioral facts — a natural decision order for an agent. Every clause carries information; nothing is repeated from the schema beyond the useful reinforcement of one change per call.

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 six-parameter mutation tool with an output schema, the description covers the pieces the schema cannot: sibling routing, undo path, cost, caption side effect, and the async job/job_status handoff. Return values are not over-explained because the output schema already defines them.

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 each parameter already documents its range, default, and 'use alone' exclusivity, so the description adds little beyond a restatement of the one-change-per-call rule. The example utterances loosely map to parameter combinations (timestamp to start_seconds, duration to freeze_seconds) but no format or unit clarification is offered that the schema does not already carry.

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 ('timing of part of a clip changed') and immediately grounds it in three concrete user utterances (slow down a part, freeze a frame, cut out a range). It explicitly separates itself from the two nearest siblings, style_clip (whole-clip speed) and edit_clip (silences/trimming), so an agent can route correctly without opening another schema.

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?

Gives both sides of the routing decision: when to use (partial-clip retiming) and an explicit 'Not for:' list naming the alternatives for whole-clip speed and trimming. It also states the operational constraint 'One change per call', which is the main way an agent could misuse this tool.

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.

Resources