Skip to main content
Glama
libsonare-mcp

libsonare-mcp

Official
by libraz

Inspect audio files

audio_info
Read-only

Inspect audio files to report format, duration, sample rate, channels, tags, peak/RMS/LUFS, true peak, clipping, silence and stereo correlation for quick loudness or file checks.

Instructions

Reports what an audio file is and how loud it is: container and codec, duration, sample rate, channels, bit depth, text tags, plus peak, RMS, integrated LUFS, true peak, DC offset, clipped-sample count, silence ratio and stereo correlation. Use it first on any file, to compare several files, or to check a loudness or clipping problem quickly. Do not use it for tempo, key or chords (use audio_analyze) or for loudness over time and streaming-platform previews (use audio_loudness). Example: {"paths": ["~/Music/mix/*.wav"]} inspects every wav in a folder.

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

Input Schema

NameRequiredDescriptionDefault
pathNoAudio file to inspect; give either 'path' or 'paths'.
pathsNoSeveral files or glob patterns (for example '~/Music/*.wav'), at most 50 files after expansion. A file that cannot be read is reported in its own entry.
rangeNoAnalyze only this window ({start_sec, end_sec}, in seconds); times in the result stay on the file's own timeline. Omit for the whole file.
detailNo'concise' returns the summary and the most useful fields; 'full' returns all.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds value by disclosing exactly what comes back (the metric set) on a tool with no output schema. It does not discuss cost on large batches or what happens when both 'path' and 'paths' are given, which keeps it short of a 5.

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 purpose, then usage, then exclusions, then a compact example — a good ordering with no filler. The long metric enumeration is dense but each item earns its place by defining the tool's output surface; it could have been grouped slightly more tightly.

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?

With no output schema, the description carries the return-value burden and discharges it via the metric list, and it handles the main disambiguation against two siblings. Minor gap: it never mentions how 'detail' changes the payload or how path vs paths interact, though the schema covers both.

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%, so every parameter (path, paths, range, detail) is already documented in the schema, including glob expansion and the 50-file cap. The description's only addition is a worked example showing a glob path, which illustrates but does not extend the schema's meaning. Baseline 3 is appropriate.

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 concrete verb+resource ("Reports what an audio file is and how loud it is") and enumerates the exact outputs: container, codec, duration, sample rate, channels, bit depth, tags, peak, RMS, LUFS, true peak, DC offset, clipping count, silence ratio, stereo correlation. That enumeration alone lets an agent distinguish it from audio_analyze and audio_loudness without opening any schema.

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 explicit when-to-use conditions ("first on any file", "compare several files", "check a loudness or clipping problem quickly") and explicit exclusions routing to named alternatives: tempo/key/chords to audio_analyze, loudness-over-time and platform previews to audio_loudness. Nothing about tool selection is left to inference.

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