Skip to main content
Glama

reaper_create_midi_item

Create a MIDI item on a REAPER track and optionally add notes, chords, or CC events to build or edit a MIDI arrangement.

Instructions

Create a new MIDI item on a track and optionally populate it with notes, chords, and CC events. Each note supports: pitch (int) OR note ('C4', 'F#3', 'kick') OR chord ('Cmaj7', 'Am9', optional octave/inversion/strum_beats), start_beat_rel (beats from item start) or start_beats (project beat), duration_beats, velocity (1-127), channel (0-15).

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": {
      "track": "<track>"
    },
    "name": "reaper_create_midi_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNo
loopNo
nameNo
colorNo
notesNo
trackYes
start_beatsNo
length_beatsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses that item creation and note population are combined and details note-level semantics, but says nothing about side effects (selection state, overwriting, item position behavior), whether 'track' resolves by name or index, what 'loop' does, or failure modes. Meaningful but incomplete for a mutation tool with zero annotation coverage.

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 core capability is front-loaded in the first sentence, and the second sentence efficiently enumerates note-field semantics rather than padding. It is dense and slightly run-on but every clause about note syntax carries real information.

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 explained. But for an 8-parameter mutation tool with 0% schema description coverage, the description only fully covers the notes payload; the meaning and format of track, cc, loop, length_beats, and color are left to 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 0%, so the description must compensate, and it does so well for the nested note fields (pitch vs note name vs chord, start_beat_rel vs start_beats, velocity range 1-127, channel 0-15). However, six of the eight top-level parameters — name, color, loop, start_beats, length_beats, and cc (whose object structure is entirely undocumented) — receive no explanation beyond their names.

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 opens with a specific verb and resource: 'Create a new MIDI item on a track and optionally populate it with notes, chords, and CC events.' That is unambiguous about what the tool produces and its two-phase nature (create + populate). It does not, however, distinguish itself from siblings such as reaper_midi_insert_notes or midi_file_create, so it stops short of the top mark.

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: 'Create a new MIDI item' suggests this is for new items rather than editing existing ones, which implicitly contrasts with reaper_midi_insert_notes / reaper_midi_edit_notes. There is no explicit when-to-use, no stated prerequisites (e.g., must the track already exist), and no named alternative for the add-notes-to-existing-item case.

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