Skip to main content
Glama

Remove clip

remove_clip
Destructive

Remove a clip from a Kdenlive timeline without rippling neighbors; the gap remains and the bin clip stays. Write the edited project to a destination file.

Instructions

Remove a clip from the timeline, leaving a gap (neighbours do not move; the bin clip stays). 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>",
      "clip": "<clip>",
      "revision": "<revision>",
      "destination": "<destination>"
    },
    "name": "remove_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipYesClip ref from get_timeline, '<track>@<start>' (e.g. 'V1@90'). It changes when the clip moves: read the timeline again after an edit.
pathYesAbsolute path of a .kdenlive project file on this machine.
revisionYessha256 of the project file (file.sha256 from get_timeline) that the clip ref comes from; the edit is refused if the file changed since.
sequenceNoSequence uuid or name; default: active sequence.
overwriteNoAllow replacing an existing destination file.
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.1/5.0
Behavior5/5

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

Goes well beyond the annotations (destructive/non-idempotent) by disclosing exactly what is and is not changed: neighbours stay put, the bin clip survives, grouped counterparts are edited together, overlaps fail, and the source file is not modified. It also routes the write semantics to save_project_copy rules, which is the right behavioral disclosure for a mutation 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 dense sentences, front-loaded with the primary effect and then the non-obvious caveats (no ripple, no overwrite, grouped edits, destination write). No filler and no repetition of the title.

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 destructive timeline edit with an output schema, this covers the critical behavior an agent needs: gap semantics, overlap failure, grouped clip handling, and where the result is written. Minor gaps remain — it does not state behavior when the clip ref is stale or missing — but the revision parameter and output schema carry those concerns.

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, but the description adds meaning the schema does not: positions are frames at the project rate, and clips grouped with their audio/video counterpart are edited as a unit. It also clarifies that destination output follows save_project_copy rules. It does not restate the revision/overwrite parameters, but the schema handles those.

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?

States a specific verb and resource — remove a clip from the timeline — and immediately pins down the resulting state ('leaving a gap', 'neighbours do not move', 'the bin clip stays'). This distinguishes it from a ripple-delete or a bin removal. It does not explicitly name a sibling tool (e.g. trim_clip), so it stops short of full sibling differentiation.

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?

Provides strong behavioral context (non-rippling, overlaps fail, grouped audio/video edited together) that lets an agent infer when this is the right operation. However, it never states when to prefer this over trim_clip, split_clip, or move_clip, and gives no explicit prerequisites beyond what the schema enforces.

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