Skip to main content
Glama

midi_file_create

Create multi-track Standard MIDI Files (.mid) on disk from note names, chords, drum names, and CCs for DAW import or playback.

Instructions

Create a multi-track Standard MIDI File (.mid) on disk from note names, chords, drum names, and CCs.

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": {
      "output_path": "<output_path>",
      "tracks": "<tracks>"
    },
    "name": "midi_file_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bpmNo
tracksYes
output_pathYes
time_sig_numNo
ticks_per_beatNo
time_sig_denomNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full burden. It says the file is created, but does not say whether an existing file is overwritten, whether parent directories are created, whether required permissions matter, or whether the write is atomic. That it accepts note names, chords, drum names and CCs is useful input context, but the mutation semantics remain undisclosed.

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 resource and output location lead the sentence. It is not padded, though it is arguably under-specified for a six-parameter tool.

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?

An output schema exists, so return values need not be described. But with no annotations, 0% parameter coverage, and an opaque nested tracks array, the description leaves the single most important thing - the structure of each track object - unexplained, which is a real gap for a file-writing tool.

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

Parameters2/5

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

Schema description coverage is 0% across six parameters, including a nested 'tracks' array with additionalProperties=true, so the structured fields explain almost nothing. The description only implies that tracks contain note names, chords, drum names and CCs; it does not explain the track object shape, whether note names are resolved against a fixed mapping, or what bpm, time_sig_num, time_sig_denom and ticks_per_beat control.

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 gives a specific verb and resource: create a multi-track Standard MIDI File (.mid) on disk, and hints at the musical inputs it accepts. However, it does not differentiate itself from siblings such as midi_file_edit or reaper_export_midi_file, so an agent has to infer that this tool builds a file directly from note/chord/drum/CC data rather than working with a REAPER project.

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?

Nothing tells the agent when to choose this tool over midi_file_edit, midi_file_inspect, or reaper_export_midi_file. The phrase 'on disk' implies the output is a standalone .mid rather than a REAPER item, but this is never stated and there are no prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.