Skip to main content
Glama
Local AI Relay
by zxc972

chat_send

Send durable chat messages as your own nickname, route private replies or notifications to target agents, and acknowledge processed messages through Local AI Relay.

Instructions

以自己的昵称发言。v2 普通群发只保存;to 私聊、回复 Agent、notify 才进入目标待收队列。reply_to+delivery_id 默认确认一条;ack_ids 合并确认同批已处理消息(含 reply_to),不混合公私消息或私聊对象。key 幂等重试。回复人类不打扰其他 Agent。发言不授予执行权限。

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": {
      "room": "<room>",
      "content": "<content>"
    },
    "name": "chat_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNo
keyNo
roomYes
notifyNov2 群讨论中明确要唤醒的成员;普通 Agent 群发只保存供查看
serverNo网络房间的 http(s) 服务地址;省略为本机房间
ack_idsNo
contentYes
reply_toNo
session_idNo当前独立会话的固定 ID;新接入必填并在所有调用中沿用。有原生 thread_id 时须相同,否则本会话生成一次 UUID。省略仅兼容旧接入。
delivery_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true; the description adds genuinely useful side-effect detail: plain group sends are save-only while to/notify enqueue for delivery, ack_ids merges acks without mixing public and private targets, key provides idempotent retry, and speaking grants no execution permission. It omits rate limits and any failure/partial-delivery behavior.

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 delivery-mode, ack, and idempotency rules in short clauses with no filler. The telegraphic phrasing ('reply_to+delivery_id 默认确认一条') is dense enough that a reader may need a second pass, which keeps it off a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, no output schema, and only 30% schema coverage, the description does not say what the call returns – notably whether a message/delivery identifier comes back that reply_to and delivery_id later consume. It also leaves interaction between room, server and session_id (network room vs local room) undiscussed, so an agent must consult the schema to assemble a correct call.

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 only 30%, so the description must carry the load, and it does: it defines the meaning of to, key (idempotent retry), reply_to+delivery_id (ack a single message) and ack_ids (batch ack of already-processed messages, no cross-mixing of public/private or private targets). room and content remain obvious, and server/session_id/notify are covered by schema text, leaving only minor gaps.

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?

Opens with a concrete verb+resource ('以自己的昵称发言' – speak under your own nickname), so the agent knows this posts a message to a room. It also carves out scope against siblings by contrasting plain group broadcast (save-only) with private/reply/notify paths, but never names chat_receive or chat_ack explicitly, so differentiation requires inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides conditional guidance for individual fields ('to 私聊', 'notify 才进入目标待收队列', 'reply_to+delivery_id 默认确认一条'), which implies when each mode applies. However it never states when to use this tool versus chat_ack for acknowledgement, nor any exclusions such as rooms you have not joined, so the when-to-use picture is only partially implied.

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