Skip to main content
Glama

Export MIDI

export_midi
Read-onlyIdempotent

A link to the score as a MIDI file (one track per part) to listen to or rehearse with; optionally one part and transposed. Repeats are played once.

Input Schema

NameRequiredDescriptionDefault
keyNotarget key, e.g. 'G', 'Bb', 'F#m', 'E minor'
fileNocollection mode only: which MusicXML of `files`, e.g. '003.musicxml'
partNoonly this part: id (P2), name (Alto) or number (2)
save_toNolocal path to write the .mid to (stdio only)
semitonesNosemitones to move, e.g. -2 (a tone down), 5
recognition_idYesid returned by recognize_sheet_music, e.g. rec_…

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely useful behavioral detail beyond that: one track per part, optional single-part export, transposition, and the non-obvious rule that repeats are played only once.

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 compact sentence covering output format, optionality and the repeats rule, with the key facts front-loaded. Slightly noun-phrase phrasing ('A link to...') but no wasted sentences.

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?

With six well-documented parameters and an output schema, the description needn't explain return values, and it covers the salient behaviors (track layout, transposition, repeat handling). Only the relationship to sibling export tools is left unstated.

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 (key, part, semitones, save_to, file, recognition_id) is already documented in the schema. The description only alludes to part and transposition, adding no syntax or format detail beyond what the schema provides; baseline 3 applies.

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?

The description states a specific resource and output form: the score as a MIDI file, one track per part, with optional single-part and transposed variants. It is clear what the tool produces, though it never explicitly distinguishes itself from siblings like export_score or get_download_link.

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?

'to listen to or rehearse with' implies a use case (playback/practice rather than notation editing), but there is no explicit when-to-use or when-not-to-use guidance relative to siblings such as export_score or transpose_score, leaving the agent to infer selection.

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