Skip to main content
Glama

clip_overwrite

Destructive

Overwrites a timeline range on a selected track with a clip: overlapping items are removed first, then the clip is placed. Destructive use requires confirm: true after explicit user approval.

Instructions

Overwrite the timeline range [recordFrame, recordFrame+length) on a track with a clip: overlapping items on that track are removed first, then the clip is placed. 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>",
      "recordFrame": "<recordFrame>",
      "length": "<length>"
    },
    "name": "clip_overwrite"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipYesMedia pool clip id, exact clip name, or file path
lengthYes
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)
mediaTypeNoOnly video or only audio of the clip
sourceEndNoSource frame after the last one (exclusive)
trackIndexNo
recordFrameYes
sourceStartNoFirst source frame (inclusive)

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

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

Annotations already declare destructiveHint=true, but the description adds real substance beyond that: it specifies that overlapping items on that track are deleted first and only then is the clip placed, and that without confirm it degrades to an explanation rather than acting. It does not cover what happens to items on other tracks or whether removal is recoverable, so it falls short of a 5.

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, zero filler, and both the destructive warning and the confirm requirement are front-loaded. Every clause carries operational information.

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 destructive tool with an output schema and rich annotations, the description supplies the essential semantics: range definition, overlap deletion ordering, and the confirmation gate. Gaps remain around track targeting defaults and source in/out interaction, but nothing critical to a safe invocation is missing.

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 67%, with clip, timeline, confirm, mediaType and source framing documented in the schema itself. The description adds meaning for recordFrame and length by defining them jointly as a half-open range, but says nothing about trackIndex, mediaType, sourceStart/sourceEnd, or how source trimming interacts with the overwrite range. Baseline 3 is appropriate given moderate coverage.

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 (overwrite) and resource (timeline range on a track) plus the exact range formula [recordFrame, recordFrame+length), which distinguishes it from plain insert/append siblings. An agent can tell this is a replace-with-overlap-removal operation without opening the 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?

The word 'overwrite' plus the overlap-removal clause makes the selection condition clear: use this when you want the target range cleared, not when you want to push or shift existing content. It also states the confirm prerequisite gate. It stops short of naming clip_insert or clip_replace as explicit alternatives, so it is clear context without full when/when-not routing.

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