Skip to main content
Glama

analyze_audio_clip

Read-only

Measure a clip's source file over a bounded window with optional waveform, spectrum, pitch, transients, and resonance analyses.

Instructions

Measure an exact Session or Arrangement audio clip's local source file over a bounded window. Loudness measures the source stream; channel selection applies to optional analyses. Source-only, not rendered clip or track audio.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesStable clip ID: track-N:clip-M from list_clips, or track-N:arrangement-clip-M from list_arrangement_clips for tools that support Arrangement clips.
trackIdYesStable track ID returned by list_tracks.
channelIndexNoZero-based source channel for waveform, spectrum, spectrogram and pitch; defaults to zero.
includePitchNoEstimate selected-channel monophonic pitch with overlapping 256-ms frames across the window; not pitch correction.
startSecondsNoSource window start.
targetMidiNoteNoMeasure monophonic cents deviation against this explicit MIDI note at A4=440 Hz; enables pitch analysis, not pitch correction.
durationSecondsNoSource window duration, defaults to 10 seconds.
includeSpectrumNoInclude one selected-channel 4096-sample spectral frame.
includeWaveformNoInclude up to 1024 contiguous selected-channel min/max/RMS waveform buckets at 48 kHz.
includeTransientsNoFind selected-channel source-audio onset candidates at 10-ms resolution; not Live warp/slice markers.
includeSpectrogramNoInclude up to 64 selected-channel spectral frames at 48 kHz.
includeResonanceCandidatesNoReport heuristic persistent narrow spectral features across at least four sampled frames; not confirmed resonances or automatic EQ advice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is clear. The description adds behavioral detail: 'Loudness measures the source stream; channel selection applies to optional analyses,' clarifying how loudness and channelIndex interact, and reiterates the source-only nature. This goes beyond annotations without contradicting them.

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?

Two sentences with no fluff. The primary action and scope are front-loaded in the first sentence, and the second clarifies technical nuances. Every clause earns its place, making it highly efficient.

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 tool with 12 parameters and no output schema, the description adequately covers scope and measurement behavior. It could mention the return structure (e.g., analysis results object), but the detailed parameter schema and clarity on what is measured make it sufficient for correct invocation. Minor gap in output description, but not critical.

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 100%, so all 12 parameters are already documented. The description adds a small amount of context (e.g., 'bounded window' implies startSeconds/durationSeconds, channel selection applies to optional analyses), but does not materially enhance understanding beyond the schema. Baseline 3 is appropriate.

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 states a specific verb ('Measure') and a precise resource ('an exact Session or Arrangement audio clip's local source file over a bounded window'). It explicitly notes 'Source-only, not rendered clip or track audio,' which distinguishes it from potential siblings like analyze_audio_file or get_audio_clip_state. This gives clear purpose and differentiation.

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 clarifies that it operates on the source file, not the rendered audio, which tells the agent when not to use it (e.g., if rendered audio is needed). However, it does not explicitly name alternatives like analyze_audio_file or get_audio_clip_state, leaving some routing inference to the agent. Still, the scope is well-defined.

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