Skip to main content
Glama

Convert Audio Tool

convert_audio

Convert a sound file to another audio format, e.g. WAV → MP3, M4A → MP3, FLAC → WAV, MP3 → OGG, OPUS → MP3, WMA → MP3, MP3 → M4R (ringtone). Optional bitrate, sample rate, mono/stereo and a cut (start/end in seconds). Audio only – no video. See list_formats for every pair. Send the file as file (attached in the chat), url or base64. Returns download_page when done.

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": {
      "output_format": "<output_format>"
    },
    "name": "convert_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoCut: end at this second.
urlNoA public http(s) link to the file. Use this, file or base64.
fileNoA file attached in the chat (filled in by the app; use this instead of base64 when the user attached the file).
startNoCut: start at this second.
base64NoThe file as base64 (or a data: URL), for small files only. Prefer file or url.
bitrateNokbit/s for lossy targets; auto = like the source.
channelsNo
filenameNoOriginal file name, e.g. voice.m4a.
keep_tagsNoKeep title/artist tags and cover (default: yes).
sample_rateNoHz; original keeps it.
input_formatNoInput format, e.g. wav; not needed when filename has the extension.
output_formatYesTarget format, e.g. mp3, wav, m4a, aac, flac, ogg, opus, wma, m4r.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations carry only a title, so the description does the disclosure work, and it delivers useful traits: the result comes back as a download_page, base64 is limited to small files, bitrate "auto" mirrors the source, and keep_tags defaults to yes. It omits processing time/async behavior and any size or rate limits, which matters for a 12-parameter conversion job.

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?

One compact paragraph, front-loaded with the core action and format examples, then options, then input methods, then the return value. Dense but every clause carries information; the pair enumeration is slightly long but aids selection.

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?

A 12-parameter tool with no output schema has the essential bases covered: how to supply input, what optional knobs exist, and what comes back (download_page). Missing only edge-case behavior such as failure modes, size ceilings, or long-running job handling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 92%, so the baseline is 3 and the schema already explains start/end, bitrate, sample_rate, filename, and keep_tags. The description's mention of optional bitrate, sample rate, mono/stereo, and a cut largely restates the schema, adding only the input-method preference ordering.

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 ("Convert a sound file to another audio format") and backs it with concrete conversion pairs (WAV → MP3, MP3 → M4R ringtone). "Audio only – no video" plus the explicit pointer to list_formats cleanly separates it from siblings convert_document and convert_image.

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 gives clear operating context: use the attached file, a public url, or base64, and consult list_formats for supported pairs. It stops short of explicit when-not-to-use routing (e.g., for video use X, for already-correct formats skip), but the "audio only – no video" exclusion and input-method preference cover most of the decision.

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