Skip to main content
Glama
kotty-radio-mcp
by garrapato

Play a radio station

play_station

Starts a radio station stream by ID and returns a WebSocket URL for the client player to receive audio; optionally transcodes to mp3, opus, or PCM formats.

Instructions

Start streaming a radio station (by "id" from the search/recommend tools) and return a WebSocket URL (wsUrl) the client player connects to. The server does not play audio itself: hand wsUrl to the player. Binary WS frames carry the audio; JSON text frames carry {type:"ready"|"metadata"|"reconnecting"|"error"|"ended"}. format: "passthrough" (original codec, default) or "mp3"/"opus"/"pcm16" (48 kHz stereo)/"pcm16_24k_mono" (transcoded, need ffmpeg). Use now_playing for the current song and stop_stream when done.

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": {
      "id": "<id>"
    },
    "name": "play_station"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesStation id (radio-browser stationuuid), as returned by the search tools
formatNoAudio format (default "passthrough")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: what the return value is, the WS protocol contract (binary frames = audio, JSON frames with the specific message types ready/metadata/reconnecting/error/ended), and the ffmpeg dependency for transcoded formats. Gaps remain on auth/permissions and whether a second call starts an additional stream or replaces the current one, but the disclosure is well above the annotation baseline.

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 action and the key return value, and every sentence carries actionable content. The format sentence is dense with stacked parentheticals, which slows parsing slightly but does not waste words.

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?

With no output schema, the description correctly supplies the return contract (wsUrl plus frame types), the format trade-offs and dependencies, and the companion tools for lifecycle management. An agent has everything needed to invoke this correctly and hand off to a player.

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 genuinely adds meaning: 'passthrough' is explained as original codec, 'pcm16' is specified as 48 kHz stereo, and the transcoded formats are flagged as needing ffmpeg. The id parameter adds little beyond the schema apart from pointing at the search/recommend tools.

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 and resource ('Start streaming a radio station') and immediately clarifies the non-obvious output ('return a WebSocket URL (wsUrl) the client player connects to'). It also disambiguates from siblings by naming now_playing and stop_stream and by stating the id comes from search/recommend tools.

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

Usage Guidelines5/5

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

Gives explicit routing: use now_playing for the current song, stop_stream when done, and take the id from the search/recommend tools. It also clarifies the division of labor ('The server does not play audio itself: hand wsUrl to the player'), which prevents a common misuse of the tool.

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