Skip to main content
Glama

M4A to MP3 API - convert M4A, M4B and AAC/ALAC audio to MP3 with tags

m4a_to_mp3
Read-onlyIdempotent

Send an M4A, M4B or AAC audio file (iPhone Voice Memos, Apple Music/ALAC) as base64 and get a universal MP3 back. Smart auto quality matches source bitrate (avoids bloating voice memos) or pick 320, 256, 192, 128, 96 kbps CBR or VBR V0 / V2. Preserves metadata tags and embedded cover art by default, with optional sample rate (44.1 / 48 kHz), stereo/mono and EBU R128 loudness normalization. Deterministic local ffmpeg (libmp3lame), 0 AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/m4a-to-mp3.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "m4a_to_mp3"
  }
}

Input Schema

NameRequiredDescriptionDefault
qualityNoMP3 bitrate or VBR preset: auto (default), 320, v0, 256, 192, v2, 128, 96auto
channelsNokeep original, 2 (Stereo) or 1 (Mono)keep
fileNameNoOptional file name, e.g. voice-memo.m4a
normalizeNoNormalize loudness to EBU R128 (-16 LUFS)
sampleRateNoTarget sample rate in Hz, or keep originalkeep
fileContentNoThe .m4a/.m4b/.aac file as base64, max 20 MB (empty = built-in sample M4A)
stripMetadataNoStrip ID3 tags and embedded album art

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent/open-world profile, and the description adds substantial context beyond them: deterministic local ffmpeg with libmp3lame, no data storage, metadata and cover art preserved by default, and exact access/pricing mechanics (X-API-Key or x402 at $0.005/call). The rate limit and auth requirements are precisely the kind of behavioral detail annotations cannot express.

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 core conversion statement and quality options are front-loaded and dense with useful specifics. Some tail material — the full pricing URL, the EUR price point, and the '0 AI' aside — reads as marketing padding that an agent does not need to select or invoke the 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 7-parameter conversion tool with no output schema, the description covers inputs, quality tradeoffs, metadata behavior, and access requirements well. The remaining gap is the response shape: it says an MP3 comes 'back' but not whether that is base64 in JSON, a URL, or a binary payload.

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, but the description goes further by explaining what 'auto' actually does — matching the source bitrate to avoid bloating voice memos — and by tying 'normalize' to EBU R128 loudness targets. It also clarifies the default preservation of tags and art, which is the semantics behind stripMetadata.

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 opens with a specific verb and resource pair — 'Send an M4A, M4B or AAC audio file ... as base64 and get a universal MP3 back' — naming exact accepted inputs and the produced output. The sibling set includes flac_to_mp3 and other converters, and the source-format specification alone is enough to route between them 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 Guidelines4/5

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

It establishes clear context: use this when the source is M4A/M4B/AAC (iPhone Voice Memos, Apple Music/ALAC), and it discloses the free-tier limit of 5 calls/day per IP plus the two paid paths. It does not explicitly name a sibling to use instead for non-M4A inputs, so the exclusion is implied by format rather than stated.

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