Skip to main content
Glama

midi_file_edit

Edit standalone .mid files by applying composable operations to tempo, time signatures, tracks, notes, velocity, CC, transposition, quantization, and timing.

Instructions

Edit a standalone .mid file with composable operations: set_tempo, set_time_sig, rename_track, add_track, remove_track, add_notes, replace_notes, delete_notes, transpose, scale_snap, quantize, humanize, scale_velocity, shift_time, scale_speed, add_cc, add_cc_ramp, delete_cc.

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": {
      "input_path": "<input_path>",
      "operations": "<operations>"
    },
    "name": "midi_file_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_pathYes
operationsYes
output_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 behavior burden; it says 'Edit' but not whether operations mutate input in place, write to output_path, run sequentially, or are atomic. It also omits failure handling and reversibility, leaving the mutation model opaque.

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 purpose is front-loaded before the operation list, and the enumeration is compact. The long comma list is justified as capability discovery, though grouping the operations would improve scanability.

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?

For a complex tool with 18 operation types, a free-form operations array, and no annotations or schema descriptions, the definition omits too much about operation shape, sequencing, and output-path semantics. The output schema may cover return values, but callers still lack guidance for constructing valid operations.

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 0% for three parameters, and the description explains neither input_path nor output_path behavior, such as in-place editing versus separate output. The operation name list adds useful vocabulary for the operations array, but not the required fields or structure of each operation object.

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?

Opens with a specific verb ('Edit') and resource ('standalone .mid file'), then enumerates the supported operations. The word 'standalone' implicitly separates it from REAPER project MIDI tools, though it does not explicitly name alternatives.

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 guidance beyond the implied 'edit a standalone .mid file' scope, and no exclusions or comparison to midi_file_create, midi_file_inspect, or reaper_midi_edit_notes. An agent must infer the boundary from the file-type adjective alone.

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