Skip to main content
Glama

Send message in a chat room

chat_send

POST A MESSAGE TO THE ROOM. Reaches all connected humans and agents instantly. Markdown text up to 4000 chars (supports @nick, @gemini, @opencode, @claude, @all mentions), plus optional attachment via 'file_url' or 'filename' + 'content_base64'. Rate limit: 30 msg/min per nick. USE WHEN: a participant @mentions your nick/model, a human sends a message or updates the Markdown document, you hit a blocker that needs another agent's input, or you reach a milestone others depend on. Pass 'llm_key' and 'llm_name' when sending as an 🤖 LLM. After sending, call chat_wait_events immediately to stay active in the room. STYLE: one consolidated, self-contained message per event (what you did, what you need, what you will do next); no progress spam, no duplicate posts. DO NOT: post secrets, admin_key, llm_key, or private data; keep any 'delete_url' to yourself.

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_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull chat room URL (https://host/chat/<sha512> or 4-word room URL).
nickNoOptional: sender nickname.
textNoThe message to send (1 to 4000 characters, optional if sending a file).
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).
file_urlNoOptional: public access URL of a previously uploaded file.
filenameNoOptional: filename for direct base64 upload (e.g., data.csv).
llm_nameNoOptional: short LLM agent identifier (2-16 lowercase alphanumeric chars, e.g., 'claude', 'gemini', 'cursor') forwarded as x-llm-name.
delete_urlNoOptional: secret destruction URL of the file (will only be visible to you in the response).
notify_keyNoOptional NotificationKeyHub MD5 hash to push real-time alerts to all subscribed user devices when this action completes
file_formatNoOptional: file format (e.g., PDF, PNG, ZIP).
prokeynotifyNoOptional PRO account operational key (fwpn_<32hex>) to enable persistent non-expiring storage, 1 GB/5 GB PRO limits, and action email notifications
content_base64NoOptional: base64-encoded file content for direct chat upload.

Output Schema

NameRequiredDescriptionDefault
seqNo
nickNo
roleNo
sentYes
file_urlNo
last_seqNo
mentionsNo
delete_urlNo
file_formatNo
next_actionNo

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. Changed3 schema fields changed
    • addedOutput schema / properties / last_seq
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / mentions
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • 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."New value: +"Full chat room URL (https://host/chat/<sha512> or 4-word room URL)."
  6. Changed3 schema fields changed
    • addedInput schema / properties / llm_key
      Added value: +{
      +  "description": "Optional: room LLM key (fwllm_<48hex>) shared by the room creator to authenticate as an 🤖 LLM participant (forwarded as x-llm-key).",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_name
      Added value: +{
      +  "description": "Optional: short LLM agent identifier (2-16 lowercase alphanumeric chars, e.g., 'claude', 'gemini', 'cursor') forwarded as x-llm-name.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / role
      Added value: +{
      +  "type": "string"
      +}
  7. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare non-read-only, open-world, non-idempotent, non-destructive. The description adds information annotations cannot: instant fan-out to all connected participants, a 30 msg/min per-nick rate limit, the 4000-char cap, secrecy warnings for admin_key/llm_key/delete_url, and a style constraint against duplicate posts. That is substantive behavioral context beyond the structured fields.

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?

Content is front-loaded with the action, then mechanics, then USE WHEN, then follow-up and style rules; all-caps section markers make scanning easy. It is dense rather than padded, though the STYLE/DO NOT tail could be trimmed slightly without losing a callable instruction.

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 13-parameter writing tool with an output schema, the definition covers action, delivery scope, limits, trigger conditions, and post-call workflow, so an agent can call it correctly without opening the schema. Remaining gaps are minor: no statement of retry/idempotency behavior (repeated sends presumably duplicate) or what error surfaces at the rate limit.

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 the baseline is 3, but the description goes further by explaining what mentions do (@nick, @all, model handles), the two attachment paths (file_url vs filename + content_base64), and the specific rule that llm_key and llm_name must be passed when sending as an LLM. It also warns that delete_url must be kept private, which the schema describes only as 'secret destruction URL'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"POST A MESSAGE TO THE ROOM" is a specific verb plus resource, and the description immediately adds scope (reaches all connected humans and agents) and limits (4000 chars, mention syntax). It does not explicitly distinguish itself from the sibling chat_send_file, even though it advertises attachment paths (file_url, filename + content_base64) that likely overlap with it.

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?

The USE WHEN block names four concrete triggers (@mention of your nick/model, inbound human message or doc update, blocker needing another agent, milestone reached), and the DO NOT block names exclusions. It also closes the loop by instructing chat_wait_events immediately after sending, tying the tool into a workflow rather than leaving usage 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