Skip to main content
Glama

compare_audio_files

Read-only

Compare two local audio files to measure loudness, peak, stereo, and tonal differences between before/after bounces or a mix and reference track. Set start times and duration to align sections.

Instructions

Compare two local audio files (B relative to A): before/after record_section bounces or your mix vs a reference track. Use start_seconds_a / start_seconds_b and max_seconds to compare matching sections (e.g. seconds 60-80 of a full reference song against seconds 0-20 of your Live bounce). Returns LUFS/true-peak/RMS deltas, stereo width & phase correlation deltas, raw AND loudness-matched 7-band tonal deltas, plus both individual reports and a concise summary. Read-only; no upload.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path_a": "<path_a>",
      "path_b": "<path_b>"
    },
    "name": "compare_audio_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
path_aYes
path_bYes
max_secondsNo
start_seconds_aNo
start_seconds_bNo

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint=false, and the description reinforces the local-only nature with "Read-only; no upload," which matters for privacy expectations. It also frames behavior in terms of matching sections rather than full-file alignment, though it says nothing about path restrictions, formats, or failure modes for mismatched lengths.

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?

Front-loaded with the verb and the direction convention, then scenarios, then output shape — a sensible ordering with little wasted text. The long enumeration of returned deltas is somewhat verbose given an output schema already exists.

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 5-param read-only analysis tool with an output schema, the description covers purpose, matching-section mechanics, and the nature of results. Remaining gaps are minor: file format support, path expectations, and what happens when requested windows exceed file length.

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%, so the description must carry the params, and it does explain start_seconds_a/start_seconds_b and max_seconds through a worked example (seconds 60-80 of a reference vs 0-20 of a bounce). path_a/path_b are left to their titles, with no note on path format or supported file types.

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 ("Compare two local audio files") and pins down the direction of comparison with "(B relative to A)" plus two concrete scenarios. This clearly distinguishes it from single-file siblings like analyze_audio_file or visualize_audio_file.

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?

Gives concrete when-to-use contexts: before/after record_section bounces, or mix versus reference track. It does not explicitly name a single-file alternative to use instead when comparison is unnecessary, but the scenarios make the selection condition clear.

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