Skip to main content
Glama

Loudness over time

loudness_timeline

Breaks audio/video into windows and reports max momentary and short-term loudness plus true peak, flagging loudest, quietest, and sudden jumps to find hot ads, quiet guests, or spikes.

Instructions

Break a file into windows (default 5 s) and report max momentary loudness, short-term loudness and true peak for each, then point out the loudest and quietest sections and sudden jumps. Use it to find the ad-read that's too hot, the guest who's too quiet, or the music sting that spikes. Optional CSV export.

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": "<path>"
    },
    "name": "loudness_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a local audio or video file. ~ is expanded.
startNoOnly analyse from this time (seconds or HH:MM:SS).
jump_luNoFlag windows whose max momentary loudness jumps by at least this much from the previous window (silence is ignored).
durationNoOnly analyse this many seconds.
max_rowsNo
overwriteNo
audio_streamNoWhich audio stream to use if the file has several (0 = first).
window_secondsNo
csv_output_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=false is consistent with the description's 'Optional CSV export', and the description adds useful behavior: default 5 s windows, per-window metrics, and automatic identification of extremes and jumps. It does not disclose that max_rows (default 120) may truncate long timelines, nor what overwrite does to an existing CSV file, both of which materially change results.

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?

Three tight sentences with the mechanics front-loaded and the use cases second; nothing is redundant. The trailing 'Optional CSV export' is short but the least connected clause, since the CSV parameters themselves are unexplained.

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 analysis tool with no output schema, the description does well to describe what each window reports and that extremes and jumps are surfaced. It leaves notable gaps around truncation via max_rows, write/overwrite behavior of the CSV output, and any of the analysis range parameters.

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

Parameters3/5

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

Schema coverage is 56%, so several parameters are undocumented in both places. The description compensates for window_seconds (default 5 s) and implicitly for jump_lu via 'sudden jumps', but says nothing about start, duration, max_rows, overwrite, audio_stream, or csv_output_path.

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?

The description states a specific verb and resource: break a file into windows and report max momentary loudness, short-term loudness and true peak per window, plus loudest/quietest sections and jumps. That is far more specific than the sibling-sounding 'measure_loudness', but it never names the sibling or explicitly contrasts whole-file measurement with per-window analysis.

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?

The use cases are concrete and diagnostic: the too-hot ad-read, the too-quiet guest, the spiking music sting; these clearly indicate localized, time-varying loudness problems. There is no explicit exclusion such as 'use measure_loudness for a single whole-file number', so the alternative selection is left to inference.

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