Skip to main content
Glama

Set clip volume

set_clip_volume
Destructive

Set a constant audio level in dB on a clip's audio via Kdenlive's Volume effect, replacing an existing constant level and refusing animated levels; write the result to a destination project file.

Instructions

Set a constant audio level in dB (-100 to +20; 0 = unchanged level) on a clip's audio, with Kdenlive's Volume effect. For an audio/video pair, the audio clip is changed. An existing constant level is replaced; an animated one is refused. 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>",
      "level_db": "<level_db>",
      "destination": "<destination>"
    },
    "name": "set_clip_volume"
  }
}

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.
level_dbYes
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.5/5.0
Behavior5/5

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

Annotations declare a destructive, non-read-only mutation, but the description adds the operational details that matter: which clip in a pair is affected, that an existing constant level is overwritten, that animated levels cause refusal, that output goes to `destination`, and that the source file is never modified (deferring overwrite rules to save_project_copy). That is substantive context beyond the annotation flags.

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, front-loaded with the core action and range, then the targeting rule, the replacement/refusal rule, and the write semantics. No wasted clauses; the only slight density cost is the trailing reference to save_project_copy rules, which is necessary but reads as compressed.

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?

An output schema exists, so return values need not be described, and the schema documents 88% of eight parameters. The description covers the mutation's replace/refuse behavior and destination semantics, which is enough for correct invocation; the only residue is that sequence selection and overwrite expectations are handled solely via schema references.

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 already 88%, so the baseline is 3, but the description still contributes meaning the schema lacks: that level_db is a constant dB value where 0 means unchanged, and that the edit targets the audio clip of a pair. It says nothing extra about revision, sequence, or expected_sha256, leaving those entirely 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?

States a specific verb and object ('set a constant audio level in dB ... on a clip's audio') plus the mechanism ('Kdenlive's Volume effect') and the valid range with the meaning of the sentinel value 0. It also disambiguates the target when an audio/video pair exists, which no sibling name alone would resolve.

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 preconditions and exclusions: for an A/V pair the audio clip is the one modified, an existing constant level is replaced, and an animated volume curve is refused. It does not explicitly route the agent to an alternative (e.g. a fades tool) when the refusal case applies, so it stops short of full when-not guidance.

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