Skip to main content
Glama

analyze_label_sounds

Automatically label sound regions in an audio file by detecting silence gaps. Set thresholds and offsets to segment long recordings, or label the silences instead for trimming and cleanup.

Instructions

Automatically label regions of sound separated by silence.

A good starting point for segmenting a long recording: label every passage of sound, or with label_type="between" label the silences instead so they can be trimmed with label_delete_regions.

measurement, label_type, pre_offset, post_offset and label_text are new and not yet independently live-tested against a running Audacity — verified against the scripting reference and unit tests with mocked responses only. threshold_db/min_silence_duration/min_sound_duration predate this and are unaffected.

Args: threshold_db: Volume threshold to distinguish sound from silence (dB). Default: -30 min_silence_duration: Minimum duration of silence between sounds (seconds). Default: 0.5 min_sound_duration: Minimum duration of a sound region (seconds). Default: 0.1 measurement: How level is measured — peak, avg or rms. Default: peak label_type: What to label — before, after, around or between the sounds. Default: before pre_offset: Seconds to extend each label before the sound starts. Default: 0 post_offset: Seconds to extend each label after the sound ends. Default: 0 label_text: Text for each label. Default: Audacity's own default

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
label_textNo
label_typeNobefore
pre_offsetNo
measurementNopeak
post_offsetNo
threshold_dbNo
min_sound_durationNo
min_silence_durationNo
Behavior5/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 it delivers remarkably thorough disclosure. It explicitly warns that measurement, label_type, pre_offset, post_offset, and label_text are 'not yet independently live-tested against a running Audacity — verified against the scripting reference and unit tests with mocked responses only.' This is excellent transparency about tool reliability. It also distinguishes which parameters are trusted (threshold_db/min_silence_duration/min_sound_duration) from those that aren't.

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-structured with a clear opening sentence, a practical usage paragraph, a crucial caveat about untested parameters, and a clean Args section. It's front-loaded with the purpose. The main deduction is that the parameter list duplicates the schema defaults verbatim, adding some redundancy — though the added semantics justify most of it.

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?

For a tool with 8 parameters, 0% schema coverage, no outputs schema, and no annotations, this is remarkable. It explains what the tool does, provides a concrete use case, warns about untested functionality, and documents every parameter. The only missing element is return-value behavior, but with no output schema and the core purpose being a labeling side-effect, this is acceptable.

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?

With 0% schema description coverage and no enums, the description compensates heavily. It provides one-line explanations for all 8 parameters, including units (dB, seconds), valid values for measurement (peak, avg, rms), and semantic detail for label_type (before, after, around, between). The only gap: enum values are listed but not formally constrained in the schema, and no guidance on interaction between params. Still, this is strong compensation.

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 clearly states the tool 'Automatically label regions of sound separated by silence' and mentions use of label_type='between' for labeling silences. It has a specific verb+resource (label sound regions) and distinguishes itself from siblings by focusing on automated sound/silence detection, differentiating it from manual label tools like label_add or label_regular_intervals. It does not explicitly name a sibling alternative, so not a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly frames this as 'A good starting point for segmenting a long recording' and explains a specific workflow: use label_type='between' to label silences 'so they can be trimmed with label_delete_regions.' This provides clear usage context and a concrete workflow suggestion. However, it doesn't explicitly state when NOT to use it versus alternatives like analyze_beat_finder or truncate_silence, so a 4 rather than 5.

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