Skip to main content
Glama

Analyze a local audio recording

analyze_audio
Read-only

Inspect local audio files to answer questions about speech, music, or ambient sounds, or omit the prompt to generate a timestamped summary.

Instructions

Ask about speech, music, or ambient sound in a local recording. Omit the prompt for a timestamped summary. Local files are included inline in each generateContent request to the configured provider.

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": "analyze_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute local audio file path. Recognized extensions: wav, mp3, m4a, aac, flac, aif, aiff, ogg, oga, opus, mpga, mpeg, mpg, weba, webm.
modelNoProvider model ID for this call. An explicit selection is pinned for the request. Otherwise the configured model applies.
promptNoQuestion about the recording, for example a transcript or a description of background sounds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety expectations are partly structured. The description adds meaningful behavior beyond that: local files are included inline in each generateContent request to the configured provider, which tells the agent data is transmitted to an external model provider.

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?

The description is front-loaded, three sentences, and every sentence adds value: purpose, prompt-omission behavior, and provider transmission. There is no redundant wording or filler.

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 simple three-parameter read-only tool with no output schema, the description covers purpose, prompt behavior, and provider transmission. It could be slightly more complete about the shape of returned results when a prompt is supplied, but the essential invocation context is present.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already defines path, model, and prompt well. The description still adds useful semantic detail by explaining that omitting prompt triggers a timestamped summary and that the audio is sent inline to the configured provider, which goes beyond the field definitions.

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 operation and resource: asking about speech, music, or ambient sound in a local recording. It clearly separates the tool from non-audio siblings like analyze_video by specifying audio content, though it does not explicitly name or contrast with any sibling.

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 clear usage context: supply a prompt to ask a question, or omit the prompt to get a timestamped summary. This helps the agent choose behavior, but it does not cover when to prefer another tool or any exclusions/limitations.

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