Skip to main content
Glama

media_mix_balance

Measure how far the voice sits above BGM in a finished mix by aligning and subtracting the voice track; returns mean difference and buried windows for judging BGM volume.

Instructions

Measure how far the voice stands above the BGM in a finished mix, given the voice-only track.

The voice track is aligned by cross-correlation and subtracted; the rest is BGM + SE. Returns the mean difference and buried_spans (windows where voice - BGM < min_db). Talk videos usually keep BGM 12-20 dB under the voice. Use this, not a model's ear, to judge BGM volume. Heavy EQ / reverb on the voice makes the BGM estimate too high. Per-window rows go to a JSON file.

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": {
      "mix_path": "<mix_path>",
      "voice_path": "<voice_path>"
    },
    "name": "media_mix_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
winNo
startNo
min_dbNo
mix_pathYes
out_pathNo
session_idNo
voice_pathYes
voice_startNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavior: alignment by cross-correlation and subtraction, the returned metrics (mean difference and buried_spans below min_db), and a file side effect (per-window rows written to a JSON file). It does not state what happens if alignment fails or how long the subtraction takes, but the method and side effects are unusually well surfaced.

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?

The purpose is front-loaded, then method, then return values, then interpretation and caveats — a logical order with little wasted wording. The final line about the JSON file sits awkwardly after the caveat, slightly breaking the flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, unannotated, no-output-schema tool, the description covers the method, the outputs, and the main accuracy caveat well. It leaves the timing/windowing and session parameters unexplained, so an agent can call it on defaults but cannot confidently tune start, end, voice_start, or session_id.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 9 parameters, so the description must compensate, and it only illuminates min_db (threshold for buried spans), out_path (the JSON file), and win implicitly through 'windows'. voice_start, session_id, start, and end get no explanation at all, which matters because voice_start interacts non-obviously with the cross-correlation alignment.

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 first sentence names a specific verb and resource: measure how far the voice stands above the BGM in a finished mix, given a voice-only track. It also distinguishes itself from model-based listeners ('Use this, not a model's ear'), so an agent can separate it from the gemini_* analysis siblings 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear use case (judging BGM volume in talk videos) and a reference range of 12-20 dB, plus an explicit caveat that heavy EQ/reverb inflates the BGM estimate. It stops short of naming a concrete alternative tool or stating preconditions such as when the voice-only track is unavailable.

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