Skip to main content
Glama

cubase_midi_import

Destructive

Creates MIDI tracks with notes in a Cubase project by importing supplied note data or an existing .mid file.

Instructions

Add MIDI data to the managed project as new tracks: this is how MIDI tracks with notes are created. Supply either song (tracks with notes in quarter-note beats: pitch 0-127, start, duration, velocity; optional channel 0-15, GM program, controller and pitch-bend events; channel 9 is the GM drum channel) or midiPath (an existing local .mid file). The data is written as a Standard MIDI File and imported once through the MIDI file import of the host, following the Cubase MIDI import preferences of this installation; here every file track becomes one MIDI track routed to a HALion Sonic instance that the import creates, so put a whole arrangement into one call where possible. Tempo and time-signature events of the file are not applied to an existing project: use cubase_tempo_set and cubase_transport_set. The result lists the channels that the import added; read the notes back with cubase_midi_read. Never repeated automatically.

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": {
      "session": "<session>",
      "confirmImport": "<confirmImport>"
    },
    "name": "cubase_midi_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
songNo
sessionYes
midiPathNo
confirmImportYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Substantially exceeds the annotations: it discloses that the data is written to a Standard MIDI File and imported once through the host import, that host import preferences govern the result, that each file track becomes a MIDI track routed to an auto-created HALion Sonic instance, and that tempo/time-signature events are dropped. It never explains the required confirmImport flag or what existing session state the destructive write touches, leaving some of the destructiveHint unexplained.

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?

Long but dense and front-loaded: creation semantics first, then input choices, then host behavior, then follow-up tools. Some numeric ranges (pitch 0-127, channel 0-15) duplicate the schema, and 'Never repeated automatically' is terse phrasing for non-idempotency, but nothing is filler.

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

Completeness4/5

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

For a nested, side-effecting import tool it covers the important behavior: one-shot import, host preference dependence, the created HALion Sonic routing, the tempo caveat, and the channel list returned. The gaps are the unexplained confirmImport gate and session semantics rather than any missing return-value or workflow information.

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?

With 0% schema description coverage the description must do the work, and it does a good job on song (pitch range, start/duration/velocity, optional channel, GM program, control-change and pitch-bend events, channel 9 as drums) and on midiPath as a local .mid file. However, it says nothing about the required session parameter or the required confirmImport boolean, which are the two required arguments.

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?

Opens with a specific verb and resource ('Add MIDI data ... as new tracks') and states that this is the only way MIDI tracks with notes get created, which separates it from cubase_midi_read and cubase_audio_import. An agent can decide applicability without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear either/or on inputs ('Supply either song ... or midiPath'), advises batching a whole arrangement into one call, redirects tempo and time-signature handling to cubase_tempo_set and cubase_transport_set, and names cubase_midi_read for verification. When-to-use and alternatives are both explicit.

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