Skip to main content
Glama

reaper_level_segments

Align loudness across mix or podcast segments by applying one constant pre-FX gain per segment with short boundary ramps, respecting the true-peak ceiling and recording one undo step.

Instructions

Align the loudness of a mix's parts (tracks of a DJ mix, podcast segments) with one constant gain per segment in the pre-FX volume envelope and a short ramp at each boundary: a few points per mix, no riding inside a segment. Each segment is measured without its first/last 30 s (blends); neighbours with nearly the same correction are merged, boosts stop at the true-peak ceiling. One undo step.

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": "reaper_level_segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoSeconds; item extent if omitted
startNoSeconds; item extent if omitted
trackNoTrack number or name; the selected track if omitted (exactly one must be selected)
ramp_sNoGain ramp length, centred on each boundary
dry_runNo
replaceNoIgnore and overwrite the existing envelope in the range instead of multiplying onto it
boundariesNoSegment start times in seconds; region or marker positions if omitted
max_gain_dbNo
target_lufsNoIntegrated target per segment; loudness of the whole range if omitted
ceiling_dbtpNoPeak ceiling in dBTP for the signal entering the FX chain
min_change_dbNoSmaller corrections are skipped and neighbours this close are merged

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only supply a flat safety profile (readOnly=false, destructive=false, idempotent=false), so the description carries real weight and delivers: it names the target of the write (pre-FX volume envelope) and discloses a single undo step for reversibility. It also explains measurement behavior (segments measured without the first/last 30 s) and the ceiling clamp on boosts, though it says nothing about what happens on failure or what a dry run reports.

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?

Three sentences, front-loaded with the core action and free of filler; the parenthetical examples are load-bearing rather than decorative. The first sentence is long with several embedded clauses, which costs a point on readability but not on economy.

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 an 11-parameter mutation tool with no output schema, the description covers the algorithm, the write target, and reversibility well enough to call it safely. The notable gap is that dry_run has no description anywhere and there is no output schema explaining what it returns, leaving the agent to guess at the dry-run reporting format.

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 82%, so the baseline is 3; the description adds genuine meaning on top by tying the algorithm to specific controls: one gain per segment, the boundary ramp length, merging of near-identical neighbour corrections (min_change_db), and boosts stopping at the true-peak ceiling. It does not explain dry_run or replace, which remain schema-only or undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb and resource: it aligns loudness of a mix's parts by writing one constant gain per segment into the pre-FX volume envelope. The 'no riding inside a segment' and 'short ramp at each boundary' phrasing implicitly distinguishes this from phrase- or voice-level leveling siblings, but no sibling is named explicitly, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Use cases are implied through examples ('tracks of a DJ mix, podcast segments'), which tells an agent the intended material. There is no explicit when-to-use versus reaper_level_phrases / reaper_level_loudness / reaper_auto_level guidance, and no stated prerequisites or exclusions.

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