Skip to main content
Glama

reaper_create_midi_item

Creates a MIDI item on a REAPER track with a specified start and length, optionally adding MIDI notes timed in beats from the item start.

Instructions

Create a MIDI item, optionally filled with notes. 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>",
      "start": "<start>",
      "length": "<length>"
    },
    "name": "reaper_create_midi_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
unitNo'seconds', 'beats' (quarter notes from project start) or 'bars' (1-based, fractional allowed)bars
notesNo
startYes
trackYesTrack number as shown in REAPER (1-based, 0 = master) or exact track name
lengthYes

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 this is a non-read-only, non-destructive, non-idempotent, closed-world write, so the safety profile is largely covered. The description adds a useful clarification about the time base for note positions (beats relative to item start, not the project timeline), but it says nothing about what happens on an invalid track, what the item's identity is afterwards, or that repeated calls create duplicates (non-idempotent).

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, front-loaded sentences with no filler; the core action comes first and the qualifier second. The second sentence largely restates the note 'start' schema description, so it is slightly redundant rather than costly.

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

Completeness5/5

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

For a mutation tool with no output schema and 33% schema coverage, the definition leaves the agent unable to predict the return value (presumably an item identifier needed by follow-up calls like reaper_get_midi_notes) and silent on prerequisites and failure modes. Given the tool's moderate complexity and three undocumented parameters, the description should carry more of this burden.

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 coverage is only 33%: 'name', item 'start', and 'length' have no schema descriptions, and the description does not explain them either. The one genuinely helpful addition is resolving the unit ambiguity — item start/length follow the 'unit' parameter while note start/length are always beats relative to item start — but that only partly compensates for three undocumented top-level parameters.

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 and resource ('Create a MIDI item') plus the optional fill behavior ('optionally filled with notes'), so an agent knows exactly what is produced. It does not, however, differentiate itself from sibling tools that also add MIDI content (reaper_add_midi_notes) or place media (reaper_insert_media), leaving the agent to guess which is the right entry point.

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 guidance at all: no mention of prerequisites such as the target track needing to exist, no statement about whether this is the correct tool for adding notes to an existing item versus creating a new one, and no routing to reaper_add_midi_notes as the alternative. The only implied usage is 'you want a new MIDI item'.

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