Skip to main content
Glama

plan_ducking

Analyzes voice-track activity to compute music regions that duck under speech and return to full volume between speech, producing per-region volume levels for rough-cut assembly.

Instructions

Compute a music-ducking plan: analyze when the voice track is active and return music regions with per-region volume levels (ducked under speech, full between speech). The plan is a list of {inSecs, outSecs, volume} cut regions you feed to assemble_rough_cut as the music asset's keptRegions (one per region, same in/out, different volume). Explicit dials: duckVolume, threshold, padding — no hidden "auto enhance".

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": {
      "voiceMediaPath": "<voiceMediaPath>",
      "musicDurationSecs": "<musicDurationSecs>"
    },
    "name": "plan_ducking"
  }
}

Input Schema

NameRequiredDescriptionDefault
duckVolumeNoMusic gain during speech (0.2 = strongly ducked, 0.4 = gentle)
fullVolumeNo
paddingSecsNoEase margin around speech boundaries
musicStartSecsNo
noiseThresholdNo-30dB
voiceMediaPathYesDialogue/voice file — its detected speech defines when to duck
musicDurationSecsYesTotal music length to plan over

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the tool analyzes the voice track to detect speech and that there is no hidden 'auto enhance', but it does not say whether the operation is read-only, whether it touches files, or how expensive the analysis is.

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?

The purpose and output shape are front-loaded in the first sentence, and the second sentence explains the handoff to assemble_rough_cut. The parenthetical about keptRegions is dense but earns its place; overall there is little waste.

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?

There is no output schema, so the description must describe the return value, and it does so precisely as a list of {inSecs, outSecs, volume} regions. For a 7-parameter planning tool this is nearly complete, with only the unmentioned parameters and side-effect profile as gaps.

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 57%, and the description calls out duckVolume, threshold, and padding as explicit dials, adding intent beyond the schema. However, it says 'threshold' where the schema parameter is noiseThreshold, and it leaves fullVolume, musicStartSecs, and voiceMediaPath 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 resource ('Compute a music-ducking plan') and immediately defines the output artifact (music regions with per-region volume levels). It also names the downstream consumer, assemble_rough_cut, so an agent can place it in the pipeline without opening other 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?

The description makes the usage context clear: the plan is fed to assemble_rough_cut as the music asset's keptRegions, one region per entry. It does not state when to prefer this over alternatives such as analyze_silence or remove_silences, so it stops short of full when/when-not guidance.

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