Skip to main content
Glama

measure_loudness

Measure integrated loudness (LUFS) and true peak of a media file, then calculate the linear gain required to reach a target LUFS such as -16.

Instructions

Measure integrated loudness (LUFS) and true peak of a media file with ffmpeg loudnorm, and compute the linear gain needed for a target, e.g. -16 LUFS (platform standard) — the dialable, explicit alternative to black-box audio "enhancement".

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": {
      "mediaPath": "<mediaPath>"
    },
    "name": "measure_loudness"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaPathYes
targetLufsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. 'Measure' and 'compute' credibly signal a non-destructive analysis and naming ffmpeg loudnorm discloses the underlying engine, but it omits whether the file is modified, supported formats, runtime on long files, and what is returned.

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?

A single front-loaded sentence that puts the primary operations first. The trailing 'dialable, explicit alternative to black-box audio "enhancement"' is editorial framing that consumes space without adding invocation-relevant information.

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

Completeness2/5

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

For a tool with no annotations and no output schema, the description should explain what the analysis returns (measured LUFS, true peak value, and the computed gain) and whether anything is written. Neither is covered, leaving the agent unable to anticipate results or chain into a gain-application step.

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

Parameters1/5

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

With 0% schema description coverage across two parameters, the description must compensate, and it barely does. It contextualizes targetLufs with a unit and platform-standard example, but mediaPath receives no guidance on path form, supported containers, or behavior when the file lacks an audio stream.

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 verbs and resources: measure integrated loudness (LUFS) and true peak, and compute linear gain, on a media file. That is well beyond a tautology and an agent can tell it apart from silence/glitch analysis siblings by subject matter alone, but no sibling is named explicitly, so it stops short of full differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied via the target example ('-16 LUFS (platform standard)') and the framing as an alternative to opaque audio 'enhancement'. There is no explicit when-to-use versus when-not, no mention of what to call instead for normalization/ducking, and no prerequisites stated.

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