Skip to main content
Glama

reaper_auto_level

Writes gain automation to a track's pre-FX volume envelope to level quiet and loud windows toward a target while keeping silence and excluded ranges at 0 dB.

Instructions

Write gain points into the track's pre-FX volume envelope (shown if hidden) so each window moves toward the target level: quiet parts boosted, loud parts cut, silence and excluded parts kept at 0 dB. Replaces existing envelope points in the range. One undo step. Run reaper_analyze_levels first.

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": {
      "track": "<track>"
    },
    "name": "reaper_auto_level"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
unitNo'seconds', 'beats' (quarter notes from project start) or 'bars' (1-based, fractional allowed)bars
startNo
trackYesTrack number as shown in REAPER (1-based, 0 = master) or exact track name
windowNoAnalysis window size in `unit`
excludeNoParts to leave untouched (0 dB): region/marker-section names or {start, end} ranges in `unit`
gate_dbNoWindows quieter than this (dBFS RMS) count as silence and are never boosted
strengthNoFraction of the correction applied; <1 keeps some natural dynamics
target_dbNoTarget RMS dBFS; median of analyzed windows if omitted
max_cut_dbNo
max_boost_dbNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Adds real context beyond the annotations: existing envelope points in the range are replaced, the envelope is made visible if hidden, and the whole operation is a single undo step. That 'replaces existing points' detail is the key behavioral fact an agent needs, since destructiveHint is false and would otherwise suggest a purely additive operation. It does not say what is returned or whether a pre-existing envelope is required, keeping it at 4.

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?

Four short sentences, front-loaded with the effect and followed by side effects, then the prerequisite. No restatement of the tool name, no filler, and the parenthetical 'shown if hidden' carries useful information compactly.

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 with no output schema, the description covers the essential behavior, side effects, undo semantics, and prerequisite. The main gap is that with no output schema present, a sentence on what the call reports back (points written, gain range applied) would complete the picture.

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?

With 11 parameters and only 64% schema description coverage, several params (max_cut_db, max_boost_db, start/end, window) rely entirely on the schema. The description's mention of 'windows', 'silence', and 'excluded parts at 0 dB' loosely maps to window/gate_db/exclude but adds no syntax, defaults, or interaction detail beyond what the schema already states.

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 target ('write gain points into the track's pre-FX volume envelope') plus the goal ('so each window moves toward the target level'), with a one-line breakdown of the three cases (boost, cut, keep at 0 dB). An agent can distinguish this from the sibling analysis tools without opening the schema.

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?

'Run reaper_analyze_levels first' names the prerequisite sibling explicitly, making the analyze-then-apply workflow unambiguous. It stops short of saying when NOT to use this (e.g. when you want a static offset instead of a windowed envelope), so it falls just short of a 5.

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