Skip to main content
Glama
libsonare-mcp

libsonare-mcp

Official
by libraz

Master audio to a loudness target

audio_master
Destructive

Master a track to a LUFS target and dBTP ceiling with EQ, compression and true-peak limiting, using a preset, delivery platform or reference track to reach streaming-ready loudness.

Instructions

Masters a track: EQ, compression, saturation, stereo imaging, true-peak limiting and loudness normalization to a LUFS target and dBTP ceiling, with a preset (pop, edm, podcast, classical, ...), a delivery platform (streaming, youtube, broadcast, club, cd), a reference track to match, or the chain the mastering assistant suggests for the audio, with optional chain settings ('overrides') on top. Use it for 'make it -14 LUFS', 'master this for Spotify' or 'make it sound like this reference'; dry_run: true returns the suggested chain, the reasons and a streaming-platform normalization preview without writing. Do not use it to only measure loudness (use audio_loudness), for single effects (use audio_process) or for noise and click removal (use audio_repair). Example: {"path": "song.wav", "target_lufs": -14, "ceiling_dbtp": -1}.

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

Input Schema

NameRequiredDescriptionDefault
pathYesInput audio file to master (mono or stereo).
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.
presetNoMastering preset (music_catalog kind 'masteringPresets', kind 'mastering'), e.g. 'pop', 'edm', 'podcast', 'classical'. Restoration presets (vinyl, tapeHiss, ...) run in audio_repair. Default: the chain the mastering assistant suggests for this audio.
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.
platformNoDelivery target whose loudness and ceiling to use (music_catalog kind 'masteringPlatforms'): streaming, youtube, broadcast, podcast, audiobook, cinema, club, cd. Explicit target_lufs / ceiling_dbtp win. These are delivery classes, not services: to master for one service, pass the target_lufs and ceiling_dbtp audio_loudness previews for it (spotify, appleMusic, ...).
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.
overridesNoChain settings to apply on top of the preset or the assistant's chain, as a chain document: {version?: 2, params: {'<stage>.<param>': value}}, e.g. {params: {'loudness.targetLufs': -12, 'maximizer.truePeakLimiter.enabled': true}}. Only the keys listed are changed; the document is validated as a whole. target_lufs and ceiling_dbtp still win.
overwriteNoReplace an existing output file. Without it an existing file is an error.
referenceNoA reference track to match: its tonal balance is matched with an EQ curve before mastering and its integrated loudness becomes the target (unless target_lufs is given).
sample_rateNoOutput sample rate in Hz; the audio is resampled when it differs. Default: the input's rate. Opus is always 48000.
target_lufsNoIntegrated loudness target in LUFS, e.g. -14 for streaming. Default: the reference's loudness, else the platform's, else the preset's.
ceiling_dbtpNoTrue-peak ceiling in dBTP, e.g. -1. Default: the platform's or preset's.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds material context beyond that: dry_run writes nothing but still returns the suggested chain, the reasons and a platform normalization preview, and the chain falls back to the mastering assistant when no preset is given. It stops short of stating overwrite/reversibility consequences in prose (those live only in the schema).

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-loads the capability, then usage, exclusions and an example, with no filler sentences. The first sentence is a long run-on enumerating every optional input, which is dense but still scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description only explains the dry_run return payload — not the shape of a normal mastering result (what chain was applied, what report fields come back). For a destructive, 16-parameter tool that gap is a real omission, though the input side is well covered.

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 100%, so the baseline is 3; the description still earns a bump by naming preset families (pop, edm, podcast, classical), platform delivery classes and reference-matching semantics, and by giving a minimal working example call with target_lufs and ceiling_dbtp for a 16-parameter tool.

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 ('Masters a track') and enumerates the processing chain (EQ, compression, saturation, imaging, true-peak limiting, loudness normalization), which no sibling does in combination. It also explicitly carves out the boundary against audio_process, audio_loudness and audio_repair.

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 concrete trigger phrases ('make it -14 LUFS', 'master this for Spotify', 'make it sound like this reference') plus explicit do-not-use cases naming the sibling to use instead for measurement, single effects and repair. That is the full when/when-not/alternative set.

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