Skip to main content
Glama

ai_analyze_audio

Read-only

Analyze a clip's source audio for loudness (LUFS, true peak, LRA) and silence to validate levels before mixing or delivery. Requires FFmpeg.

Instructions

Loudness (LUFS / true peak / LRA) and silence analysis of a clip's source audio. Requires FFmpeg.

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": {
      "clip": "<clip>"
    },
    "name": "ai_analyze_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipYesMedia pool clip id, exact clip name, or file path
targetLufsNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this a safe, read-only, closed-world operation, and the description adds a real operational constraint (FFmpeg dependency) plus the exact metric families returned. It omits scope details an agent would want: whether the whole source clip is always analyzed or a range can be selected, and what constitutes 'silence'.

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

Conciseness5/5

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

Two sentences, no waste: the analysis scope and metrics come first, followed by the hard prerequisite. Every clause carries information an agent needs.

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?

With an output schema present and only two parameters, the description does not need to explain return values, and the safety profile is covered by annotations. Still, for an analysis tool that emits numeric compliance data, it says nothing about analysis scope or how the target loudness is applied, leaving gaps relative to the tool's complexity.

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 50%: 'clip' is documented in the schema, while 'targetLufs' has only a default of -14 and no explanation. The description's mention of LUFS implies that targetLufs is a loudness reference for comparison, but it never states that role or how it affects the result, so it adds only marginal meaning over 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?

The description names a specific resource (a clip's source audio) and a specific analysis (loudness metrics LUFS/true peak/LRA plus silence detection), so the tool's function is unambiguous. It does not distinguish itself from nearby analysis tools such as audio_analyze or ai_analyze_footage, which keeps it short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to choose this over audio_analyze, ai_analyze_footage, or ai_remove_silence, nor any exclusion or context about the workflow it belongs to. The only guidance is the environmental prerequisite 'Requires FFmpeg', which is useful but is not usage guidance.

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

Deploy Server

Other Tools