Skip to main content
Glama

play_spotify

Play a Spotify track, album, or playlist in a Sonos room using a Spotify URI or open.spotify.com link, keeping the existing queue and inserting the item after the current track.

Instructions

Play a Spotify track, album or playlist in a Sonos room now, through the Spotify account linked in the Sonos app. Pass a spotify: URI (spotify:playlist:) or an open.spotify.com link. If the room is grouped, the whole group plays it. The existing queue is kept; the new item is inserted after the current track.

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": {
      "room": "<room>",
      "spotify": "<spotify>"
    },
    "name": "play_spotify"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomYesRoom name as shown in the Sonos app; a unique partial name also works
spotifyYesspotify:track|album|playlist:<id> or an open.spotify.com link

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only supply openWorldHint=false and destructiveHint=false; the description adds the real behavioral payload: playback is immediate, grouping propagates to the whole group, the queue is preserved, and the new item is inserted after the current track. It stops short of covering edge cases like an empty queue, an unlinked account, or whether other rooms are affected.

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 core action, then scoping, then queue side effects, with no filler. One sentence (the URI format) largely duplicates the schema, which keeps it from a perfect score.

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 two-parameter tool with no output schema and thin annotations, the description covers the key unknowns: target account, grouping propagation, and queue preservation. Failure modes and confirmation of what is returned are the remaining gaps.

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%, so both parameters are already documented, including the partial-room-name behavior. The description restates the URI format the schema already gives and adds nothing new about parameter semantics, so the baseline 3 applies.

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?

Names a specific verb (play) plus resource (Spotify track/album/playlist) and target (Sonos room), and pins down the source account ('the Spotify account linked in the Sonos app'). That is enough to separate it from siblings like play_line_in or resume without opening the schema.

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?

Implies usage through 'Pass a spotify: URI ... or an open.spotify.com link' and explains group behavior, so the calling context is inferable. But it never says when to prefer this over play_line_in or resume, nor what to do if the wrong content type is supplied.

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