Skip to main content
Glama
mcp-group-chat

mcp-group-chat

read_messages

Fetches details for multiple group-chat messages by ID in one call, returning them in the requested order and failing if any message is missing or inaccessible.

Instructions

批量读取消息内容。

按传入顺序返回每条消息的详细信息。若其中任意一条消息不存在或 无权查看,则整体调用失败。

Args: group_id: 群组 ID。 token: 本人身份令牌。 message_ids: 要读取的消息 ID 列表。

Returns: 消息信息列表,顺序与 message_ids 一致。

Raises: GroupNotFoundError: 群组不存在。 AuthenticationError: 身份验证失败。 NotGroupMemberError: 本人不在群内。 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_ids": "<message_ids>"
    },
    "name": "read_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
group_idYes
message_idsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a key trait beyond the schema: the call is all-or-nothing, and it enumerates five concrete error conditions including message recall/cleanup. It does not cover rate limits, pagination, or size limits on message_ids.

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 one-line purpose, then structured into Args/Returns/Raises sections that are easy to scan. The Returns section partly restates what the output schema already provides, which is the only redundancy.

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 three-required-parameter read tool with no annotations, the definition covers the atomic failure mode, every error condition, parameter meaning, and output ordering. Since an output schema exists, the description need not explain return values further, and nothing an agent needs to call it 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 description coverage is 0%, so the Args block is essential and it documents all three parameters, notably that token is the caller's own identity token and that message_ids is an ordered list whose order governs the result order. It adds meaning the bare schema cannot, though it gives no format hints for the IDs.

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 first line states a specific verb+resource ('批量读取消息内容' – batch read message contents) and the body clarifies it returns full details per message in the order supplied. The word '批量' implicitly contrasts with single-message siblings like get_message, but no sibling is named explicitly.

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?

Usage context is implied by the batch semantics and the fail-fast note, which tells the agent this is not a best-effort/partial read. However, it never says when to prefer this over get_message, list_messages, or recent_messages, nor when to avoid batching.

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