Skip to main content
Glama

Set clip start and end

set_clip_bounds

Trim both timeline edges of a clip by setting new start and end times in seconds. Source media stays in sync, neighbouring clips stay put, and linked audio or video can follow.

Instructions

Set both timeline edges of a clip: start and end in seconds. Each edge is trimmed (the picture does not shift in time: the source in/out follow the edges), neighbours do not move. An edge stops at the neighbouring clip and at the limits of the source media, so check the returned start and end. To move a clip without trimming use move_clip. include_linked (default true) applies the same edges to the linked audio/video clips. Returns the clip.

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "set_clip_bounds"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesNew timeline end, in seconds. Must be after start.
startYesNew timeline start, in seconds.
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.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that trimming does not shift the picture (source in/out follow the edges), that neighbours do not move, and that an edge clamps at the neighbouring clip and at source-media limits — critically, it tells the agent to verify the returned start/end because the requested value may not be fully applied. include_linked's default and propagation to linked audio/video is also spelled out.

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 tight sentences, front-loaded with what gets set, then the trim-versus-shift semantics, then the clamping caveat, then the alternative tool. No sentence is filler and the return value is noted in three words.

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?

Covers the mutation semantics, clamping, neighbour behavior, linked clips, and the post-call verification step, which is everything an agent needs for a 9-parameter editing operation with no output schema. Only the sequence/clip resolution fallback chain is left entirely to the schema, which handles it adequately.

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%, so all nine parameters are already documented, and the description explains include_linked's linked-clip propagation in terms the schema also covers. Its added value for start/end is the clamping behavior, which is more behavioral than parameter semantics, so the baseline 3 fits.

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 with scope: 'Set both timeline edges of a clip: start and end in seconds.' Calling out BOTH edges distinguishes it from the single-edge siblings trim_clip_start/trim_clip_end, and the explicit pointer to move_clip separates it from repositioning.

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?

Explicitly routes the agent: 'To move a clip without trimming use move_clip,' which gives a clear when-not condition. It does not address when to use the single-edge siblings (trim_clip_start/trim_clip_end) instead, leaving that inference to the agent.

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