Skip to main content
Glama

Measure a sound

inspect_audio
Read-onlyIdempotent

Measure a music track, voiceover, sound effect or a clip's own sound: the tempo and the second of every beat (cut on these so edits land on the music), where each spoken phrase starts and ends (trim there so no word is clipped), and the second a sound effect peaks (line it up with the action). It also says when a generated clip's line is cut off at its last frame. Free: costs no credits.

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": {
      "job_id": "<job_id>"
    },
    "name": "inspect_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoWhat to measure: music (tempo and beat times), speech (where each phrase starts and ends) or sound_effect (the second it peaks). Omit it: an audio file is measured for all three and a video for its speech.
job_idYesThe sound to measure: job_id of a finished audio or video generation, a render job_id (render:...), or a media_id.
bpm_hintNoThe tempo the music was generated at, e.g. 120, when known. It settles half-time and double-time readings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral information: that the call is free (no credits) and what each measurement returns, including truncation detection for generated clips. It does not cover latency, failure modes, or output structure, so it is a moderate rather than rich add.

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?

Front-loaded with the purpose and organized by measurement type with parenthetical usage hints, so an agent can scan it quickly. It is a single long sentence with stacked clauses, which is slightly dense but every clause carries information rather than padding.

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 read-only measurement tool with no output schema, the description does the necessary work of characterizing the return values (beat seconds, phrase start/end, peak second, cut-off detection). What remains unstated is the concrete response shape and units, but the annotations plus schema make the definition sufficient for correct invocation.

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 description coverage is 100%, so all three parameters (kind, job_id, bpm_hint) are already fully documented, giving a baseline of 3. The description reinforces the three measurement categories that map to the kind values but adds no syntax, format, or default detail beyond what the schema states.

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?

Opens with a specific verb and resource ('Measure a music track, voiceover, sound effect or a clip's own sound') and enumerates the concrete readings it produces (tempo, beat seconds, phrase boundaries, peak second, truncation flag). It is very clear what the tool does, but it never names or contrasts the closest sibling (inspect_video) or any alternative, so sibling differentiation is left implicit.

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 clear practical context for each measurement type ('cut on these so edits land on the music', 'trim there so no word is clipped', 'line it up with the action'), which tells an agent when the output is worth requesting. The 'Free: costs no credits' line is a useful selection signal. It stops short of explicit when-not-to-use conditions or naming an alternative tool.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources