Skip to main content
Glama

Listen to the mix

analyze_mix
Read-onlyIdempotent

Measures an offline mix's loudness, peaks, frequency balance, stereo width, track masking, and issues so you can check changes and decide what to fix.

Instructions

Renders bars of the song offline (nothing plays; nothing is written) and measures what you'd check by ear when mixing. The mix: peak, true peak, integrated loudness (LUFS), crest factor, balance across seven frequency bands, stereo width and correlation (also below 250 Hz). Each section: its loudness and the loudest tracks. Each track and return: its loudness (LUFS) and level while it plays, its share of the tracks' loudness (K-weighted, as ears and meters hear it, not raw energy, which the bass always wins), the bars it plays in, where most of its energy is, and its stereo width. Masking: pairs of tracks loud in the same band at the same time, within 6 dB of each other, and for how much of the time. Plus notes on anything measurably off (clipping, true peak above -1 dBTP, a wide or out-of-phase low end). The loop if it's on, else the whole song, unless bars are given. Use it after changing a mix to check the change. To act on masking, cut one of the pair where they collide with edit_session's set_eq. To compare the mix with an earlier version of itself or a reference track, use compare_mix.

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": "analyze_mix"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_barNoWhere it ends (the bar it stops at)
from_barNoFirst bar (1-based)
section_barsNoBars per entry in sections (default 4)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description reinforces this with concrete behavior: 'nothing plays; nothing is written.' It goes further by defining the analysis scope rule ('The loop if it's on, else the whole song, unless bars are given') and by flagging the diagnostic notes it emits (clipping, true peak above -1 dBTP, wide or out-of-phase low end).

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?

Dense but front-loaded: the core action and scope come first, then the metric inventory, then the diagnostic notes, then routing to siblings. The metric enumeration is long but justified because no output schema exists; a few clauses (e.g. the parenthetical about raw energy) are wordy without changing agent behavior.

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?

With no output schema, the description carries the return-value burden and does so thoroughly, covering mix-level, per-section, per-track/return, and masking outputs plus the diagnostic notes. Combined with the scope rule and sibling routing, an agent has everything needed to call and interpret this tool.

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 the baseline would be 3; the description earns more by explaining the default range behavior that the schema does not (loop if enabled, else whole song, unless bars are given), which tells the agent what from_bar/to_bar actually control when omitted. It adds nothing extra for section_bars beyond the schema's default-4 note.

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?

Opens with a specific verb and resource: 'Renders bars of the song offline ... and measures what you'd check by ear when mixing,' then enumerates exactly which mix-level, section-level, track-level and masking metrics are produced. It explicitly contrasts itself with compare_mix, so an agent can separate the two without opening a schema.

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?

States when to use it ('after changing a mix to check the change'), what to do with the results (act on masking via edit_session's set_eq), and names the alternative for a different question ('To compare the mix with an earlier version ... use compare_mix'). Both a when-to-use and a when-to-use-something-else are given.

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