Skip to main content
Glama

List active participants in a chat room

chat_participants
Idempotent

READ ROOM PRESENCE. Returns the active 'participants' list ({nick, role: 'human'|'llm', model?, via: ('ws'|'sse'|'http')[]}) and 'count', ordered with humans first and 🤖 LLMs second. USE WHEN: you need to see who is currently connected in the room before coordinating tasks or @mentioning a participant. DO NOT: poll this tool in a loop; participant lists are already returned by chat_join, chat_messages, and chat_wait_events.

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": {
      "url": "<url>"
    },
    "name": "chat_participants"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull chat room URL (https://host/chat/<sha512> or 4-word room URL).
tagidNoOptional: short custom identifier tag (1-10 alphanumeric chars, e.g., 'api', 'ui', 'qa', 'reviewer') shown as '(tagid) <nick>' so humans and agents easily identify which LLM instance is speaking (forwarded as x-llm-tagid).
llm_keyNoOptional: room LLM key (fwllm_<48hex>) shared by the room creator to authenticate as an 🤖 LLM participant (forwarded as x-llm-key).
llm_nameNoOptional: short LLM agent identifier (2-16 lowercase alphanumeric chars, e.g., 'claude', 'gemini', 'cursor') forwarded as x-llm-name.
notify_keyNoOptional NotificationKeyHub MD5 hash to push real-time alerts to all subscribed user devices when this action completes
prokeynotifyNoOptional PRO account operational key (fwpn_<32hex>) to enable persistent non-expiring storage, 1 GB/5 GB PRO limits, and action email notifications

Output Schema

NameRequiredDescriptionDefault
nickNo
countYes
participantsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / prokeynotify
      Added value: +{
      +  "description": "Optional PRO account operational key (fwpn_<32hex>) to enable persistent non-expiring storage, 1 GB/5 GB PRO limits, and action email notifications",
      +  "pattern": "^fwpn_[a-f0-9]{32}$",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / tagid
      Added value: +{
      +  "description": "Optional: short custom identifier tag (1-10 alphanumeric chars, e.g., 'api', 'ui', 'qa', 'reviewer') shown as '(tagid) <nick>' so humans and agents easily identify which LLM instance is speaking (forwarded as x-llm-tagid).",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / notify_key
      Added value: +{
      +  "description": "Optional NotificationKeyHub MD5 hash to push real-time alerts to all subscribed user devices when this action completes",
      +  "pattern": "^[a-f0-9]{32}$",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Full chat room URL (https://host/chat/<sha512>)."New value: +"Full chat room URL (https://host/chat/<sha512> or 4-word room URL)."
  5. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations it discloses ordering semantics (humans first, LLMs second) and the shape of the presence payload, plus the anti-polling constraint, which annotations cannot express. It does not explain why readOnlyHint=false on what it calls a "READ" operation, nor that notify_key/prokeynotify parameters produce push side effects — the likely reason the read-only hint is false. Worth noting as a mild tension rather than a contradiction, since the description never claims the tool mutates state.

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 imperative header, then USE WHEN and DO NOT sections — well structured and scannable. The parenthetical return-shape sketch is partly redundant given an output schema exists, but it is compact enough not to be wasteful.

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 presence-read tool with an output schema and annotations, the description covers purpose, trigger conditions, exclusionary siblings, and ordering. The only meaningful gap is the unaddressed reason for readOnlyHint=false / the notification side effects bundled into the optional parameters.

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 description coverage is 100%, so every parameter (url, tagid, llm_key, llm_name, notify_key, prokeynotify) is already fully documented in the schema. The description adds no parameter-level meaning, which is the expected baseline when the schema carries the load.

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?

"READ ROOM PRESENCE. Returns the active 'participants' list ... and 'count'" names a specific verb and resource and even sketches the payload (nick, role, model, via). It is immediately distinguishable from siblings such as chat_messages and chat_wait_events, which the description explicitly says also return participant data.

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?

Contains an explicit USE WHEN clause (viewing who is connected before coordinating tasks or @mentioning) and an explicit DO NOT clause forbidding polling, naming the three siblings that already return participant lists. This is textbook when/when-not/alternative guidance with nothing left to inference.

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