Skip to main content
Glama

Get stream embed codes (player and chat)

get_stream_embed_codes
Read-onlyIdempotent

Copy-paste HTML for putting a stream on a website: the video player (player.responsive, the default; player.iframe for a fixed size) and the live chat (chat.iframe), plus their plain URLs, and withChat: the player and the chat in one block that lays itself out (side by side on a wide screen, chat under the player on a phone). The same pair as the cabinet's Embed window, on the owner's own address. The iframe only loads on websites listed in the account's allowed embed domains (get_embed_domains / set_embed_domains; an empty list means every website) and only shows content the stream's access mode lets the viewer open (see create_stream). For "a radio station on the company website": create_stream, set_embed_domains with the company domain, then paste player.responsive (and chat.iframe) into the page. Follow embedRules in the answer (the rules of get_video_embed_code).

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": {
      "stream_id": "<stream_id>"
    },
    "name": "get_stream_embed_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
themeNoChat skin, default light: dark for a dark website, auto follows the visitor
stream_idYesStream id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description is free to spend its words on what actually matters: that the iframe only loads on domains in the allowed embed list (empty = all sites) and only shows content the stream's access mode permits. That is genuine behavioral context beyond the structured fields. It does not describe the shape of the returned block itself, leaving the agent to guess what 'embedRules in the answer' contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key deliverable is front-loaded, which is good, but the middle is a dense run-on that mixes format names, permission constraints, and a workflow into one block. Several clauses ('plus their plain URLs, and withChat: the player and the chat in one block that lays itself out...') could be tightened without losing 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 read-only code-fetching tool with no output schema, the definition covers the prerequisites (allowed embed domains, access mode), the variants offered, and a worked end-to-end flow. The remaining gap is what the returned codes block contains, which is only pointed at by reference to embedRules.

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%, with stream_id and the theme enum both documented in the schema. The description adds no meaning about either parameter — stream_id is never mentioned and theme is not referenced at all, so the schema does all the work. Baseline 3 is correct under full coverage.

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 opens with a concrete verb and resource ('Copy-paste HTML for putting a stream on a website') and enumerates the actual variants returned (player.responsive, player.iframe, chat.iframe, plain URLs, withChat). It also distinguishes itself from the neighboring embed tool by deferring to get_video_embed_code's embedRules, so an agent can tell the two apart without opening either 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?

Usage is anchored by an explicit scenario ('a radio station on the company website') with the required ordering create_stream -> set_embed_domains -> paste the codes, and the prerequisite tools are named inline. It stops short of stating when NOT to use this versus get_video_embed_code, only cross-referencing it in passing.

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.