Skip to main content
Glama

export_regions

Export each project region as its own named audio file for game audio or sound effects in one pass, trimming silence, setting peak level, and crossfading loops.

Instructions

Exports each region of the project as its own file named after the region (for sound effects and their variations: shot_01, shot_02 ...), in one render pass. One-shots: mono unless listed in stereo, DC removed, the silence before the sound cut so it starts within a millisecond of the file start, trailing silence dropped, peak set to peak_db, and a warning when the region cuts the sound off before it dies away. Loops: seamless (crossfaded seam, no fade at either end), their length reported. 16-bit files are dithered; 24-bit aren't. Put each sound in its own region with a little room after it (for its tail), then call this once.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loopsNoRegions that loop (by name or pattern, e.g. 'crowd_bed*', 'skate_stride'): made seamless by crossfading what follows the region into its start, so leave the sound running a little past the region's end
folderYesWhere the files go, e.g. a game's assets/audio/sfx folder
stereoNoRegions to keep stereo, by name or pattern ('crowd_*', 'organ_*', '*_room'); everything else is mono
peak_dbNoPeak level for one-shots (loops keep their level)
regionsNoRegion names to export; default: every region
bit_depthNo24 for game audio
overwriteNo
sample_rateNoe.g. 44100 or 48000
loop_crossfade_sNoLength of the loop seam's crossfade

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.19.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it describes one-shot processing (mono unless listed in stereo, DC removed, leading/trailing silence trimmed, peak set), loop handling (seamless crossfade, length reported), dithering by bit depth, and even a warning when a region clips the sound's tail. It omits overwrite behavior, permission requirements, and error/return handling.

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 core behavior (region-per-file export in one pass) is front-loaded, and the remaining sentences are dense with specifics rather than filler. It is long, but each clause conveys distinct processing behavior, so little reads as waste.

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 9-parameter mutation tool with no annotations and no output schema, the description is substantially complete on processing behavior and workflow. Remaining gaps are overwrite semantics, return value, and any permission/cost considerations, which are minor relative to what is covered.

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 high at 89%, so the baseline is 3. The description adds interpretation for peak_db, stereo, and loops (explaining how they change output), but parameters like overwrite, sample_rate, folder, and bit_depth are left entirely to the schema.

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: exports each region of the project as its own file named after the region, in one render pass. This clearly distinguishes it from a single-file or stem export. It does not, however, explicitly distinguish itself from siblings like export_mix or export_stems, leaving the agent to infer the difference.

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?

The closing instruction ("Put each sound in its own region with a little room after it, then call this once") gives useful preparation context and implies the when. But it never names or contrasts the alternative export tools (export_mix, export_stems), so the choice among them is left implicit.

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

Deploy Server

Other Tools