Skip to main content
Glama

Insert clip

insert_clip
Destructive

Place a bin clip on a timeline track at a specified frame, optionally trimming to a source range and attaching audio to a paired track; writes result to destination without overwriting overlaps.

Instructions

Place a bin clip (bin_id from list_project_media / get_timeline) on a track at frame start, optionally a source sub-range [source_in, source_out] (inclusive). A clip with audio and video put on a video track also gets its audio on audio_track (default A1; null for video only), grouped like Kdenlive. Positions are frames at the project rate; nothing ripples and nothing is overwritten (overlaps fail). A clip grouped with its audio/video counterpart is edited together with it. The result is written to destination with the save_project_copy rules.

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": {
      "path": "<path>",
      "bin_id": "<bin_id>",
      "track": "<track>",
      "start": "<start>",
      "destination": "<destination>"
    },
    "name": "insert_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of a .kdenlive project file on this machine.
startYes
trackYesTrack label, e.g. V1.
bin_idYes
sequenceNoSequence uuid or name; default: active sequence.
overwriteNoAllow replacing an existing destination file.
source_inNo
source_outNo
audio_trackNoA1
destinationYesAbsolute path of the .kdenlive file to write (the source by default is never modified; see save_project_copy for the overwrite rules).
expected_sha256NoRequired to write over the source: its sha256 as last read. Tools that take `revision` use it when this is omitted.

Output Schema

NameRequiredDescriptionDefault
audioNo
mediaNo
savedYes
titleNo
trackNo
relinkNo
effectsNo
markersNo
timelineNo
subtitlesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.5/5.0
Behavior5/5

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

Beyond annotations declaring destructive=true, readOnly=false, and idempotent=false, the description discloses that nothing ripples, overlaps fail, audio is grouped onto audio_track by default, null disables audio, grouped counterparts edit together, and the result is written to destination via save_project_copy rules. It also states that the source is never modified by default. These are substantive behavioral details that materially improve safe invocation.

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?

The description front-loads the core action, then moves efficiently through source range, audio grouping, timeline constraints, and destination handling. Every sentence carries operational meaning and there is no filler, even though the density is high for an 11-parameter tool.

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?

For a destructive, non-idempotent 11-parameter write tool with an output schema, the description covers insertion semantics, timeline non-ripple behavior, overlap failure, audio/video grouping, and destination handling. Remaining parameter specifics are provided in the schema, so the definition is complete enough to guide correct invocation.

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?

With schema description coverage at 55%, the description adds meaning for bin_id provenance, start as a frame position at project rate, inclusive source_in/source_out, audio_track default A1 and null semantics, and destination write behavior. It leaves sequence, overwrite, expected_sha256, path, and track label details to the schema, but compensates for several under-documented parameters.

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?

The description opens with a specific verb and resource, 'Place a bin clip ... on a track at frame start,' and names the source of bin_id. It clearly separates insertion of a new bin clip from sibling operations like move_clip, trim_clip, or split_clip. An agent can identify the 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 Guidelines3/5

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

It implies usage by explaining where bin_id comes from and that overlaps fail, but it does not explicitly say when to choose insert_clip over alternatives such as move_clip or trim_clip, nor when not to use it. The overlap and ripple caveats are behavioral constraints rather than alternative-selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.