Skip to main content
Glama

Audio info

audio_info
Read-onlyIdempotent

Inspect an MP3 or M4A file to read its format, duration, sample rate, and channel count before trimming or splitting audio.

Instructions

Read-only check of an MP3 or M4A file: returns format, duration (as 1:23 and in seconds), sample rate in Hz and channel count as JSON. Call it before trim_audio or split_audio to know the track length. Nothing is written; other audio formats return an error.

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": {
      "file": "<file>"
    },
    "name": "audio_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPath to the file (absolute, or relative to the working directory).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, so the safety profile is covered. The description still adds real behavior: supported formats (MP3/M4A only), the failure mode for other formats, and the return payload contents — important since there is no output schema. It stops short of path/permission or error-message detail.

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?

Three short sentences, front-loaded with the operation and return contents, then usage ordering, then the constraint. Every sentence carries distinct information with no repetition of the name or annotations.

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

Completeness5/5

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

For a one-parameter, no-output-schema read tool, the description covers scope, return values, format limits, error behavior, and when to invoke it. An agent has everything needed to call it correctly and interpret the result.

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% and the single parameter is already documented, so the baseline is 3. The description adds a constraint not in the schema: the file must be MP3 or M4A, which meaningfully narrows what 'file' can be.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read-only check of an MP3 or M4A file') and enumerates exactly what comes back (format, duration in two representations, sample rate, channel count as JSON). The 'info' nature is clearly distinguished from the mutating siblings split_audio and trim_audio.

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

Usage Guidelines5/5

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

Explicitly says to call it before trim_audio or split_audio to learn the track length, naming the alternatives and the condition that selects this tool. It also states the boundary condition: other audio formats return an error.

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