Skip to main content
Glama

Replace clip source

replace_clip_media
Destructive

Swap a timeline clip's source with another project item while keeping its track, start time, and duration—ideal for replacing footage without moving or retiming the clip.

Instructions

Swap the source of a timeline clip for another project item while keeping its track, timeline start and duration. The new source is used from source_in (default: the same source in point as before). Fails when the new item is too short to fill the clip. Linked clips are not changed. Returns the clip with its new source.

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

Input Schema

NameRequiredDescriptionDefault
clip_idNoStable clip id (from get_sequence_structure / list_clips). Preferred.
source_inNoSource time of the new item at the clip's first frame, in seconds. Default: the clip's current source in point.
clip_indexNo0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id.
track_typeNoUsed with track_index + clip_index when clip_id is not given. Default "video".
new_item_idNoId of the project item to use as the new source. Preferred.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
track_indexNo0-based track index (0 = V1 or A1).
new_item_nameNoName of the new source item; the first match is used.
new_item_pathNoProject panel path of the new source, e.g. "Footage/take2.mp4".
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Goes beyond annotations by specifying failure conditions (item too short), default source_in behavior, the effect on linked clips, and the return value (clip with new source). Annotations already declare destructiveHint and non-idempotence, so this adds useful behavioral context without contradiction.

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?

Front-loads the core operation in the first sentence, then adds only essential details about defaults, failure, and side effects. No wasted words, and the most important constraint appears first.

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 mutation tool without an output schema, the description covers what changes, default behavior, failure conditions, and the return value. It does not discuss permissions or reversibility, but the destructive annotation already signals risk, making this definition largely complete.

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 100%, so every parameter is already documented in the schema. The description reiterates the source_in default and mentions the new source conceptually, but does not add meaning beyond the schema for the 10 parameters (e.g., selection tradeoffs between clip_id and clip_index, or sequence_id vs sequence_name).

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 and resource ('Swap the source of a timeline clip for another project item') along with scope preservation (track, start, duration). This clearly distinguishes it from siblings like replace_transition, replace_mogrt_text, or replace_clip_media variants.

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?

Provides clear context: the operation fails when the new item is too short, and linked clips are not changed. It does not explicitly name an alternative tool or a 'when not to use' condition, but the operation's constraints and distinct sibling roles make the appropriate use case evident.

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