Skip to main content
Glama

audio_preview

Read-only

Returns actual audio bytes from a relative media file path so compatible MCP clients can play or inspect the audio; response size is capped at 5 MiB and client support varies.

Instructions

Return actual audio bytes to MCP clients supporting audio content, up to 5 MiB. Client support varies.

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_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesRelative audio file path within --media-dir

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint, destructiveHint false, closed world). The description adds genuinely new behavior: a 5 MiB cap and the caveat that client support varies. It stops short of saying what happens when a file exceeds 5 MiB or what error surfaces on an unsupported client.

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 short sentences with no filler; the core behavior leads and the client-support caveat follows. Every phrase carries information.

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 one-parameter, read-only byte-return tool with no output schema, the description covers the return nature (raw audio bytes) and a size ceiling. Only the failure mode for oversized files or unsupported clients is left unstated.

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 100% and the single 'file' parameter is fully documented as a relative path within --media-dir. The description adds no additional path or format semantics beyond the schema, so the baseline 3 applies.

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 action and output: 'Return actual audio bytes.' That is concrete and distinguishes it from siblings that analyze or manipulate audio, though it never names an alternative sibling to disambiguate from tools like audio_listen or audio_compare.

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

Usage Guidelines3/5

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

'To MCP clients supporting audio content' and 'Client support varies' imply a condition for use (only when the client can handle audio), but no explicit when-not guidance or named alternative is given for clients that cannot receive audio bytes.

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