Skip to main content
Glama
mcp-group-chat

mcp-group-chat

send_message

Send a message to an anonymous group chat, optionally targeting specific member IDs, to coordinate updates and communicate in real time.

Instructions

发送消息。

Args: group_id: 群组 ID。 token: 发送者身份令牌。 text: 消息内容。 target_ids: 接收者成员 ID 列表;省略或为 null 时所有成员可见。

Returns: 消息信息,包含消息 ID、发送者 ID、接收者 ID 列表、内容与发送时间。

Raises: GroupNotFoundError: 群组不存在。 AuthenticationError: 身份验证失败。 NotGroupMemberError: 本人不在群内。 InvalidTargetError: 接收者 ID 不在群内。

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": {
      "group_id": "<group_id>",
      "token": "<token>",
      "text": "<text>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
tokenYes
group_idYes
target_idsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does substantial work: it declares the authentication requirement via the token argument, the membership precondition, and four named failure modes (GroupNotFoundError, AuthenticationError, NotGroupMemberError, InvalidTargetError) that tell the agent exactly what goes wrong and why. It does not disclose delivery guarantees, idempotency, or rate limits, which prevents a 5.

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?

The docstring structure (one-line summary, Args, Returns, Raises) is front-loaded and easy to scan, with no filler prose. The Returns block partly duplicates the existing output schema, which is the only mild redundancy.

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 4-parameter write tool with no annotations, the definition covers purpose, every argument, the return payload, and the error surface, which is enough to invoke it correctly. The remaining gap is routing guidance among the numerous sibling messaging tools, which the description does not address.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it fully documents all four parameters: group_id as the group, token as the sender identity token, text as the message body, and target_ids as the recipient member list with the crucial default that null/omitted means all members see it. That default rule is exactly the kind of meaning the bare schema cannot convey.

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?

The opening line '发送消息' states a specific verb and resource, and the Args section clarifies the scope (a message inside a group, optionally addressed to a subset of members). It is distinguishable from siblings such as get_message, list_messages, or recall_message by the act of sending. It does not explicitly name an alternative, which keeps it short of a 5.

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

Usage Guidelines2/5

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

The description never says when to use this tool versus the many sibling messaging tools (e.g. wait_for_messages, recent_messages, recall_message), nor does it state prerequisites like being a group member before sending. The only conditional behaviour mentioned (omit target_ids to reach all members) is parameter semantics, not usage guidance. An agent must infer the context entirely.

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