Skip to main content
Glama
libsonare-mcp

libsonare-mcp

Official
by libraz

Apply audio effects (processor chain)

audio_process
Destructive

Applies audio processor chains (EQ, compression, reverb) to files, supports parameter automation and headphone/speaker rendering, and reports loudness, true peak, and band balance before and after.

Instructions

Applies a chain of audio processors in order: EQ, compressor, limiter, gate, de-esser, reverb, delay, chorus, flanger, saturation, stereo width, room morph and the rest of the 95 catalog processors, and reports loudness (LUFS), true peak and low/mid/high band balance before and after. Parameters can move over time with 'automation', the audio can be rendered for headphones or speakers with 'playback_render', and dry_run with report 'eqResponse' returns the EQ curve of the chain. Use it for a specific effect or a hand-built chain; look up processor ids and parameters with music_catalog first. Do not use it to master to a loudness target (use audio_master), to remove noise, clicks or hum (use audio_repair), to match a reference track (audio_master with reference), to mix or join several files (use project_create and project_render), or for gain, fades, trim and format conversion (use audio_edit). Example: {"path": "vocal.wav", "chain": [{"processor": "eq.parametric", "params": {}}, {"processor": "effects.reverb.plate", "params": {}}]}.

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_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesInput audio file (wav, flac, mp3, ogg, aiff, ...).
chainNoProcessors applied in order, each {processor, params}. Ids and parameters come from music_catalog kind 'processors' / 'processor'. The chain runs each processor's offline form, or its realtime form when 'automation' is given, and takes that form's parameters. An empty chain copies the audio (useful with range to cut, or to re-encode).
rangeNoOnly process this window {start_sec, end_sec}; the output contains just the window. An end_sec past the end is clipped (reported in warnings). Default: the whole file.
detailNo'concise' returns the summary and the most useful fields; 'full' returns all.concise
formatNoOutput format: wav, flac, ogg (Vorbis), opus, mp3, aiff, or m4a (AAC, needs ffmpeg). Default: the explicit output's extension, else the input's format, else wav.
outputNoOutput file path. Default: an auto-named new file '<input stem>.<tool>.<ext>' in the output directory.
reportNoWith dry_run: instead of only planning, add the named measurement of the chain to the answer. 'eqResponse': the combined magnitude curve, in dB at third-octave frequencies, of the chain's eq.parametric steps.
dry_runNoReport the resolved output plan and paths without processing or writing.
qualityNoLossy encoder setting for ogg/opus/mp3, 0..1 (soundfile compression_level, variable bit rate): 0 = best quality, 1 = smallest file. On 48 kHz stereo music, mp3 0 / 0.3 / 1 is about 192 / 120 / 55 kbit/s (no 320 kbit/s setting), ogg about 330 / 150 / 45 and opus about 510 / 360 / 13. Default 0.3. Excludes bit_depth.
bit_depthNoPCM bit depth for wav/flac/aiff: 16, 24 or 'float32' (32-bit float; not flac). Default: the input's depth, else 24. Excludes quality.
hrtf_pathNoA SHRF v1 HRTF set for a headphones playback_render. Default: the built-in set.
overwriteNoReplace an existing output file. Without it an existing file is an error.
automationNoParameters of chain steps that move over time, e.g. a filter sweep or a fade of an effect's amount: [{processor_index, param, points: [{time_sec, value}]}]. Mono or stereo input only; processors without a realtime form cannot be automated.
sample_rateNoOutput sample rate in Hz; the audio is resampled when it differs. Default: the input's rate. Opus is always 48000.
playback_renderNoAfter the chain, render for a playback target (binaural headphones, speaker layouts) with the playback renderer; the output may have another channel count than the input. Accepts 5.1 / 7.1 input only when the chain is empty.

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 a destructive, non-read-only write operation, and the description adds substantial context beyond that: chain order, realtime behavior under automation, dry_run planning, eqResponse reporting, and playback rendering. It does not explicitly discuss overwrite risk or output-file side effects, but those are covered by the schema and annotations.

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?

The description is dense but front-loaded and purpose-driven; the processor list and sibling exclusions earn their place for a complex 15-parameter tool. It could be slightly more structured, but there is little wasted wording.

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 a complex processor-chain tool with no output schema, the description explains the main outputs (loudness, true peak, band balance, eqResponse) and all major workflow alternatives. Some return-shape details remain implicit, but the definition is sufficient to call the tool 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 description coverage is 100%, so the schema already carries the detailed parameter semantics. The description adds useful workflow meaning by pointing to music_catalog for processor ids and giving an example chain, but most parameter-level explanation remains in 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?

The description states a specific verb and resource: applies an ordered chain of audio processors, names representative processors, and explains that it reports loudness, true peak and band balance. It clearly distinguishes the tool from mastering, repair, mixing and edit siblings.

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?

It gives explicit when-to-use guidance for specific effects or hand-built chains, tells the agent to look up processor ids in music_catalog first, and names the correct alternatives for mastering, noise removal, reference matching, mixing/joining and simple edits. The exclusions are unusually complete.

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