Skip to main content
Glama

export_midi

Writes MIDI tracks to a standard .mid file for saving or sharing compositions, and runs only when the user requests an export.

Instructions

Write the MIDI tracks to a standard .mid file. ONLY when the user asks.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
tracksNo
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It reveals only the output format; it does not say whether an existing file at path is overwritten, whether directories are created, what happens if tracks is omitted, or what the call returns.

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?

Two short sentences with the action first and the usage constraint second; nothing redundant. It is terse to the point of under-specification, but not padded.

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 3-parameter file-writing tool with no annotations and no output schema, the definition leaves too much open: overwrite behavior, the purpose of project, and default track selection are all unexplained.

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%, so all three parameters are undocumented in structured data. The description implies path is the target file and tracks selects which MIDI tracks to write, but the project parameter is never addressed and no format expectations for path are given.

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: writing MIDI tracks out to a standard .mid file. The '.mid' format detail helps separate it from export_audio and export_stems, though it never names an alternative explicitly.

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?

'ONLY when the user asks' is a genuine gating condition that discourages proactive invocation, which is useful. However, it gives no criteria for choosing between this and sibling exporters, and 'when the user asks' is left unqualified.

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