Skip to main content
Glama

Overwrite clip

overwrite_clip
Destructive

Replace existing timeline material by placing a project item at a specified time on target video and audio tracks, without shifting other clips.

Instructions

Place a project item in a sequence at a time, replacing whatever occupies that span on the tracks that receive material; nothing else moves. Picture goes to video_track_index and the item's audio, linked to it, to audio_track_index. Optionally use only part of the source (source_in / source_out, seconds of source time). Use insert_clip to push later material right instead, place_clip_on_track for a single track. Returns the created clips and the sequence duration.

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": {
      "time": "<time>"
    },
    "name": "overwrite_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeYesTimeline position where the clip starts, in seconds. Snapped to a frame.
item_idNoStable project item id (from list_project_items). Preferred.
item_nameNoItem name; the first match in the project is used.
item_pathNoPath in the Project panel, e.g. "Footage/Day 1/clip.mp4".
source_inNoStart of the part of the source to use, in seconds from the media start. Default: the item's current in point (normally 0).
source_outNoEnd of the part of the source to use, in seconds from the media start. Default: the item's current out point (normally the media end; the default still duration for a still).
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.
audio_track_indexNo0-based audio track that receives the item's audio (0 = A1). Default 0.
video_track_indexNo0-based video track that receives the picture (0 = V1). Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds real value by scoping exactly what is destroyed ('whatever occupies that span on the tracks that receive material; nothing else moves') and by describing the return payload. It stops short of permissions, undo, or failure modes (e.g., missing item), which would be the remaining behavioral gaps. Two contextual sentences add value, so a 4 is earned.

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?

Front-loaded with the core semantics, then alternatives, then returns. Dense but almost every sentence carries information; the single long paragraph could be split into sentences for scannability, which is the only knock.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Ten parameters but complete: placement semantics, track routing, source trimming, sequence targeting via the schema, and an explicit statement of return values in lieu of an output schema. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description goes beyond it by explaining the routing pairing: picture to video_track_index and the item's linked audio to audio_track_index, which is not obvious from the schema alone, and clarifies that source_in/source_out are in source time.

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 ('Place a project item in a sequence at a time') plus the governing semantic: it replaces the occupied span while nothing else moves. This distinguishes it cleanly from insert_clip and place_clip_on_track, which it names directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit alternatives with the selecting condition: insert_clip 'to push later material right instead' and place_clip_on_track 'for a single track.' An agent can choose between the three placement tools without opening other schemas.

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