Skip to main content
Glama

Compare the mix with before and a reference

compare_mix

Compares up to three mix versions—Before, Now, and a Reference—by measuring loudness, peak, crest, width, correlation, and seven-band balance, then summarizes what changed.

Instructions

Lathe's Compare window keeps up to three versions to switch between while they play in step: Before (the mix as it was when someone marked it), Now (the mix as it is) and a Reference (a finished track the person chose). Each is measured like analyze_mix's mix: integrated loudness, true peak, crest, width, correlation and balance across seven bands. With mark_before, Lathe renders the mix now as Before: do it before changing a mix, so the person can hear what you did by switching between them. Without it, Lathe renders Now (over Before's bars, if there's a Before) and replies with every version's numbers and a summary of what changed and how both stand against the reference. The person picks the reference in the window; the reply says if there's none. Renders over the loop if it's on, else the whole song.

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

Input Schema

NameRequiredDescriptionDefault
mark_beforeNotrue: render the mix as it is now as Before (default false: render Now and compare)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Adds real context beyond the annotations: it renders (a mutation of session state despite destructiveHint=false), reports each version's metrics and a summary against the reference, and states render scope (loop if on, else whole song). It does not say whether mark_before overwrites an existing Before or whether an existing one is preserved.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence carries information, but the opening about the Compare window keeping three versions is UI narration before the tool action, and the point about the reference being chosen in the window is buried mid-paragraph. Dense rather than wasteful, but not front-loaded.

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 one-boolean tool with no output schema, the definition covers what comes back (every version's numbers, a change summary, reference status) and the render scope. Missing only edge cases like overwriting a prior Before or behavior when the reference is absent beyond 'the reply says if there's none.'

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 meaning of mark_before is already documented; the description goes beyond it by explaining the sequencing rationale and the consequence of omitting it ('Lathe renders Now over Before's bars'). That is meaningful added value on top of the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names specific resource (Lathe's Compare window: Before, Now, Reference) and the measured metrics, and it distinguishes itself from analyze_mix by noting each version is 'measured like analyze_mix's mix.' The core action—render the mix and reply with every version's numbers plus a change summary—is clear, though it is spread across several sentences rather than front-loaded.

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 guidance for the boolean: 'do it before changing a mix, so the person can hear what you did by switching between them,' contrasting with the no-flag behavior. It never explicitly says when to reach for compare_mix versus analyze_mix, leaving that 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.