Skip to main content
Glama

Add track

add_track
Destructive

Adds an optional named audio or video track to a Kdenlive sequence and writes the updated project to a destination while preserving existing clips and groups.

Instructions

Add an empty, optionally named audio or video track to a sequence and write the result to destination. Video tracks are added on top of the existing video tracks; audio tracks below the existing audio tracks (Kdenlive's track order). Existing clips, groups, compositions and mixes are preserved. Same safety rules as save_project_copy.

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>",
      "kind": "<kind>",
      "destination": "<destination>"
    },
    "name": "add_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes'audio' or 'video'.
nameNoTrack name shown in Kdenlive.
pathYesAbsolute path of a .kdenlive project file on this machine.
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
Behavior5/5

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

Adds substantive behavior beyond the annotations: exact track placement (video above existing video, audio below existing audio per Kdenlive ordering) and a preservation guarantee for clips, groups, compositions and mixes. Also clarifies that the source is not modified by default, complementing destructiveHint=true without contradicting it.

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 tight sentences with the core action and destination front-loaded, then placement, preservation, and safety. The final cross-reference sentence is useful but requires a lookup to fully resolve.

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?

Given an output schema, full annotation coverage and a fully described parameter set, the description supplies the remaining behavioral essentials: ordering, preservation, and source-file safety. The sequence parameter is not discussed, but the schema covers it adequately.

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 the schema already documents kind, name, sequence, overwrite and expected_sha256. The description only adds that the name is optional and that output goes to `destination`, which is marginal value over the structured fields.

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 ('Add an empty, optionally named audio or video track to a sequence') plus the side effect of writing to `destination`. This cleanly separates it from clip-level siblings like insert_clip and add_effect.

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?

Gives clear context (adding a track to a sequence and writing a new file) and routes the agent to save_project_copy for the overwrite safety rules. It does not spell out an explicit when-not-to-use case, such as when to prefer insert_clip instead.

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