Skip to main content
Glama

Set Shuffle / Repeat

set_play_mode

Turns shuffle and/or repeat on or off for a room's group. repeat: 'off' | 'all' (repeat the queue) | 'one' (repeat the current track). Only the settings that are passed are changed.

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.
repeatNo
shuffleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already indicate a non-read-only, non-destructive operation. The description adds value beyond that by explicitly stating the partial-update behavior and defining what each repeat enum value does, so an agent knows it won't unintentionally reset other playback settings.

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 sentences with no filler. The action is front-loaded, the repeat enum is compactly defined, and the partial-update caveat is placed at the end where it reinforces behavior without distracting from the main purpose.

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 simple three-parameter setter with no output schema, the description plus schema covers everything needed to call it correctly: target room, allowed repeat values, shuffle boolean semantics, and the fact that only passed settings are changed. No return-value documentation is necessary for this operation.

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 only 33%, but the description compensates by explaining the repeat enum values in detail and confirming that shuffle/repeat are toggles via 'on or off.' The room parameter is already documented in the schema. Shuffle could use a bit more explicit spelling, but the meaning is clear enough from context.

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?

The description states a specific verb and resource: 'Turns shuffle and/or repeat on or off for a room's group.' It also disambiguates the repeat modes ('repeat the queue' vs 'repeat the current track'), making the tool's function unmistakable and distinct from the listed music-control siblings.

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

Usage Guidelines4/5

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

The description makes clear when this tool is appropriate: to change shuffle and/or repeat for a group. It also adds the key usage nuance that 'only the settings that are passed are changed.' No explicit alternative is named, but none of the sibling tools overlaps with this functionality, so no exclusion is required.

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