Skip to main content
Glama

TuneWing MIDI & Sheet Music Tools

Clean, Quantize, Transpose & Normalize MIDI

transform_midi
Read-onlyIdempotent

Apply instrument cleanup presets (piano, guitar, monophonic), beat-grid quantization, chromatic transposition, tempo scaling, and canonical SMF normalization to a base64 MIDI file.

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": "transform_midi"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNoScale timing proportionally to a new tempo in BPM.
nameNoOptional new track/score title.
midi_base64YesBase64-encoded standard MIDI file (.mid / .midi, max 256 KB decoded).
cleanup_presetNoOptional artifact/overtone cleanup profile before quantization.none
quantize_grid_beatsNoSnap note starts and durations to beat grid (e.g. 0.25 = 16th note, 0.5 = 8th note, 1 = quarter).
transpose_semitonesNoShift all pitches by signed semitones (-36 to +36).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds one useful behavioral detail, that cleanup happens before quantization, plus that normalization is applied to canonical SMF, but it says nothing about what is returned for a transform tool with no output schema or about failure modes (invalid or oversized MIDI).

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?

It is a single front-loaded sentence with no filler, and the verb comes first. It is dense with parallel clauses, which is efficient but slightly packed compared with a short lead plus a bullet list of operations.

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

Completeness3/5

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

With six parameters, full schema coverage, and no output schema, the critical missing piece is the return value: an agent cannot tell from the description whether it receives a normalized base64 MIDI, a summary, or a diff. The input side is well covered, but the output side relies on inference.

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 bpm, quantize_grid_beats, and transpose_semitones is already documented with ranges and defaults. The description only mirrors those operations at a high level and adds no format details beyond what the schema provides, which is the expected baseline.

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?

The description gives a specific verb ('Apply') plus a fully enumerated set of operations (cleanup presets, quantization, transposition, tempo scaling, SMF normalization) on a named resource (base64 MIDI file). It is easy to distinguish from analyze_midi, midi_to_notation, and text_to_midi, which are read-only or generative rather than in-place transforms.

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?

The word 'Apply' implies a transform task, and listing the presets and grids hints at what the tool is for, but there is no explicit 'use this when…' guidance or exclusion against, say, analyze_midi for inspection or midi_to_notation for rendering. The ordering cue appears only in the schema ('cleanup … before quantization'), not in the description.

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