Skip to main content
Glama

Live: post chat message

post_chat

Posts plain-text chat messages during a live webinar as an AI-labelled assistant or host, with validation, dry-run, and idempotency to prevent duplicate sends.

Instructions

Post a message in the live chat. as: "assistant" (default) shows it under the account's assistant name with a visible "AI assistant" badge, so viewers always know it is not a person; "host" posts with the host badge under the first host name of the page (or the account name) plus "(AI assistant)", so it is still labelled as AI; use it only when the user asked to speak for the host. Max 500 characters, plain text. Only while the webinar is live (status live); otherwise error not_live. delivered false (with warning) means it was saved but LiveKit did not take it: do not retry, that would do it twice. Max 30 live actions per 10 s per key (rate_limited). Example: {webinar_id, text: "Good question! Pricing starts at 49 euro a month."}

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": {
      "webinar_id": "<webinar_id>",
      "text": "<text>"
    },
    "name": "post_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoDefault assistant (labelled "AI assistant")
textYesPlain text, max 500 characters
dry_runNotrue: validate and show what would happen without changing anything
webinar_idYesWebinar id (UUID) from list_webinars or create_webinar
idempotency_keyNoAny unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are supplied, and the description carries the full burden well: it explains exactly how each mode is labelled to viewers, the 500-character plain-text limit, the live-only precondition with its error code, the rate limit (30 actions per 10 s, rate_limited), and the critical delivered=false semantics with an explicit do-not-retry instruction.

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 purpose, then modes, constraints, and error semantics in a logical order, with a concrete example at the end. It is dense and a bit run-on, and repeats the max-500 plain-text rule already in the schema, so not perfectly economical.

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?

For a 5-parameter mutation with an output schema, the description covers everything an agent needs to call it safely: preconditions, mode semantics, limits, error codes, and retry behavior. Return shape is covered by the output schema, so nothing material 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 coverage is 100%, so baseline is 3; the description goes beyond it by explaining what 'as' actually changes for viewers (badge and name display) rather than just restating the enum. It adds nothing for dry_run or idempotency_key beyond what the schema already documents, and it redundantly restates the 500-character plain-text limit.

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 ('Post a message in the live chat') and immediately scopes it by the two posting modes, so it is clearly distinguishable from read-side siblings like get_chat_history or pin_message.

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?

Gives a concrete when-to-use rule for the 'host' mode ('only when the user asked to speak for the host') and a hard precondition (webinar must be status live, else error not_live). It does not name an alternative tool for reading chat or for other live actions, which keeps it short of a 5.

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