Skip to main content
Glama

TuneWing MIDI & Sheet Music Tools

Analyze MIDI Timing, Key & Structure

analyze_midi
Read-onlyIdempotent

Inspect 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

NameRequiredDescriptionDefault
midi_base64YesBase64-encoded standard MIDI file (.mid / .midi, max 256 KB decoded).
include_notesNoInclude parsed note events (capped at 500 notes).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without help from the description. The description adds the analytical scope (which properties are estimated) but nothing about accuracy caveats, failure modes for malformed MIDI, or cost of the 500-note cap. It neither contradicts nor substantially extends the annotations.

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 front-loaded sentence with no filler; every enumerated item corresponds to a return value that matters because no output schema exists. The dense comma list is slightly hard to scan but is not padded or redundant.

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 no output schema, the description correctly takes on the burden of listing what is returned, which it does comprehensively. What remains thin is the operational side: no statement of behavior on malformed or non-standard MIDI, and no hint that tempo/key are estimates rather than ground truth beyond the word 'estimate'.

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%: the schema already documents the base64 format, the 256 KB decoded limit, and the 500-note cap for include_notes. The description repeats the base64 encoding but adds no semantics about what include_notes actually enables or when to set it. Baseline 3 is correct when the schema does all the parameter work.

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 uses a specific verb ('Inspect') with a precisely scoped resource ('a standard MIDI file (base64)') and enumerates the analysis outputs (tempo, meter, key, bar count, pitch range, pitch-class distribution, track metadata). This makes it clearly distinct in intent from transform_midi or midi_to_notation, though it never names those siblings explicitly.

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?

Usage is only implied by the verb 'Inspect' and the read-only analysis framing; there is no explicit statement of when to pick this over transform_midi or midi_to_notation, and no prerequisites are stated. An agent can infer this is the read-only analysis path, but must reason it out rather than being told.

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