Skip to main content
Glama

label_export_audio_segments

Split a long audio recording into separate files by exporting each labeled segment as its own audio file, using label text for filenames and skipping zero-length point labels.

Instructions

Export the audio under each label as its own file.

Splits a long recording into per-segment audio files, named "01_Segment_Title.wav" and so on from the label text. ALWAYS tell the user which directory the files will be written to BEFORE calling this. Point labels (zero length) have no audio to export and are skipped. Existing files are never overwritten — they are skipped and reported. This can take a while for many or long segments.

Not yet independently live-tested against a running Audacity — verified against the scripting reference and unit tests with mocked responses only.

Args: directory: Absolute path to the output directory format: Audio format — wav, mp3, ogg, flac, aiff, mp4. Default: wav num_channels: 1 for mono, 2 for stereo. Default: 2

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNowav
directoryYes
num_channelsNo
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the file-naming convention, skip behavior for zero-length labels, no-overwrite policy, potential length of execution, and importantly the caveat that it is not yet independently live-tested against a running Audacity. This is thorough behavioral disclosure for a file-writing operation. It could note whether it mutates the project, but for an export operation this is largely sufficient.

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?

The description is well-organized with separate paragraphs for behavior notes and Args. The behavior paragraph is front-loaded with the core purpose. The caveat about not being live-tested is honest and valuable. Slightly verbose with the caveat sentence, but it earns its place given the trust implications.

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

Completeness5/5

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

This is a file-writing operation with no output schema and no annotations. The description comprehensively covers naming conventions, skip behavior, overwrite policy, runtime expectations, and reliability status. All three parameters are explained. There is minimal ambiguity remaining for an agent invoking this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 compensate fully. It does: explains directory (absolute path to output directory), format (enumeration of wav, mp3, ogg, flac, aiff, mp4 with default), and num_channels (meaning of 1 vs 2 with default). This adds real semantic value beyond the bare parameter names and default values in the schema.

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 clearly states the tool's action: 'Export the audio under each label as its own file' and 'Splits a long recording into per-segment audio files.' This distinguishes it from siblings like label_export_chapters (different output type) and label_export (single file export). Verb+resource+output format is specific and unambiguous.

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?

The description gives explicit operational guidance: ALWAYS tell the user which directory files will be written to BEFORE calling, explains that point labels are skipped, and notes that existing files are never overwritten. This is actionable context for when and how to invoke the tool, though it doesn't explicitly contrast with sibling export tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xDarkzx/Audacity-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server