Skip to main content
Glama

Add media to bin

add_media_to_bin
Destructive

Add audio or video files to a Kdenlive project's bin, not the timeline, and write the updated project to a destination; files already in the bin are reported as existing instead of duplicated.

Instructions

Add audio or video files to a project's bin (not to the timeline) and write the result to destination. Files already in the bin are reported as 'existing' with their clip id instead of being duplicated. Clip data comes from MLT, as in Kdenlive. 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>",
      "media_paths": "<media_paths>",
      "destination": "<destination>"
    },
    "name": "add_media_to_bin"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path of a .kdenlive project file on this machine.
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).
media_pathsYesAbsolute paths of media files.
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.2/5.0
Behavior4/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 genuinely useful behavior: duplicates are reported as 'existing' with a clip id rather than duplicated, the source project is not modified by default, and the result is written to destination. It defers overwrite/sha256 rules to save_project_copy instead of restating them, which leaves a small gap for an agent that must decide about overwriting.

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 short sentences, front-loaded with the action and scope, then behavior, then a pointer to shared safety rules. No filler or redundancy.

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 file-writing mutation, the description covers scope, dedupe outcome, source preservation, and points to save_project_copy for overwrite rules, while the output schema handles return values. The reliance on an external tool's documentation for safety rules is the main completeness weakness.

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 description coverage is 100%, so all five parameters are already documented, and the description adds only the destination-write framing plus dedupe semantics for media_paths. No new format, ordering, or constraint details beyond what the schema provides, so the baseline 3 applies.

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 audio or video files to a project's bin') and immediately disambiguates scope with '(not to the timeline)', which separates it from timeline-mutating siblings like insert_clip. The write-to-destination outcome is stated in the same sentence.

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?

The '(not to the timeline)' clause effectively routes the agent away from insert_clip, and the duplicate-handling sentence tells it what happens on repeat calls. It stops short of naming alternatives explicitly (e.g., relink_media for broken paths) or stating prerequisites for the project file.

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