Skip to main content
Glama

export_audio

Writes a song or selected bar range to an audio file in WAV, FLAC, MP3, OGG, AIFF, or M4A format when the user requests an export.

Instructions

Write the song to an audio file (.wav .flac .mp3 .ogg .aiff .m4a). ONLY when the user asks. start_bar/end_bar export a part.

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_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
end_barNo
projectNo
qualityNo
bit_depthNo
start_barNo
sample_rateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/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 behavioral burden. It states the operation writes an audio file and that it should only run on explicit user request, which is useful, but it says nothing about overwriting existing files, path requirements, whether directories are created, or how long a render takes.

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, front-loaded with the core action and formats; the caveat follows immediately. The second line is slightly telegraphic ("start_bar/end_bar export a part") but nothing is wasted.

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 7-parameter file-writing tool with no annotations, no output schema, and no schema descriptions, the definition covers only a fraction of what an agent needs. Overwrite semantics, format/quality interaction, and the roles of project, bit_depth, and sample_rate are all absent.

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 coverage is 0% across 7 parameters, so the description must compensate; it explains start_bar/end_bar as defining a partial export and implies path receives the audio file. It adds nothing about project, quality, bit_depth, or sample_rate, leaving four parameters completely undocumented in both schema and description.

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?

The description opens with a concrete verb and resource: "Write the song to an audio file," and enumerates the supported formats, which makes clear this is a render/export operation. It is distinguishable from export_midi or export_stems by the audio-format list, though no sibling is named to make the contrast explicit.

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 real gating instruction, and "start_bar/end_bar export a part" clarifies partial-export usage. However, no alternatives (export_midi, export_stems, batch) are named, so the agent must infer which export tool to pick in ambiguous cases.

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