Skip to main content
Glama

reaper_export_midi_file

Exports selected MIDI tracks/items and the project tempo/time-signature map from live REAPER to a .mid file for use in other DAWs or MIDI software.

Instructions

Export MIDI tracks/items and project tempo/time-sig map from live REAPER to a .mid file on disk.

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>"
    },
    "name": "reaper_export_midi_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
tracksNo
output_pathYes
ticks_per_beatNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does establish that this writes a file to disk and that the tempo/time-sig map is included alongside tracks/items. It is silent on critical behavior for a file-writing tool: whether an existing file at output_path is overwritten, whether directories are created, and whether the export mutates or locks the live project in any way.

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; the source and destination are stated up front. It is slightly over-compressed in places ('tracks/items', 'tempo/time-sig'), but nothing is wasted.

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, and the exports' contents are stated. However, for an unannotated file-writing tool with 0% schema coverage, the definition should at minimum cover overwrite semantics and the meaning of the tracks filter; those gaps leave it only minimally sufficient.

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 3 parameters, so the description must compensate, and it largely does not. It hints at a track selection scope ('tracks/items') but never clarifies whether the tracks parameter accepts indices, names, or both, and ticks_per_beat – an export-format-critical setting defaulting to 480 – is not mentioned at all.

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 names a specific verb and resource ('Export MIDI tracks/items and project tempo/time-sig map') plus the source and destination ('from live REAPER to a .mid file on disk'). The phrase 'from live REAPER' implicitly distinguishes it from the snippet-oriented midi_file_create, though no sibling is named outright.

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 implied by 'from live REAPER to a .mid file on disk' – an agent can infer this is for saving the current project's MIDI out to a file. There is no explicit when-to-use, no when-not, and no pointer to midi_file_create versus this export path, so the routing decision is left to inference.

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