Skip to main content
Glama
libsonare-mcp

libsonare-mcp

Official
by libraz

Play audio for the human listener

audio_play

Plays an audio file or a selected time range through the server's speakers for human listening, returning a process ID in the background; use stop to end server-started playbacks.

Instructions

Plays an audio file, or one window of it given as range, on the speakers of the machine running this server, so the human user can listen; the agent cannot hear it. Playback starts in the background and the call returns at once with the process id; action 'stop' ends the playbacks this server started and nothing else. Use it when the user asks to play, hear, listen to or audition a file or a section, such as 'play the chorus'. Not for measurements (use audio_analyze, audio_loudness or audio_visualize, which return numbers and images). Players started before a server restart can no longer be stopped by this tool. Example: {"action": "play", "path": "song.wav", "range": {"start_sec": 30, "end_sec": 60}}.

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": {
      "action": "<action>"
    },
    "name": "audio_play"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFor 'play': the audio file to play (wav, flac, mp3, ogg, aiff, ...).
rangeNoFor 'play': play only this window {start_sec, end_sec} of the file. An end_sec past the end is clipped (reported in warnings). It is cut to a temporary WAV first, which is deleted when playback ends.
actionYes'play' starts the file in the background; 'stop' ends the playbacks this server started (and only those).
detailNo'concise' returns the summary and the most useful fields; 'full' returns all.concise

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the description's extra value is the async contract: playback starts in the background and returns immediately with a process id, and 'stop' only ends playbacks this server started. It also discloses a real operational caveat, that players started before a server restart can no longer be stopped. Those are meaningful additions, but the temp-WAV creation/deletion detail is already carried by the schema, so it is not purely new context.

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 verb and the listener framing, then usage, exclusions and an example in a logical order. It is a dense single block with a few clauses that restate schema content (range clipping, temp WAV), which keeps it from being maximally tight.

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?

No output schema exists, and the description compensates by stating the return shape (immediate return with a process id) and that the detail parameter governs concise vs full responses. For a 4-parameter, two-action tool with one nested range object, nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds a worked invocation showing action, path and range composed together, which clarifies how 'play' vs 'stop' is selected in practice. It does not add format or unit detail beyond the schema, so it sits just above baseline rather than at the top.

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 (plays) and resource (an audio file or one window of it), plus the crucial scope that output goes to the server machine's speakers for the human, not the agent. That framing alone separates it from every audio_* analysis sibling without opening a schema.

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?

Gives an explicit when-to-use trigger ('when the user asks to play, hear, listen to or audition...') with a concrete example ('play the chorus'), and an explicit when-not with named alternatives (audio_analyze, audio_loudness, audio_visualize for measurements). The boundary between playback and measurement is unambiguous.

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