Analyze MIDI Timing, Key & Structure
analyze_midiInspect a standard MIDI file (base64): estimate tempo (BPM), meter (3/4, 4/4, 6/8), pickup offset, key signature, bar count, pitch range, pitch-class distribution, and track metadata.
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": {
"midi_base64": "<midi_base64>"
},
"name": "analyze_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| midi_base64 | Yes | Base64-encoded standard MIDI file (.mid / .midi, max 256 KB decoded). | |
| include_notes | No | Include parsed note events (capped at 500 notes). |