Skip to main content
Glama

Play Music

play_music

Searches for a song or artist and starts playback in a room through the Sonos cloud. A query of 'title artist' plays one song; an artist name alone plays a batch of that artist's songs, with duplicate versions of the same title removed. Without the ZoneFoundry bridge, tracks play directly on the speaker and are added to the Sonos queue the next time the ZoneFoundry app is opened.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roomYesRoom name as shown in the Sonos app (usually English, e.g. "Living Room"). Common Chinese aliases (客厅/主卧) also resolve. Omit for the default room.
countNoHow many tracks to play. Default follows the query shape: a single word (artist name or genre, e.g. '粤语歌', 'Beyond') defaults to 10; '歌名 艺人' (two parts) defaults to 1. Pass it explicitly to override.
queryYesSong/artist search text, e.g. '心太软 任贤齐' or '周杰伦'
serviceNoMusic service. Leave it out unless the user named one — the server then uses the first working service from the user's own ranking

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / service / description
      Previous value: -"Music service; default apple"New value: +"Music service. Leave it out unless the user named one — the server then uses the first working service from the user's own ranking"
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare it is a non-read-only, non-destructive, open-world call; the description adds real substance beyond that: playback runs through the Sonos cloud, and without the ZoneFoundry bridge tracks play directly and are queued later. It does not state auth/prerequisite details or what happens on a failed match, so it stops short of a 5.

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?

Three sentences, front-loaded with the core action before the query-shape rules and the bridge caveat. Dense but every sentence carries information; minor cost is that the queue/bridge detail trails into the final sentence.

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?

With no output schema, the description should cover behavior and outcomes, and it does: playback target, batch vs single behavior, deduplication, and the no-bridge fallback path. Missing only failure modes (e.g. no matching track) and any permissions requirement, which keeps it at 4 rather than 5.

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 baseline is 3, but the description genuinely adds meaning: it explains that a lone artist name yields a batch with duplicate titles removed, and that track counts derive from query shape. This clarifies the interaction between query and count beyond the schema's per-field text.

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?

States a specific verb and resource ('Searches for a song or artist and starts playback in a room through the Sonos cloud'), which is more specific than the title alone. It implicitly separates itself from the sibling search_music by adding 'starts playback', though it never names that sibling to make the distinction explicit.

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?

The description explains query shapes ('title artist' plays one song; artist name alone plays a batch), which implies how the tool is meant to be driven. However, it gives no explicit when-to-use guidance against siblings like search_music, list_favorites, or list_playlists, leaving routing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources