Skip to main content
Glama

media_tools_audio_convert

Convert audio between MP3, OGG, Opus, M4A, WAV and FLAC with control of bitrate, sample rate and channels; cut a part, add fades, and normalize loudness to a LUFS target under a true-peak ceiling, keeping the dynamics. Price: $0.01 USDC via x402, charged only on success. Part of Media tools: Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers..

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

Input Schema

NameRequiredDescriptionDefault
audioNoAudio file as base64 (MP3, WAV, OGG, FLAC, M4A, AAC), or a video to take the sound from.
startNoWhere to start, in seconds.
formatNomp3
audioUrlNoLink to the audio.
channelsNo1 downmixes to mono.
durationNoHow many seconds to keep. To the end when omitted.
fadeInMsNo
fadeOutMsNo
normalizeNoBring loudness to the target level (two-pass, no pumping).
sampleRateNo
targetLufsNoLoudness target when normalize is on: -16 for web and podcasts, -14 for music platforms, -23 for broadcast.
bitrateKbpsNoFor mp3, ogg, opus and m4a. A sensible default per format when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does contribute real behavior: pricing ($0.01 USDC via x402), that billing only occurs on success, and that normalization is two-pass with a true-peak ceiling and preserved dynamics. It omits permissions, idempotency, input size/duration limits, and the shape of the response — meaningful gaps for a paid mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is dense, front-loaded, and well-structured; the price clause is a useful second sentence. The trailing suite blurb ('Part of Media tools: Video and audio chores for sites, apps and docs...') is roughly half the text and restates catalog marketing rather than helping invoke this tool, so it dilutes an otherwise tight definition.

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?

For a 12-parameter, zero-required, no-output-schema, no-annotation tool, the description covers formats, editing operations, and loudness behavior reasonably well. It leaves open how the two source parameters interact (audio vs audioUrl) and what the tool returns, which matters more here because no output schema documents the response.

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 67%, and the description adds genuine meaning beyond it: it explains that format/bitrate/sampleRate/channels are recording controls, that start+duration constitute a cut, and that targetLufs carries 'keeping the dynamics' plus a true-peak ceiling. It does not clarify the audio-vs-audioUrl precedence or whether either is effectively required despite zero required parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb (convert) plus resource (audio) and enumerates concrete capabilities: format set, bitrate/sample rate/channel control, cutting, fades, and LUFS normalization. It does not, however, separate itself from the sibling media_tools_extract_audio, even though the `audio` param also accepts video 'to take the sound from' — an overlap an agent cannot resolve from this text.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use statement, and no alternative tool is named. The trailing suite blurb ('turn a clip into a small GIF...extract or convert audio...') describes the whole catalog rather than this tool's niche, so the agent gets no routing signal against extract_audio, video_compress, or waveform.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources