Skip to main content
Glama

reaper_add_midi_notes

Add MIDI notes to an existing REAPER MIDI item with beat-based start times, lengths, pitches, velocities and channels.

Instructions

Add notes to an existing MIDI item. Note times are in beats relative to the item start.

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>",
      "item": "<item>",
      "notes": "<notes>"
    },
    "name": "reaper_add_midi_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes0-based item index on the track, from reaper_list_items
notesYes
trackYesTrack number as shown in REAPER (1-based, 0 = master) or exact track name

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?

Annotations already declare readOnlyHint=false, destructiveHint=false and, importantly, idempotentHint=false, so the agent knows this mutates state. The description adds the time-base convention for note positions, which is real added context, but it never states the key behavioral consequence of non-idempotency — that repeated calls append duplicate notes — nor what happens on overlap with existing notes or out-of-range items.

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 short sentences with the core action front-loaded and the timing convention second. Nothing is wasted, though the second sentence partly duplicates the schema and could have carried more distinctive information instead.

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?

With only 3 parameters, no output schema, and a straightforward mutation, the description covers the essentials of what the tool does. It is still thin on failure modes, return value (does it report added-note count or indices?), and the append-vs-replace semantics, which matter for a non-idempotent write.

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 coverage is 67% and the nested note object is already well documented (pitch, start, length, velocity, channel defaults and ranges). The description's beat-based timing note largely restates the schema's "Start in beats (quarter notes) from the item start", so it adds little beyond the structured fields, though it usefully establishes the unit for all note times at once.

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+resource ("Add notes to an existing MIDI item") that an agent can immediately separate from sibling reads/clears like reaper_get_midi_notes and reaper_clear_midi_notes. It stops short of explicitly naming an alternative, but the add/read/clear contrast is inherent in the wording.

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?

There is no when-to-use or when-not-to-use guidance, and no stated prerequisite that the item must already exist (presumably created via reaper_create_midi_item). The phrase "existing MIDI item" hints at a precondition but never tells the agent what to do if the item index is invalid or which tool to call first.

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