Skip to main content
Glama

Select

set_selection

Select an audio range by start/end seconds, exact sample frames, or the whole file to define the bounds for subsequent range edits.

Instructions

Select using start/end in seconds, start_frame/end_frame for exact sample frames, or all for the whole file. Use only one form. The end is exclusive; leaving it out places a caret. Frame coordinates use the document's sample rate, one frame across all channels. The reply reports the actual frame bounds. Range edits act on this selection.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoselect the whole file instead
endNoseconds; leave out for a caret at start
startNoseconds from the start
end_frameNoexclusive end frame; leave out for a caret at start_frame
start_frameNozero-based sample frame at the document rate; use instead of seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Given annotations only declare safety hints, the description carries real behavioral load: end is exclusive, omitting it yields a caret, frame coordinates follow the document sample rate and span all channels, the reply reports the actual frame bounds, and subsequent range edits operate on the resulting selection. That covers side effects, edge cases, and return content for a tool with no output schema.

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?

Five short sentences, front-loaded with the three input forms, then semantics, then response behavior. No filler or restated title, and each sentence contributes a distinct constraint.

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 five-parameter, zero-required tool with no output schema, the description covers form selection, units, exclusivity, the caret edge case, and what the reply contains. Nothing an agent needs in order to call it correctly is missing.

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 coverage is already 100%, so the baseline is 3; the description still adds value by stating the parameters are mutually exclusive and that frame units are document-scoped and channel-independent. Some of this (exclusive end, caret fallback) restates the schema descriptions, keeping it below a 5.

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?

States a specific verb and resource ('Select') and immediately enumerates the three mutually exclusive forms (seconds, frames, whole file), plus the caret case. 'Range edits act on this selection' situates the tool in the editing workflow, so an agent can distinguish it from library-oriented selection siblings.

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?

'Use only one form' is an explicit exclusion rule that prevents parameter combinations, and each form is paired with the case it serves (exact frames vs seconds, `all` for the whole file). It stops short of naming tool-level alternatives such as library_select, so it is clear context rather than full when/when-not routing.

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