Skip to main content
Glama

Add a stream for continuous recognition

add_stream

Use this only when the user asks to start monitoring a radio or live stream. AudD then recognizes the stream continuously and sends results to the callback URL: by default after each song ends, or as soon as a song starts with callbacks="before" (those results have no play length). radio_id is the user's own integer for the stream and must be unique on the account. The account's streams plan needs a free stream slot.

Input Schema

NameRequiredDescriptionDefault
urlYesStream URL (Icecast, HLS, DASH, m3u/m3u8, ...) or a shortcut: twitch:<channel name>, youtube:<video id>, youtube-ch:<channel id>
radio_idYesAny integer that will identify this stream, unique on the account
callbacksNoOptional: "before" sends results when a song starts instead of when it ends

Output Schema

NameRequiredDescriptionDefault
addedYes
radio_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare a non-read-only, non-idempotent, open-world write, so the bar is lower, yet the description adds substantial context: continuous recognition behavior, default callback timing (after each song ends), the callbacks="before" mode and its lack of play length, plus the uniqueness and plan-slot constraints. This is real operational detail an agent cannot get from annotations.

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?

The usage directive is front-loaded and the sentences largely earn their place. Slight redundancy in restating radio_id's uniqueness, which the schema already carries, keeps it from a 5.

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 mutation tool with an output schema (so return values need not be described), the description covers purpose, trigger condition, callback semantics, and a plan-slot prerequisite. It omits what happens on a duplicate radio_id and any auth/rate-limit notes, but nothing critical is missing.

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 description coverage is 100%, so the baseline is 3, and the schema already documents url, radio_id, and the callbacks enum. The description adds value beyond it by explaining that callbacks="before" results "have no play length" and re-emphasizing the account-unique constraint on radio_id.

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+resource ("Add a stream") and scopes it precisely to "continuous recognition" of a radio/live stream. The word "continuously" cleanly separates it from the one-off sibling recognize_song_from_url, so an agent can route without opening the schema.

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?

"Use this only when the user asks to start monitoring a radio or live stream" is an explicit when-to-use directive with an implicit exclusion of single-song recognition. It also names a precondition ("The account's streams plan needs a free stream slot"), though it never explicitly names a sibling alternative for one-off lookups.

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