Skip to main content
Glama

Reverse a clip

reverse_clip
Idempotent

Reverses a clip so it plays backwards, or restores forward playback, while keeping its speed, duration and source range intact. Handles trimmed and linked clips for timeline editing.

Instructions

Make a clip play backwards (or forwards again) while keeping its speed, its duration and the part of the source it shows. Works on trimmed clips too. Use set_clip_speed to change the speed as well. Linked clips are reversed with it unless include_linked is false; any Premiere refuses are listed in linked_not_changed. Stills and graphics cannot be reversed (UNSUPPORTED). Leaves the sequence active. Returns the clip re-read after the change, previous and linked_changed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "reverse_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
reversedNotrue (default) = play backwards, false = play forwards.
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.
include_linkedNoAlso reverse the clips linked to it (e.g. the audio of a video clip). Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare a non-destructive, idempotent write to a closed world; beyond that the description discloses side effects on linked clips, that refusals are surfaced in linked_not_changed rather than throwing, that the sequence stays active, and what is returned. It could go one step further on whether an already-reversed clip toggles or is a no-op error, but the coverage is well above the annotation baseline.

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-loaded with the effect and its invariants, then alternatives, then side effects, then return contract — no filler. The final two sentences are telegraphic ('Returns the clip re-read after the change, previous and linked_changed'), which is efficient but borders on terse.

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 an 8-parameter mutation with no output schema, the description covers the unsupported input classes, linked-side effects, error surfacing, sequence state, and return payload. Nothing an agent needs in order to call it correctly or interpret the result 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 the baseline is 3, and the description earns a bump by giving the default and consequence of include_linked (which linked clips follow) and the true/false meaning of reversed. It does not restate clip_id vs clip_index resolution, but that is fully handled in the schema.

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 effect ('make a clip play backwards (or forwards again)') plus the invariants it preserves — speed, duration, source range — which immediately separates it from speed edits and trim tools. Touches on scope (trimmed clips, linked clips) so an agent can match it to intent 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the adjacent alternative explicitly ('Use set_clip_speed to change the speed as well') and tells the agent when the tool will not apply (stills and graphics, UNSUPPORTED). It also gives the condition that changes linked behavior (include_linked=false), so the caller knows how to shape the request.

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