Skip to main content
Glama

Trim clip start

trim_clip_start

Move a clip's start edge while keeping its end fixed to shorten or extend the clip without shifting its content in time or moving neighboring clips; linked audio/video can be trimmed too.

Instructions

Move the head (left edge) of a clip while its end stays where it is: the clip gets shorter or longer and its source in point changes by the same amount, so the picture does not shift in time. Pass time (new timeline start, seconds) or delta (seconds; positive trims material off, negative extends). Neighbouring clips do not move: extending stops at the previous clip and at the first frame of the source. include_linked (default true) trims the linked audio/video clips the same way. Returns the trimmed clip with its real new start.

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": "trim_clip_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoNew timeline start of the clip, in seconds.
deltaNoChange of the start in seconds; positive makes the clip shorter.
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 trim 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.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) by disclosing the coupled effect on the source in point, the fact that neighbouring clips do not move, the clamping limits on extension, the default linked-clip side effect of include_linked, and the return value (the clip with its real new start). No contradiction with the declared non-destructive, non-read-only profile, since the shortening/lengthening is described as reversible via negative delta.

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-loads the core operation, then parameter choice, then constraints, then return value — a logical order with no filler sentences. Dense but every clause carries information an agent needs.

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 9-parameter mutation tool with no output schema, the description covers the essential semantics, defaults, and side effects, and even explains the return value. The remaining gap is that zero parameters are required, yet nothing says what happens if neither time nor delta is passed, or which wins if both are.

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; the description still adds interpretation, explaining that the source in point shifts by the same amount so the picture does not move in time, and restating the sign convention of delta. It does not resolve the interaction between time and delta when both are provided.

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 concrete verb and object — moving the head (left edge) of a clip while the end stays fixed — and immediately distinguishes it from the sibling trim_clip_end by the head/end contrast. The agent can tell which trim variant to pick 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 Guidelines4/5

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

"Pass time (new timeline start, seconds) or delta (seconds; positive trims material off, negative extends)" gives clear selection guidance between the two driving parameters, and the boundary rules (stops at previous clip / first source frame) define when an extension will not take effect. It stops short of naming trim_clip_end as the alternative for the opposite edge or stating precedence when both time and delta are supplied.

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