Skip to main content
Glama

Live: pin chat message

pin_message
Idempotent

Pin a chat message above the chat for everyone during a live webinar, or unpin it by passing a null event_id. Use it to highlight your own announcement after posting it.

Instructions

Pin one chat message above the chat for everyone (replaces the pinned one), or unpin with event_id null. event_id is the id of a chat.message from watch_live or get_chat_history; hidden messages cannot be pinned. Tip: post_chat first, then pin its id to pin your own announcement. 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, event_id: 1287}

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

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue: validate and show what would happen without changing anything
event_idYesChat message id to pin, or null to unpin
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.8/5.0
Behavior5/5

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

Annotations only declare idempotentHint=true, yet the description discloses replacement semantics, the live-only gate with its error code, rate limiting (30 actions per 10 s, rate_limited), and the subtle 'delivered false' partial-success state with explicit advice not to retry. That is exactly the operational detail annotations cannot carry.

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-loads the core action, then layers constraints, failure modes, and an example in a compact block. It is dense with parenthetical error codes but nearly every clause adds actionable information; a slight loss for cramming rate-limit and error codes into one long sentence.

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?

A mutation tool with an output schema and full param coverage needs failure semantics and preconditions, both of which are provided (not_live, rate_limited, delivered false). Nothing an agent needs before calling is missing; return-value shape is correctly left to the output schema.

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 adds provenance for event_id ('the id of a chat.message from watch_live or get_chat_history') and a worked example showing the pair. It does not mention idempotency_key or dry_run, which the schema already explains, so it stops short of a 5.

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 ('Pin one chat message above the chat for everyone') and covers the inverse operation ('unpin with event_id null'). The replacement behavior ('replaces the pinned one') distinguishes it from anything additive, and it names the siblings that produce valid ids (watch_live, get_chat_history, post_chat).

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 preconditions ('Only while the webinar is live (status live); otherwise error not_live'), a workflow recommendation ('post_chat first, then pin its id'), and a negative rule ('hidden messages cannot be pinned', 'do not retry' on delivered false). The agent knows when to call, when not to, and what to do on failure.

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