Skip to main content
Glama
libsonare-mcp

libsonare-mcp

Official
by libraz

Measure room acoustics

audio_acoustics
Read-only

Measure room acoustics from an impulse response to get RT60, early decay, clarity, and definition per octave band, or estimate a room's volume and absorption from any recording.

Instructions

Measures room acoustics: from an impulse response it reports reverberation time (RT60), early decay time, clarity (C50, C80) and definition (D50) per octave band. Unmeasured RT60 and absorption values are omitted and named in warnings. From any recording it estimates the equivalent room (volume, dimensions, per-band absorption, direct-to-reverberant ratio) blindly, which can take tens of seconds on a long file. Use it to judge a room, a reverb or a convolution impulse. Do not use it to add or remove reverb (audio_process, audio_repair) or to make an impulse response (audio_generate kind roomIr). Example: {"path": "hall_ir.wav", "mode": "ir", "n_octave_bands": 6}.

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>"
    },
    "name": "audio_acoustics"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo'ir': the file is a measured or synthesized room impulse response; returns RT60, EDT, C50, C80, D50 overall and per octave band. 'estimate': the file is any recording (speech, music) or an impulse response; estimates the equivalent room (volume, dimensions, absorption, direct-to-reverberant ratio) blindly, which is slow on long files. Unmeasured RT60 and absorption values are omitted and named in warnings.ir
pathYesAudio file: an impulse response (mode ir) or a recording.
rangeNoAnalyze only this window ({start_sec, end_sec}, in seconds); an end_sec past the file length is clipped. Omit for the whole file.
detailNo'concise' returns the summary and the most useful fields; 'full' returns all.concise
n_octave_bandsNoOctave bands to report, starting at 125 Hz and doubling: 6 covers 125 Hz to 4 kHz, 8 reaches 16 kHz. Range 1 to 8.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint it discloses non-obvious behavior: unmeasured RT60 and absorption values are omitted and surfaced as named warnings (partial results are possible), and blind estimation can take tens of seconds on long files. Both are performance/result-shape facts an agent needs before committing to a call and that no structured field carries.

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?

Front-loaded with what is measured, then caveats, then routing guidance, then an example: a sensible order with no filler sentences. Slight redundancy exists where mode behavior is restated from the schema, costing a perfect score.

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?

No output schema, yet the description communicates what comes back (band-by-band metrics; estimated volume, dimensions, absorption, DRR), how partial results are signaled, and the cost profile of the slow path. For a 5-parameter read-only analysis tool this is sufficient to call correctly.

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 100% and the mode enum description already spells out the ir vs estimate semantics, so the description's restatement of mode behavior adds little. The example call ({path, mode, n_octave_bands}) does illustrate a valid combination, but band layout and range details are left 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 (measures room acoustics) and enumerates the actual outputs: RT60, EDT, C50, C80 and D50 per octave band, plus blind estimation of volume, dimensions, absorption and direct-to-reverberant ratio. An agent can distinguish this from audio_analyze or audio_features purely from the text.

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

Usage Guidelines5/5

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

Gives positive routing ("Use it to judge a room, a reverb or a convolution impulse") and explicit exclusions naming alternatives: no reverb add/remove (audio_process, audio_repair) and no impulse-response creation (audio_generate kind roomIr). Both when-to-use and when-not-to-use are stated, not implied.

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