Skip to main content
Glama

import_midi

Imports a .mid file into a project as one track per instrument with General MIDI sounds, drums on channel 10, and optional tempo and time-signature adoption.

Instructions

Import a .mid file: one track per instrument (channel 10 = drums), built-in sounds chosen from the General MIDI program. adopt_tempo=true takes its BPM and time signature.

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": "import_midi"
  }
}

Input Schema

NameRequiredDescriptionDefault
barNo
pathYes
projectNo
adopt_tempoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses track-per-instrument mapping, channel 10 as drums, General MIDI sound selection, and adopt_tempo behavior, but it omits mutation side effects, overwrite behavior, and whether existing project content is affected.

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?

The description is compact and front-loaded. Every clause adds useful information about file type, track mapping, drums, General MIDI, and tempo adoption, with no filler.

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?

For a four-parameter import tool with no annotations and no output schema, the description covers the core transformation but leaves key operational details missing. The unexplained 'bar' and 'project' parameters, plus unstated mutation behavior, keep it from being complete.

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%, so the description must explain all four parameters. It clarifies path and adopt_tempo, but leaves 'bar' and 'project' completely unexplained, which is a significant gap for an import tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: import a .mid file. It also specifies the resulting track structure, drum channel behavior, and General MIDI sound selection, which clearly distinguishes it from generic audio import or MIDI conversion siblings.

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?

Usage is implied by 'Import a .mid file,' but there is no explicit guidance on when to choose this tool versus siblings like import_audio or audio_to_midi. No prerequisites or when-not-to-use conditions are stated.

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