Skip to main content
Glama
boraswim
by boraswim

import_midi

Destructive

Import a MIDI file to replace the open song, optionally setting pattern size or discarding unsaved changes; complex timing may not survive.

Instructions

Replaces the open song with one imported from a MIDI file. Bosca is a step sequencer, so complex timing may not survive.

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the .mid file.
pattern_sizeNoSteps per pattern. 0 or absent detects it from the file.
discard_changesNoMust be true to replace a song with unsaved changes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuinely new behavioral context — that Bosca is a step sequencer and complex MIDI timing may be lost on import — which is exactly the kind of expectation-setting annotations can't convey.

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?

Two tight sentences: the operation is front-loaded and the caveat follows immediately. Nothing is wasted and nothing is buried.

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 destructive, three-parameter mutation with no output schema, the description covers what the tool does and its main fidelity caveat, while the schema carries the parameter rules. It stops short of stating that unsaved changes will block the call unless discard_changes is set, but that is documented in the schema.

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?

Schema description coverage is 100%, with path, pattern_size (including the 0/absent auto-detect behavior) and discard_changes all documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 ('Replaces the open song with one imported from a MIDI file'), making clear this is an import-and-overwrite operation rather than a plain open. It implicitly distinguishes itself from open_song/create_song by noting replacement of the current song, though it never names those 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 'replaces the open song', but there is no explicit guidance on when to choose this over open_song or create_song, nor any mention of prerequisites such as the unsaved-changes guard. The agent must infer the context.

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