Skip to main content
Glama

analyze_audio_file

Read-only

Analyze local audio files to measure loudness, true peak, format, and optional spectral or pitch characteristics.

Instructions

Measure local source audio loudness, true peak, format, optional spectral peaks, spectrogram and monophonic pitch. Loudness measures the source stream; channel selection applies to optional analyses. Not Live processing or pitch correction. Requires ffmpeg and ffprobe.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourcePathYesAbsolute local audio file.
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; requires at least 256 ms.
startSecondsNoWindow start.
targetMidiNoteNoMeasure monophonic cents deviation against this explicit MIDI note at A4=440 Hz; enables pitch analysis, not pitch correction.
durationSecondsNoWindow duration, defaults to 10 seconds.
includeSpectrumNoInclude one 4096-sample spectral frame at the window start.
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 time-resolved spectral frames, resampled to 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.4/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 covered. The description adds useful behavioral context: loudness measures the source stream, channel selection applies only to optional analyses, and it requires external tools (ffmpeg/ffprobe). It also clarifies that pitch measurement is not pitch correction, adding transparency beyond the 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?

The description is three concise sentences with no redundancy. It front-loads the primary purpose, then clarifies scope, exclusions, and prerequisites. Every sentence adds necessary information without filler.

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 11 parameters and multiple optional analyses, the description provides adequate context: it states what it measures, what is optional, exclusions, and external requirements. It does not describe the return format, but the lack of an output schema makes this less critical; the description's clarity about the measurements implies the output. It is reasonably complete for an agent to call it correctly.

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 100%, so each parameter is documented. The description adds valuable semantic clarification: 'Loudness measures the source stream; channel selection applies to optional analyses' clarifies how channelIndex behaves, and 'Not Live processing or pitch correction' clarifies the intent of targetMidiNote. This goes beyond the schema's basic field descriptions.

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 the tool measures local source audio loudness, true peak, format, and optional spectral analyses, with a specific verb and resource. It differentiates from sibling tools like analyze_audio_clip by explicitly stating 'local source audio' and 'Not Live processing,' making its scope distinct.

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?

It provides clear context on when to use the tool: for local source files requiring ffmpeg/ffprobe, and explicitly excludes Live processing and pitch correction. However, it does not name alternative tools (e.g., analyze_audio_clip) or specify when not to use it beyond these exclusions, leaving some inference to the agent.

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