Skip to main content
Glama

Duck music under voice

duck_audio

Writes volume keyframes that lower music clips beneath voice clips, adding attack and release ramps so dialogue stays audible in Premiere Pro.

Instructions

Automatic ducking: lower the "music" clips by duck_db wherever a "voice" clip plays, with an attack ramp before and a release ramp after each voice range. Voice ranges come from the voice clips' timeline positions (start..end), merged when closer than merge_gap. Writes Volume > Level keyframes on each overlapping music clip (existing keyframes inside the ducked spans are replaced) relative to the music's current level. Returns the voice ranges and, per music clip, the keyframes written (sequence time, dB). Voice and music may be given as clip ids and/or audio track indices.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "duck_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
attackNoRamp-down time before each voice range, in seconds. Default 0.25.
duck_dbNoHow much to lower the music, in dB (negative). Default -12.
releaseNoRamp-up time after each voice range, in seconds. Default 0.5.
merge_gapNoVoice ranges closer than this (seconds) are merged so the music does not pump. Default 1; never less than attack + release.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.
music_clip_idsNoIds of the music (background) audio clips to lower.
voice_clip_idsNoIds of the voice (foreground) audio clips.
music_track_indicesNo0-based audio tracks whose clips are all music.
voice_track_indicesNo0-based audio tracks whose clips are all voice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that it writes Volume > Level keyframes relative to the music's current level and that existing keyframes inside ducked spans are replaced — a real data-loss caveat an agent must know. It also explains how voice ranges are derived and merged, and what the call returns, all of which go past readOnlyHint=false and idempotentHint=false.

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?

The core action and its target are front-loaded in the first clause, followed by mechanics, side effects, and return value in a tight sequence. Every sentence carries distinct information with no filler or repetition of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still specifies what is returned (voice ranges and per-clip keyframes with sequence time and dB). For a 10-parameter mutation tool with zero required params, it covers scope, side effects, defaults, and return shape, leaving nothing an agent needs missing.

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 100%, so the baseline would be 3, but the description adds relational meaning the schema cannot: attack is a ramp before each voice range, release after, merge_gap merges nearby ranges so the music does not pump, and ducking is computed relative to the music's current level. That clarifies how parameters interact rather than restating them.

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 pair, "Automatic ducking: lower the 'music' clips ... wherever a 'voice' clip plays," and names the exact mechanism (Volume > Level keyframes). It is clearly distinguishable from siblings like mute_audio_range or fade_in_audio, which do not depend on voice ranges or write keyframes.

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 phrase "Automatic ducking" plus the voice-over-music framing makes the intended scenario clear, and the last sentence explains that voice and music may be supplied as clip ids and/or track indices. However, it never states when to prefer this over alternatives such as mute_audio_range or manual add_keyframe, nor any exclusions.

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

Deploy Server

Other Tools