Skip to main content
Glama

clip_trim

Trim the start and/or end of a timeline item by frame offsets; negative values extend into handles, linked audio follows, and the edit does not ripple.

Instructions

Trim frames from the head (trimStart) and/or tail (trimEnd) of a timeline item with native SetLeftOffset/SetRightOffset (Resolve 21+; linked audio follows). Negative values extend into handles. Does not ripple.

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

Input Schema

NameRequiredDescriptionDefault
itemIdNoTimeline item unique id (from timeline_get_clips)
confirmNoOnly needed on Resolve < 21, where this falls back to a destructive re-placement
trimEndNo
timelineNoTimeline name or id (default: current timeline)
itemIndexNo1-based position of the clip on the track (transitions are not counted)
trackTypeNovideo
trimStartNo
trackIndexNo
updateLinkedNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4/5.0
Behavior5/5

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

Adds behavior well beyond the annotations: it discloses the version gate (native offsets only on Resolve 21+), that linked audio follows, that the operation does not ripple neighbors, and that a destructive re-placement fallback exists on older versions. This is exactly the kind of conditional-mutability context an agent needs to avoid an unexpected destructive path.

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?

Three dense sentences, zero filler, with the core action front-loaded and the crucial caveats (version requirement, handle extension, no ripple) in priority order.

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, zero-required mutation tool with an output schema and annotations present, the description covers the semantics and risks that structured fields can't. The remaining gap is clip addressing (which of itemId/itemIndex/trackIndex/timeline to supply), which the description never addresses.

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 only 44%, and the description meaningfully documents the two core parameters (trimStart/trimEnd, including the negative-value handle semantics) and the implicit linked-audio behavior behind updateLinked. However, roughly half the parameters (itemId, itemIndex, trackIndex, trackType, timeline) and the itemId-vs-index addressing choice are left entirely to the schema.

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 (trim frames off the head/tail of a timeline item) and names the underlying mechanism (SetLeftOffset/SetRightOffset). It implicitly separates itself from trim-like siblings via 'does not ripple' and 'negative values extend into handles', but it never explicitly contrasts with clip_set_in_out or clip_set_duration.

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

Usage Guidelines3/5

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

Usage is implied rather than prescribed: it tells you the tool trims head and/or tail and that negatives pull into handles, and warns that confirm is needed on Resolve < 21. There is no explicit statement of when to prefer this over clip_set_in_out, clip_set_duration, or audio_trim, so an agent must infer the selection rule.

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