Skip to main content
Glama
libsonare-mcp

libsonare-mcp

Official
by libraz

Correct or change a voice

audio_vocal
Destructive

Edits the pitch of a vocal or single melodic line by correcting pitch, tuning to a MIDI reference, changing voice character, or editing individual notes, and writes a new file.

Instructions

Edits the pitch of a vocal or other single melodic line and writes a new file. Mode 'autoTune' corrects pitch, snapping notes to a scale (detected or named key); 'tuneToMidi' moves each sung note onto the matching note of a reference .mid; 'voiceChange' shifts pitch and formants or applies a voice preset; 'editNotes' detects the notes and moves, transposes, re-gains or mutes chosen ones in one call (a dry run lists the notes and their indices). The result reports the measured pitch change in cents. To put an edited take back into a project, pass the output to project_edit 'setClipSource'. Do not use it to measure intonation (audio_pitch), for EQ or effects (audio_process) or to transpose a whole mix (audio_edit). Stereo input is processed as its mono downmix. Example: {"path": "take.wav", "mode": "editNotes", "edit_notes": {"edits": [{"note_index": 3, "target_midi": 64}]}}.

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

Input Schema

NameRequiredDescriptionDefault
modeYes'autoTune' corrects pitch to a scale, 'tuneToMidi' follows a reference melody, 'voiceChange' shifts pitch and formants or applies a voice preset, 'editNotes' moves, shifts or mutes individual detected notes.
pathYesInput audio file path: a vocal or other single line (editNotes with polyphonic also takes chords).
rangeNoOnly process this window ({start_sec, end_sec}, in seconds); the output contains just the window. Omit for 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.
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.
auto_tuneNoOptions for mode 'autoTune' (all optional).
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.
overwriteNoReplace an existing output file. Without it an existing file is an error.
edit_notesNoOptions for mode 'editNotes'; edits are required unless dry_run.
sample_rateNoOutput sample rate in Hz; the audio is resampled when it differs. Default: the input's rate. Opus is always 48000.
tune_to_midiNoOptions for mode 'tuneToMidi'; 'reference' is required.
voice_changeNoOptions for mode 'voiceChange'; a preset or a shift is required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: output is written as a new file, the result reports the measured pitch change in cents, a dry run lists detected notes and their indices, and stereo input is silently processed as its mono downmix. The overwrite-on-existing-file hazard is left to the schema's 'overwrite' field rather than stated here, which is the only notable gap against destructiveHint=true.

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?

Dense but front-loaded: modes first, then cross-tool chaining, then exclusions, then a concrete example. Every sentence carries information, though the single unbroken paragraph is heavier than it needs to be for a 15-parameter tool.

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 15-parameter, four-mode tool with no output schema, the description covers mode semantics, output-file behavior, a key return value (pitch change in cents) and downstream integration. It stops short of describing the full return payload or how the windowed 'range' output relates to the source file, both of which the agent must infer.

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 nonetheless adds meaning by explaining what each mode's option object is for, how dry_run interacts with edit_notes (lists notes and indices before editing) and by supplying a worked JSON example for the nested edit_notes structure.

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?

Names a specific verb (edits the pitch) and resource (a vocal or single melodic line) and enumerates the four distinct modes with what each does, so an agent can tell it apart from audio_edit, audio_process and audio_pitch 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 Guidelines5/5

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

Gives explicit negative routing — do not use for measuring intonation (audio_pitch), EQ/effects (audio_process) or transposing a whole mix (audio_edit) — plus the positive chaining rule of passing the output to project_edit 'setClipSource' to restore the take into a project, and mode selection criteria for each of the four modes.

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