Skip to main content
Glama

play_line_in

Play a turntable, CD player, or other analog line-in source through a Sonos room, specifying the room and optional source speaker when the input is on a bonded player.

Instructions

Play a line-in input (turntable, CD player, other analog source) in a Sonos room. source is the room whose line-in to play (defaults to the room itself), or a player id from list_rooms when the input sits on one speaker of a bonded room.

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

Input Schema

NameRequiredDescriptionDefault
roomYesRoom name as shown in the Sonos app; a unique partial name also works
sourceNoRoom name or player id that has the line-in connected

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only cover openWorldHint=false and destructiveHint=false, so the description must carry the rest, and it does add real behavioral context: `source` defaults to the target room itself, and a bonded-room input may live on one specific player id. It does not say what happens to the room's current playback when line-in takes over, which is the main remaining gap.

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 tight sentences: the action first, the parameter nuance second. No filler, no restatement of the title, and the default behavior is front-loaded in the same sentence as the parameter it modifies.

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 2-parameter tool with no output schema and clear annotations, this covers what an agent needs to pick the tool and supply arguments, including the non-obvious bonded-room case. Missing only the side-effect question of whether starting line-in interrupts existing playback in that room.

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 adds meaning the schema does not: `source` is optional and defaults to the room being targeted, and it explains the player-id form specifically in the bonded-room scenario rather than leaving both forms equally abstract.

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 (play) and a specific resource (line-in input) and names the concrete source types (turntable, CD player, other analog source), which distinguishes it from streaming siblings like play_spotify. It stops short of explicitly contrasting with those siblings by name, but the parenthetical does the disambiguation work.

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?

Makes clear this is for physical analog inputs and points at the bonded-room edge case, including where to get a player id (list_rooms). There is no explicit 'use X instead when' exclusion against play_spotify, but the input-type framing already implies the boundary.

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