Skip to main content
Glama

Add guide or clip marker

add_marker
Destructive

Add a timeline guide or clip marker with a comment, category, and optional frame duration, then write the updated Kdenlive project to a destination file.

Instructions

Add a guide or a clip marker with a comment, a category and an optional duration in frames (0 = point marker). Without bin_id the marker is a timeline guide (position in timeline frames); with bin_id it is a clip marker on that bin clip (position in the clip's source frames, shown on every instance). Kdenlive keeps one marker per position. 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>",
      "position": "<position>",
      "destination": "<destination>"
    },
    "name": "add_marker"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of a .kdenlive project file on this machine.
bin_idNoBin clip id for a clip marker; omit for a timeline guide.
commentNo
categoryNo
durationNo
positionYes
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.3/5.0
Behavior4/5

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

Annotations already flag a destructive, non-idempotent, non-read-only write, so the bar is lower; the description still adds real value by explaining that output goes to `destination` under save_project_copy rules rather than mutating the source. "Kdenlive keeps one marker per position" is a genuine behavioral disclosure, implying an existing marker at that position is silently superseded – important given destructiveHint=true. It does not restate anything the annotations cover and shows no contradiction with them.

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?

Four sentences, no filler, and the two-mode split is front-loaded ahead of the destination-write note. The final cross-reference ("with the save_project_copy rules") is slightly indirect and forces a second lookup, which keeps it just below top marks.

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 10-parameter mutation tool the description covers the decision-critical parts – mode selection, positional frame semantics, one-marker-per-position behavior, and where the result is written – while the output schema handles return values. The unglossed `sequence` and `category` parameters are minor omissions given their schema descriptions.

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 60% schema coverage over 10 parameters, the description compensates well: `position` is defined as timeline frames for guides but source-clip frames for clip markers (a distinction absent from the schema), and `duration` is glossed as 0 = point marker. It also delegates the overwrite/`expected_sha256` semantics to save_project_copy, leaving `sequence` and `category` meanings largely to the schema.

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 ("add a guide or a clip marker") and immediately enumerates the payload (comment, category, optional duration in frames). It further splits the operation into two precisely named modes tied to `bin_id`, so an agent can distinguish this from siblings like add_effect or add_title without inspecting schemas.

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?

It gives clear selection conditions: omit `bin_id` for a timeline guide, supply it for a clip marker, and it points at save_project_copy for overwrite/`destination` rules. The gap is that it never names the direct alternatives (update_marker, remove_marker, list_markers) or states when *not* to use this tool, so it stops short of explicit routing.

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