Skip to main content
Glama

musictomidi_separate_stems

Starts a stem separation job from a local audio or video file and returns a job ID and status immediately for later progress checks and result downloads.

Instructions

Uploads a local audio or video file to MusicToMIDI and starts a stem separation job, whose result is one audio file per stem. 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_separate_stems"
  }
}

Input Schema

NameRequiredDescriptionDefault
mp3Notrue: the same as adding mp3 to formats. Default: false.
modelYesAlways separation. Price: the separation entry of musictomidi_get_prices.
stemsNoStems to return. Not sent: vocals, drums, bass, guitar, piano and other. instrumental: the song without the voice. backing: the song without the other stems of the list (leave at least one of vocals, drums, bass, guitar, piano, other out of the list).
formatsNoAudio formats of each stem: flac (returned in url) and/or mp3 at 320 kbit/s (returned in mp3Url). ["mp3"] alone returns no FLAC. Default: ["flac"].
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.
startSecondsNoStart of the audio selection, in seconds from the start of the file. Sent with endSeconds: only the selection is separated and paid; the stems still cover the whole file, with silence outside the selection.
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.3/5.0
Behavior4/5

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

With no annotations at all, the description carries the burden and does deliver the critical non-obvious trait: the call returns immediately without waiting for job completion, and it returns jobId plus status rather than results. It also discloses that the file is uploaded from local disk. It does not mention auth requirements, rate limits, or what a failure mid-job looks like, keeping it below a 5.

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, front-loaded with the action and immediately followed by the async contract and the exact follow-up tools. Every clause (immediate return, jobId, status, downstream tools) earns its place with no padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description names the return fields (jobId, status) and the two-step retrieval path, so an agent knows what comes back. Combined with a fully documented 8-parameter schema, nothing material for correct invocation is missing.

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 every parameter including stems, formats, startSeconds/endSeconds and Idempotency-Key is already documented in the schema. The description adds no parameter-level meaning beyond the schema, which is the correct baseline of 3 when the schema does the heavy lifting.

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/video file and starts a stem separation job, with the output shape named explicitly ('one audio file per stem'). That output description alone separates it from a MIDI-conversion sibling, and the async job model is stated up front.

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 explicit routing: hand the returned jobId to musictomidi_get_job for status, then musictomidi_download_result for the files, and warns that no waiting happens here. It stops short of stating when NOT to use it (e.g. versus a MIDI conversion tool) or prerequisites such as authentication, so it is clear context without full exclusions.

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