Skip to main content
Glama

Slide clip

slide_clip

Moves a clip by an offset in seconds, trimming its neighbours' edges to preserve total sequence length. Use it to shift timing while keeping surrounding clips adjacent.

Instructions

Slide a clip between its neighbours: the clip moves by offset seconds (positive = later) keeping its content and duration, while the previous clip's end and the next clip's start are trimmed to follow, so the total length does not change. Needs clips touching it on both sides with enough source media (BAD_ARGS otherwise). include_linked (default true) slides the linked audio/video clips too. Returns the clip, its two neighbours and the offset actually applied.

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": {
      "offset": "<offset>"
    },
    "name": "slide_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetYesSeconds to move the clip; positive = later. Snapped to a frame.
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.
include_linkedNoAlso slide the clips linked to this one (the audio of a video clip, or the video of an audio clip). Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (which only say readOnly=false, destructive=false, idempotent=false), the description discloses precisely what is mutated: the clip itself plus the previous clip's end and the next clip's start, with total sequence length preserved. It also covers the linked-clip side effect, the precondition failure code, and the return payload ('the clip, its two neighbours and the offset actually applied'), which no annotation conveys.

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?

Four sentences, each carrying distinct load: core mechanic, precondition, linked-clip side effect, return value. The essential behaviour is front-loaded in the first sentence and nothing is repeated from the name or title.

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 tool with no output schema, the description supplies the missing pieces: what is modified around the clip, that overall length is preserved, the error condition, and the shape of the response. Combined with annotations and full schema coverage, an agent has enough to invoke it correctly.

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 coverage is 100% and each parameter already carries its own description, including offset direction and the include_linked default. The description restates offset direction and include_linked meaning without adding format or interaction detail beyond the schema, so the baseline 3 applies.

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?

The description names a specific verb and resource ('Slide a clip between its neighbours') and immediately defines the mechanical difference from a plain move: the clip keeps content and duration while the previous clip's end and next clip's start are trimmed. That neighbour-trimming semantics is exactly what separates this from siblings like move_clip or move_clip_to_track, so an agent can choose without opening a schema.

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?

It states a concrete precondition for use ('Needs clips touching it on both sides with enough source media') and the failure mode ('BAD_ARGS otherwise'), which tells the agent when the call will not work. It stops short of naming an alternative tool for the cases where those preconditions fail (e.g. a plain move), leaving that routing to inference.

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