Skip to main content
Glama
mcp-group-chat

mcp-group-chat

recall_message

Recalls a message in a group chat, allowing only the original sender to withdraw it using the group ID, sender token, and message ID.

Instructions

撤回消息。

只有消息发送者本人可以撤回。

Args: group_id: 群组 ID。 token: 发送者身份令牌。 message_id: 要撤回的消息 ID。

Raises: GroupNotFoundError: 群组不存在。 AuthenticationError: 身份验证失败。 MessageNotFoundError: 消息不存在或已被撤回。 PermissionDeniedError: 不是本人发出的消息。

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>",
      "message_id": "<message_id>"
    },
    "name": "recall_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
group_idYes
message_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4/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 does so reasonably: it enumerates four failure modes, including the important case that a message may already be recalled (MessageNotFoundError) and that non-senders get PermissionDeniedError. It omits whether recall is reversible, whether a time limit applies, and what other members see afterwards.

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 core rule is front-loaded in the first two lines, followed by compact Args and Raises blocks. Every line carries information, though the docstring-style structure is slightly more verbose than a single tight paragraph would be.

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?

An output schema exists, so return values need not be described, and the description covers the permission rule, all three parameters, and the error surface. The main gap for a mutation tool with no annotations is the absence of any note on irreversibility or recall time limits.

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 0% — the schema only has bare titles like "Token" and "Group Id". The description compensates by defining each parameter's role: group_id identifies the group, token is the sender's identity credential, message_id is the message to recall. The sender-identity meaning of token is genuinely added information.

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?

"撤回消息" gives a specific verb (recall) and resource (message), which is clearly distinct from send_message, get_message, and list_messages in the sibling set. It does not explicitly name a sibling or boundary case, so it stops short of the top band.

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

Usage Guidelines4/5

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

The second line states a hard precondition: only the message's original sender may recall it. That is a real usage gate an agent can check before calling. There is no mention of alternatives (e.g., deleting via another tool) or a recall time window, so it is context-rich but not complete.

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