Skip to main content
Glama

trim_clip

Trim a clip by setting a new timeline start or end. Trimming the start cuts the clip's head while keeping media in sync, so you can adjust in and out points precisely.

Instructions

Trim a clip by setting a new timeline start and/or end. Start trims the head (media stays in sync).

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

Input Schema

NameRequiredDescriptionDefault
idNoStable clip id from sequence_state (preferred; survives other edits)
endNoNew end on the timeline (seconds)
clipNoClip index on that track (shifts after edits; prefer id)
kindNoTrack typevideo
startNoNew start on the timeline (seconds)
trackNoTrack index, 0 = V1/A1
linkedNoAlso apply to the linked audio/video partner (same source, same start/end)
sequenceNoSequence name or ID. Defaults to the active sequence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that a start trim affects the head while keeping media in sync, but it does not explain mutation effects, reversibility, linked-clip behavior, or failure conditions.

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?

Two short sentences with no wasted wording, and the core operation is front-loaded. The second sentence earns its place by clarifying start behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The schema is fully documented and there is no output schema to explain, but the tool is a mutation with no annotations. The description is adequate on purpose but thin on sibling alternatives and behavioral consequences, leaving meaningful gaps for correct selection and invocation.

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 description coverage is 100%, so all eight parameters are already documented. The description adds meaning only for start, clarifying that it trims the head and preserves sync; it adds nothing beyond the schema for id, clip, linked, sequence, track, or kind.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: trimming a clip by setting a new timeline start and/or end. It is clear what the tool does, but it does not distinguish itself from close siblings such as slip_clip, slide_clip, or move_clip, which also alter clip placement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

Gives no explicit guidance about when to use trim_clip instead of slip_clip, slide_clip, or move_clip. The only usage context is implied by the word 'Trim', with no exclusions or alternative-selection rules.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.