Skip to main content
Glama

clip_set_duration

Set a timeline clip's duration by moving its tail edit point within the available source media, so you can lengthen or shorten an edit without re-placing the clip.

Instructions

Set a timeline item's duration by moving its tail edit point within the available source media (native SetRightOffset).

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": {
      "durationFrames": "<durationFrames>"
    },
    "name": "clip_set_duration"
  }
}

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
timelineNoTimeline name or id (default: current timeline)
itemIndexNo1-based position of the clip on the track (transitions are not counted)
trackTypeNovideo
trackIndexNo
durationFramesYes

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

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and readOnlyHint=false, so the safety bar is lower. The description adds the meaningful trim-within-source-media constraint, but omits the destructive-fallback behavior that only appears buried in the confirm parameter's schema text, and says nothing about clamping or error behavior on over-length durations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the mechanism stated immediately; the trailing '(native SetRightOffset)' is a compact and useful implementation hint. No wasted clauses.

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?

With an output schema present and annotations covering the safety profile, the description need not explain return values. The remaining shortfall is the version-dependent destructive fallback and out-of-range duration behavior, both of which matter for a mutation tool but live outside the description.

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 57%, and durationFrames, trackIndex and trackType carry no schema descriptions at all. The description implies duration is expressed against available source media but does not clarify units, targeting precedence between itemId and itemIndex, or the confirm fallback, so it barely compensates for the coverage gap.

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 ('Set a timeline item's duration') plus the mechanism ('moving its tail edit point'), which is concrete enough to distinguish it from a properties-panel edit. It does not differentiate from duration-adjacent siblings such as clip_set_speed or clip_set_in_out, so it stops short of a 5.

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 only implied through the constraint 'within the available source media' — an agent can infer that this cannot extend a clip past its source. There is no explicit when-to-use, no mention of clip_set_speed for retiming, and no stated behavior when the requested duration exceeds available media.

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