Skip to main content
Glama

label_delete

Deletes a single label from an Audacity project without altering any audio. Specify the label index from label_list to remove its marker while preserving all underlying sound and timing.

Instructions

Delete a single label without touching the audio.

Get the index from label_list. Audacity has no scripting command for deleting one label, so this selects the label's own span on its own label track and split-deletes it — audio tracks are never in the selection, and nothing downstream shifts in time.

Other labels on the same track that sit entirely inside the deleted label's span would be removed as collateral, so they are re-added afterwards. A label that only partially overlaps the span may be trimmed to the boundary; check label_list afterwards if labels on that track overlap each other.

To delete a label and the audio under it, use label_delete_audio_at.

Args: index: Flat label index from label_list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes
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 of behavioral disclosure, and it excels: it explains the implementation mechanism (selecting the label's span and split-deleting), the side effects (collateral destruction of contained labels that get re-added, partial overlaps trimmed), and reassurances (audio tracks never in selection, nothing shifts in time). This is unusually rich behavioral transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the one-line purpose, then organized into clear paragraphs covering mechanism, edge cases, and alternatives. Every sentence earns its place, and the Args section cleanly documents the single parameter. No waste; well-structured for an agent to parse.

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?

Despite having no output schema or annotations, the description fully addresses operation semantics, edge cases (collateral deletion, partial overlap trimming), the workaround mechanism (no native Audacity command), and the alternative for audio deletion. For a single-parameter tool in a large sibling set, this is complete and self-sufficient.

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% (the schema only says 'index' is an integer), so the description must compensate. It explains the index as a 'Flat label index from label_list,' which adds meaning beyond the bare schema. It could be slightly more detailed (e.g., whether it's zero-based), but the reference to label_list provides enough semantic anchor. Given 1 param at 0% coverage, this is strong compensation.

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 'Delete a single label without touching the audio' — a specific verb+resource+scope. It distinguishes from sibling tool label_delete_audio_at by explicitly noting the difference (delete label only, not the audio under it). The mention of no audio tracks in selection further clarifies scope.

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 explicitly tells the agent where to get the index ('Get the index from label_list') and names the alternative tool for deleting label+audio (label_delete_audio_at). It also gives detailed exclusion guidance around collateral effects on overlapping labels, which is important for deciding among label siblings.

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