Skip to main content
Glama

midi_file_inspect

Inspect standalone MIDI (.mid) files on disk to examine tracks and events, even when REAPER is closed.

Instructions

Inspect a standalone Standard MIDI File (.mid) on disk (works even when REAPER is closed).

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": {
      "path": "<path>"
    },
    "name": "midi_file_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
track_indexNo
include_eventsNo
max_events_per_trackNo

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, the description carries the full burden, and it does disclose one meaningful trait: the tool operates on disk files independent of a running REAPER instance, implying it is a non-mutating read. It says nothing about whether the file is modified, what happens on malformed MIDI, or how large files are truncated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the most decision-relevant constraint (works without REAPER) is placed where it will be read first.

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?

An output schema exists, so return values need no explanation, but for a four-parameter tool with zero schema documentation the description leaves the parameter surface entirely unexplained. It should at minimum say what happens when track_index is omitted and what include_events/max_events_per_track control.

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 four parameters. The description only implies that 'path' targets a .mid file on disk; it never explains 'track_index' (all tracks vs. one), 'include_events', or 'max_events_per_track' (default 400), which materially change the result.

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 ('Inspect') and resource ('standalone Standard MIDI File (.mid) on disk'), and the parenthetical 'works even when REAPER is closed' implicitly separates it from the reaper_midi_* / reaper_import_midi_file family. It stops short of naming a sibling, but the scope is unambiguous.

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?

The parenthetical gives a usable when-to-use cue: reach for this when no REAPER session is available or the file is standalone on disk. There are no explicit exclusions or named alternatives (e.g., 'use reaper_midi_read for items inside an open project'), so the agent must infer the boundary.

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