Skip to main content
Glama

TuneWing MIDI & Sheet Music Tools

Text Melody to MIDI

text_to_midi
Read-onlyIdempotent

Convert note names (C4 E4 G4), chord symbols (Cmaj7, Am7), Jianpu (1 2 3 5), durations (:2, /8, h, q), and ties (-) into a standard MIDI file (base64), plus optional ABC and MusicXML 4.0 notation.

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": {
      "melody": "<melody>"
    },
    "name": "text_to_midi"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNoTempo in beats per minute (20 to 400).
nameNoScore and MIDI track title.TuneWing Melody
melodyYesNote, chord, rest (R), or Jianpu sequence, e.g. 'C4 E4 G4 C5 | F4 A4 C5 F5 | G4h C4h'.
include_abcNoInclude generated ABC notation in the response.
include_musicxmlNoInclude generated MusicXML 4.0 XML in the response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the description is not burdened with safety disclosure. It adds useful context beyond annotations by specifying that the output is a base64-encoded standard MIDI file and that ABC and MusicXML 4.0 notation are optionally included.

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?

The definition is a single front-loaded sentence that immediately states the conversion and then lists supported inputs and outputs. It is dense but every clause earns its place by clarifying accepted notation or output format; splitting the sentence would slightly improve readability.

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?

For a 5-parameter conversion tool with full schema coverage and safety annotations, the description covers the essential input syntax and output modes. It does not describe error behavior or the precise response object shape, but with no output schema the mention of base64 MIDI plus optional ABC/MusicXML is sufficient for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful syntax detail for the central melody parameter: note names, chord symbols, Jianpu, duration tokens, and ties. It does not elaborate on bpm, name, or include_abc/include_musicxml, but those are fully documented in the schema itself.

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 ('Convert') and clearly identifies the resource ('note names, chord symbols, Jianpu... into a standard MIDI file'), making the tool's core function unambiguous. It does not explicitly name sibling tools or state how it differs from midi_to_notation and transform_midi, though the conversion direction is inherently distinguishable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states what the tool does but gives no when-to-use guidance, no exclusions, and no routing to alternatives such as midi_to_notation or transform_midi. An agent must infer that this is the right tool whenever text notation must become MIDI.

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