Skip to main content
Glama

Set clip source in/out

set_clip_in_out

Set a timeline clip's source in and out points in seconds to choose which part of the media plays; the clip start stays fixed and duration becomes source_out minus source_in.

Instructions

Choose which part of the source a timeline clip plays: source_in and/or source_out in seconds from the media start. The clip's timeline start stays put and its duration becomes source_out - source_in, so the end moves (later clips are not shifted). To keep the duration and only change the content use slip_clip. Linked clips are not changed. Returns the clip.

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

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
source_inNoNew source in point, seconds from the media start.
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.
source_outNoNew source out point, seconds from the media start.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already mark this as a non-read-only, non-destructive, non-idempotent edit, and the description adds real value on top: the clip's timeline start is anchored, the end moves, downstream clips are not shifted, linked clips are untouched. It does not describe the response beyond 'returns the clip' or what happens if neither in nor out is given, so it is useful but not fully disclosed.

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 short sentences, front-loaded with the core effect followed by the duration consequence, then the sibling alternative and the linked-clip caveat. No filler or redundancy.

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 an 8-parameter, zero-required mutation with no output schema, the description covers the effect, ripple behavior, and the main alternative. The remaining gap is what the call does with only a clip identifier and no in/out values, and it leans wholly on the schema for the clip-lookup path (clip_id vs index/track).

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 field meanings are already documented; the description still contributes the partial-argument semantics ('source_in and/or source_out'), clarifying that either point may be set independently, and ties both to the duration formula. That is meaning beyond the per-field schema text, though the clip-identification parameters are left entirely to 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 resource (set a timeline clip's source in/out points) and defines the exact scope in editing terms: source seconds from the media start, timeline position fixed, duration recomputed. An agent can separate this from slip_clip without opening either 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?

Explicitly routes the agent to slip_clip when the goal is to change content while preserving duration, and rules out linked clips as affected. Missing an explicit statement of when this tool is inapplicable (e.g., no in/out supplied) or how it differs from set_item_in_out, but the key alternative is named.

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