Skip to main content
Glama

Audio to MIDI Converter

Turn a recording into MIDI

convert_to_midi
Read-onlyIdempotent

Finds the melody in an audio file the user uploaded (singing, humming or one instrument), shows it as a piano roll that plays, and opens it on MusicBun to download as a MIDI file. Use when the user attaches audio and asks for MIDI or the notes of a melody.

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": {
      "audio": "<audio>"
    },
    "name": "convert_to_midi"
  }
}

Input Schema

NameRequiredDescriptionDefault
audioYesThe audio file the user uploaded

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds real behavioral context beyond them: the pipeline stages (melody extraction, piano-roll preview with playback, MusicBun hand-off for download) and the input constraint to singing, humming or a single instrument. Minor tension exists between "opens it on MusicBun" and readOnlyHint, but this reads as presenting a derived artifact rather than mutating stored state, so it is not a contradiction.

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?

A single tight sentence plus a usage sentence, with the core action front-loaded. The middle clause about the piano roll that plays is UI detail of marginal value to an invoking agent, but it is brief and does not bloat the definition.

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?

There is no output schema, so the description must convey the return shape, and it does: a playable piano roll plus a MIDI file available for download. It does not say how the result is handed back (URL, file id, or session link) or how long conversion takes, which would matter for an agent relaying results to a user.

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?

With one parameter at 100% schema coverage, the schema already documents the nested audio object and its required download_url/file_id. The description still adds meaning the schema cannot: the audio must be monophonic in practice (singing, humming, or one instrument), which tells the agent what kinds of uploads will succeed.

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?

States a concrete verb and resource: find the melody in an uploaded audio file and produce a downloadable MIDI file. The core purpose is unmistakable, though the phrase "opens it on MusicBun" blurs whether the tool returns the MIDI artifact or launches a separate UI, leaving mild ambiguity about the actual deliverable.

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?

Gives an explicit trigger condition: "Use when the user attaches audio and asks for MIDI or the notes of a melody." That is a clear selection rule. There are no siblings to differentiate against and no exclusion cases are stated (e.g., what to do for polyphonic or multi-instrument audio), so it stops short of a 5.

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