Skip to main content
Glama

set_volume

Idempotent

Set a Sonos room’s volume from 0–100; requests above 80 are capped, and the response indicates when the level was lowered.

Instructions

Set the volume of a Sonos room (0-100). This server caps it at 80; the result says when a request was lowered.

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>",
      "level": "<level>"
    },
    "name": "set_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
roomYesRoom name as shown in the Sonos app; a unique partial name also works
levelYesVolume 0-100

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare idempotency, non-destructiveness and closed-world scope; the description adds a genuinely important trait the schema hides — the server clamps volume at 80 even though the schema allows 100, and the result signals when a request was lowered. That clamp-and-report behavior is exactly the kind of context an agent cannot infer from structured fields, though error behavior for unknown rooms is still undisclosed.

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 short sentences with the primary action and range front-loaded, followed by the cap caveat; nothing is redundant and every clause carries information.

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, non-destructive, idempotent setter with no output schema, the description covers the essentials including the surprising server-side cap and the result signal. Only failure modes (nonexistent or ambiguous room names) are left unaddressed.

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% and the schema already documents both `room` (partial names accepted) and `level` (0-100); the description repeats the 0-100 range without adding format or semantic detail, so the baseline 3 applies, with the cap note counted under behavioral transparency.

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 (set) and resource (volume of a Sonos room) with an explicit numeric range, and none of the siblings (play, pause, skip, now_playing) overlap with it, so the agent can select it unambiguously.

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?

Usage is implied by the verb and by the absence of any competing volume tool, but the description never explicitly states when to use this versus alternatives (e.g., after play_spotify) or what preconditions exist such as whether the room must already be grouped or active.

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