Skip to main content
Glama

musictomidi_convert_to_midi

Uploads a local audio or video file and starts a MIDI conversion job, returning a job ID to monitor status and download results.

Instructions

Uploads a local audio or video file to MusicToMIDI and starts a MIDI conversion job. Returns at once, without waiting for the end of the job: jobId (give it to musictomidi_get_job to get the status, then to musictomidi_download_result to get the files) and status.

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": {
      "file_path": "<file_path>",
      "model": "<model>"
    },
    "name": "musictomidi_convert_to_midi"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesv1: Basic Pitch, one track, no drum track. v2: Basic Pitch architecture retrained, bigger, fewer wrong notes, one track, no drum track. v3: for full mixes, one MIDI track per instrument found, no drum track. multitrack_transformer: one transformer writes every instrument of the mix at once, no separation (dense arrangements). vocal_transformer: MIDI of the singing voice. drums_to_midi: one MIDI drum track on channel 10 (drums alone, or a song with options.isolate). multitrack: separates the stems listed in stems (vocals, drums, bass, guitar, piano, other), then converts each one with a model trained for that instrument, one track per stem; the separated stems come back too, in FLAC. Prices: musictomidi_get_prices.
stemsNomultitrack (refused for the other models). Stems to separate from the audio, each one then converted to MIDI: vocals, drums, bass, guitar, piano, other. Not sent: all six.
optionsNoConversion settings. A setting not sent keeps its default.
file_pathYesAbsolute path of the local file to send: audio (mp3, wav, ogg, opus, flac, m4a, aac, aiff…) or video (mp4, mov, webm, mkv, avi…, its audio track is used). Limits: 4 GB (a larger file is refused before it is sent), and 2 hours of audio (a longer audio makes the job fail with audio_too_long).
endSecondsNoEnd of the audio selection, in seconds, after startSeconds. Past the end of the file, the selection stops at the end of the file.
startSecondsNoStart of the audio selection, in seconds from the start of the file. Sent with endSeconds: only the selection is converted and paid; tempo, meter and key are still measured on the whole file. A selection that starts after the end of the file makes the job fail (invalid_request).
Idempotency-KeyNoOptional. A code of your choice (8 to 255 characters) that protects against starting the same job twice. Call again with the same code, the same file and the same parameters, for example after a network error: the job already started is returned, the file is not sent again and nothing is billed twice. Use a new code for each new job. After a restart of this server, or 24 hours after the first call, the same code is refused (idempotency_conflict) instead of returning the job: no second job is started.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the critical trait: the call returns at once without waiting for the job to finish, and it names the two return fields. It omits behavioral context such as the job being billed (only implied via the schema's price references) or failure modes beyond those the schema lists.

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

Conciseness5/5

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

Two sentences, zero waste, with the async-return behavior and the returned fields front-loaded. The follow-up routing is packed into a single parenthetical rather than a paragraph.

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 tool with a nested options object and no output schema, the description covers what an agent most needs: that it is asynchronous and what comes back. The remaining detail (limits, costs, per-model refusals) lives in the rich schema, though a note about billing or job lifetime would have closed the gap fully.

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 100%, so the schema already explains model, stems, options, file_path, the time selection, and the idempotency key in detail. The description adds nothing about parameters itself, so the baseline of 3 applies.

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 ('Uploads a local audio or video file ... starts a MIDI conversion job') and frames the tool's role in a wider workflow. An agent can tell this is the entry point that produces a jobId, distinct from the status and download siblings it names.

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 clear routing: after this call, pass the jobId to musictomidi_get_job, then to musictomidi_download_result. It does not cover when to prefer a different conversion entry point (e.g., musictomidi_separate_stems) or when not to use it, so it stops short of full alternative guidance.

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