Skip to main content
Glama

reaper_midi_insert_notes

Insert or replace MIDI notes and chords in an existing REAPER MIDI take using pitch values, note names, or chord names, with optional clearing of existing notes.

Instructions

Insert (or replace) MIDI notes/chords in an existing REAPER MIDI take. Supports 'pitch' (0-127), 'note' ('C4', 'Bb3', 'kick'), or 'chord' ('Cmaj7', 'Dm9').

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": {
      "notes": "<notes>"
    },
    "name": "reaper_midi_insert_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesYes
trackNo
item_guidNo
item_indexNo
clear_existingNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Insert (or replace)' gestures at overwrite behavior but does not say what is overwritten by default, how clear_existing interacts with that, whether same-position notes are merged or duplicated, or whether the operation is undoable.

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?

Two tight sentences with the core action front-loaded and no filler. The second sentence is slightly cryptic about what the quoted tokens actually are (fields of each note object), but it wastes no words.

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

Completeness2/5

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

A 5-parameter mutation tool with 0% schema coverage and no annotations needs more than this. The description never explains how to target the destination take (track vs item_guid vs item_index) or what clear_existing does; only the notes payload is covered. The presence of an output schema excuses it from describing return values, but not from covering targeting semantics.

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; it does document the shape of the required 'notes' objects ('pitch' 0-127, 'note' such as 'C4'/'Bb3'/'kick', or 'chord' such as 'Cmaj7'), which is genuinely useful beyond the bare array-of-objects schema. But the four targeting/behavior parameters (track, item_guid, item_index, clear_existing) receive no mention at all, including the behaviorally important clear_existing.

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?

States a specific verb+resource ('Insert... MIDI notes/chords') and a scope ('in an existing REAPER MIDI take'), which is clearly distinguishable from delete_notes and read. However the parenthetical 'or replace' blurs the boundary with reaper_midi_edit_notes, so the agent cannot fully separate the two from the description alone.

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?

No when-to-use / when-not-to-use guidance and no named alternative. The only implied condition is that a MIDI take must already exist, and the overlap between 'replace' and the sibling reaper_midi_edit_notes is left unresolved for the agent.

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