Skip to main content
Glama

clip_replace

Destructive

Replace a timeline item with a different media pool clip while keeping the same position and length. Requires explicit confirmation because the edit is destructive.

Instructions

Replace a timeline item with a different media pool clip at the same position and length. DESTRUCTIVE: requires confirm: true after explicit user confirmation.

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": {
      "clip": "<clip>"
    },
    "name": "clip_replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipYesMedia pool clip id, exact clip name, or file path
itemIdNoTimeline item unique id (from timeline_get_clips)
confirmNoDestructive operation: must be true, and only after the user explicitly confirmed it. Without it the tool only explains what it would do.
timelineNoTimeline name or id (default: current timeline)
itemIndexNo1-based position of the clip on the track (transitions are not counted)
trackTypeNovideo
trackIndexNo
sourceStartNo

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.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is partly covered, but the description adds real behavior beyond them: the replacement preserves position and length, and the operation is gated behind an explicit confirmation step. It still does not say what happens to clip attributes, effects, or linked audio on the replaced item.

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 sentences, both fully load-bearing: the first defines the operation and its key invariant, the second front-loads the destructive warning and the confirmation requirement. Nothing is padded or repeated from the schema.

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 destructive 8-parameter mutation with an output schema, the description covers the essential risk (irreversibility plus the confirm requirement) and the core matching behavior. The remaining gap is guidance on how this relates to the replace/overwrite siblings, 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 63%, so the schema carries most of the parameter documentation, including the confirm gate and the trackType enum. The description contributes meaning to 'clip' ("media pool clip") and implies the position/length semantics tied to itemIndex/itemId, but leaves sourceStart, trackIndex, and the itemId-vs-itemIndex precedence unexplained. Baseline 3 is appropriate.

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?

The description uses a specific verb and resource ("Replace a timeline item with a different media pool clip") and adds distinguishing scope semantics ("at the same position and length"). It does not, however, name a contrasting sibling such as media_replace or clip_overwrite, so the agent must infer the boundary from the preservation semantics alone.

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?

The only explicit guidance is a precondition: "requires confirm: true after explicit user confirmation." There is no statement of when to pick this over media_replace, clip_overwrite, or clip_insert, and no note about what happens when itemId/itemIndex are ambiguous. Usage is implied rather than directed.

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