Skip to main content
Glama

list_rooms

Read-only

Discover Sonos rooms on the local network and see how speakers are grouped, including the players in each room.

Instructions

List the Sonos rooms on the local network, with how they are grouped and the players that make up each room. Room names come from the speakers and are untrusted text.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_rooms"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that: it confirms discovery happens over the local network and warns that room names are untrusted text from the speakers, which is actionable security context for an agent that will echo those names into later calls.

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 first covers what is returned and its scope, the second carries the untrusted-input warning. Content is front-loaded and nothing is wasted.

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 parameters and no output schema, the description carries the burden of explaining the return value, and it does so at a high level (rooms, grouping, constituent players). It stops short of saying what identifying fields or ordering the agent can rely on, but for a zero-argument read tool it is close to sufficient.

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?

The tool takes zero parameters, so there is nothing for the schema to under-document and the baseline applies. The description correctly spends no words on parameter syntax and instead describes what the call returns.

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 (list) and resource (Sonos rooms), scopes it to the local network, and even describes the shape of the result: groupings and the players per room. Against siblings like now_playing or set_volume, an agent can immediately tell this is the discovery/inventory tool rather than a playback control.

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?

No explicit when-to-use or when-not-to-use statement and no named alternatives; usage is only implied by the fact that it enumerates rooms, which an agent would infer is a prerequisite for targeting a room in other tools. Adequate but leaves the routing to inference.

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