Skip to main content
Glama

FLAC to MP3 API - convert lossless FLAC to 320 kbps or VBR MP3 with tags

flac_to_mp3
Read-onlyIdempotent

Send a lossless FLAC audio file as base64 and get an MP3 back at 320, 256, 192 or 128 kbps CBR or audiophile VBR V0 / V2. Preserves Vorbis/ID3 metadata tags and embedded album 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/flac-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": "flac_to_mp3"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, idempotent, openWorld) by disclosing that processing is deterministic local ffmpeg/libmp3lame, that nothing is stored, and that there is no AI involvement. It also adds concrete operational context: 5 free calls/day per IP, X-API-Key auth for the paid tier, and a per-call x402 payment route.

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 contract and options are front-loaded in the first sentence, with operational facts after. It is dense but not padded, though the pricing URL, currency, and x402 link add commercial clutter 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, zero-required conversion tool with full schema coverage and no output schema, the definition covers input format, size cap, defaults, and cost/auth constraints. The remaining gap is the return shape: it says 'get an MP3 back' but never states whether the result is base64, 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 adds meaning the schema does not: that metadata and cover art are preserved by default (clarifying the stripMetadata default) and that VBR V0/V2 are the 'audiophile' options and normalization targets EBU R128. It does not explain fileName's role or the sample-rate interaction with quality, keeping it below a 5.

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 pair ('Send a lossless FLAC... get an MP3 back') with the exact output variants (320/256/192/128 CBR, VBR V0/V2). It is clearly distinguishable from sibling converters like image_convert or data_convert 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 Guidelines3/5

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

Implied usage is clear from the input contract (base64 FLAC, 20 MB max, empty string returns a built-in sample), and pricing tiers hint at when free vs. paid applies. However, there is no explicit 'use this when / don't use this when' statement or comparison to any alternative tool.

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