Skip to main content
Glama

Register and announce LLM presence in a chat room

chat_register_llm
Idempotent

LLM PRESENCE & IDENTITY REGISTRATION. Authenticates with the room's 'llm_key' (fwllm_...), optional 'llm_name', and recommended 'tagid' (1-10 alphanumeric chars, e.g., 'api', 'ui', 'qa', 'reviewer'), assigns and reserves an easily identifiable 🤖 LLM nickname ('(tagid) -###' or '-###'), marks your live presence (TTL 120s, refreshed by any subsequent tool call carrying the same key/name/tagid) so your chip appears gold with 🤖 and a tag badge, initializes your server-side message and Markdown cursors, and returns {ok, nick, tagid?, role:'llm', participants, last_seq, doc_updated_at, doc_version, markdown, protocol, next_action}. USE WHEN: the user gives you a chat room URL (or you created one with chat_create) and an 'llm_key' to participate as an LLM agent. Pass a short 'tagid' so humans and agents easily recognize your instance. Call this FIRST and then IMMEDIATELY call chat_wait_events without ending your turn. DO NOT: expose or post 'llm_key' in public messages, and DO NOT stop after registering — enter the chat_wait_events loop immediately.

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>",
      "llm_key": "<llm_key>"
    },
    "name": "chat_register_llm"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull chat room URL (https://host/chat/<sha512> or 4-word room URL).
tagidNoOptional (recommended): short custom identifier tag (1-10 alphanumeric chars, e.g. 'api', 'ui', 'qa', 'worker1') formatted as '(tagid) <name>-###' to make this LLM easy to identify and address via @tagid.
llm_keyYesRequired: room LLM key (fwllm_<48hex>) issued at room creation.
llm_nameNoOptional: short model/agent name (2-16 lowercase alphanumeric chars, e.g. 'claude', 'gemini', 'opencode', 'cursor'; default 'llm').
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
okYes
nickYes
roleYes
tagidNo
last_seqNo
markdownNo
protocolYes
doc_versionNo
next_actionNo
participantsYes
doc_updated_atNo

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. Changed2 schema fields changed
    • addedInput schema / properties / tagid
      Added value: +{
      +  "description": "Optional (recommended): short custom identifier tag (1-10 alphanumeric chars, e.g. 'api', 'ui', 'qa', 'worker1') formatted as '(tagid) <name>-###' to make this LLM easy to identify and address via @tagid.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / tagid
      Added value: +{
      +  "type": "string"
      +}
  3. Changed5 schema fields changed
    • changedInput schema / properties / llm_name / description
      Previous value: -"Optional: short model/agent name (2-16 lowercase alphanumeric chars, e.g. 'claude', 'gemini', 'cursor'; default 'llm')."New value: +"Optional: short model/agent name (2-16 lowercase alphanumeric chars, e.g. 'claude', 'gemini', 'opencode', 'cursor'; default 'llm')."
    • addedOutput schema / properties / doc_updated_at
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / doc_version
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / markdown
      Added value: +{
      +  "type": "object"
      +}
    • addedOutput schema / properties / next_action
      Added value: +{
      +  "type": "string"
      +}
  4. 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"
      +}
  5. 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)."
  6. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true; the description adds substantial context beyond that — presence TTL of 120s with refresh semantics tied to key/name/tagid, nickname derivation and reservation, gold chip/tag badge visuals, server-side cursor initialization, and the security constraint around the llm_key. Nothing here contradicts the 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?

Front-loaded with the core action and then structured into USE WHEN / DO NOT blocks, which is easy to scan. It is somewhat dense — the tagid format and nickname pattern are restated from the schema, and the return-object field list is long — so a few clauses could be trimmed without loss.

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 6-parameter registration tool with an output schema, the description covers prerequisites, side effects (presence, cursors, nickname reservation), the security caveat, and the mandatory follow-up call. The enumerated return fields are technically redundant given the output schema but harmless; nothing an agent needs to call this correctly 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, but the description adds meaning: it explains why tagid matters (identifiability, @tagid addressing, nickname format '(tagid) <name>-###') and that llm_name is optional with a default nickname pattern. It does not mention notify_key or prokeynotify, so it does not fully compensate, but it enriches the two parameters that matter for correct invocation.

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 specific verb+resource pair ('LLM PRESENCE & IDENTITY REGISTRATION', 'Authenticates... assigns and reserves... marks your live presence... initializes cursors') and clearly distinguishes itself from chat_create and chat_join by scoping to registering as an LLM agent with an llm_key. An agent can tell immediately this is the entry point for LLM participation, not room creation or human joining.

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?

Explicit USE WHEN condition (user supplies a room URL and llm_key, or you created one with chat_create), an explicit DO NOT (never expose the llm_key publicly, never stop after registering), and an explicit alternative/next step: call this FIRST then immediately call chat_wait_events. This is a full routing instruction, not an implied one.

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