Skip to main content
Glama

media_replace

Destructive

Replace a clip’s source file with another file so every timeline use switches to the new media; destructive changes require explicit confirmation.

Instructions

Replace a clip's source file with another file (MediaPoolItem.ReplaceClip). Every timeline use switches to the new file. 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>",
      "path": "<path>"
    },
    "name": "media_replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipYesMedia pool clip id, exact clip name, or file path
pathYesAbsolute local file path
confirmNoDestructive operation: must be true, and only after the user explicitly confirmed it. Without it the tool only explains what it would do.

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
Behavior4/5

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

Beyond the annotations (destructiveHint=true), the description discloses the blast radius that matters most: every timeline use switches to the new file. It also reinforces the confirmation gate. It does not say whether the change is reversible or how to undo it, which is the one significant behavioral gap for a destructive tool.

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 tight sentences: the operation and its scope first, then the consequence, then the destructive/confirmation warning. Nothing is redundant and the critical safety warning is front-loaded.

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 full schema coverage, explicit annotations, and an output schema, the description supplies the two things structured fields cannot: the timeline-wide effect and the confirmation protocol. Only the reversibility/undo behavior is missing for a fully complete destructive-operation definition.

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 three parameters (clip, path, confirm) are already documented in the schema, including the dry-run behavior when confirm is absent. The description adds no parameter-level meaning beyond what structured data provides, so the baseline 3 applies.

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?

Names a specific verb and resource ('Replace a clip's source file with another file') and anchors it to the underlying API call (MediaPoolItem.ReplaceClip), which makes the operation unambiguous. It does not distinguish itself from plausible siblings like clip_replace or media_relink, so it falls 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 Guidelines4/5

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

Gives clear operational context: the operation is destructive and requires confirm: true only after explicit user confirmation, which is the key gate for invoking it. It never names an alternative tool (e.g. relinking instead of replacing) or states when not to use it, so it stops short of a 5.

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