Skip to main content
Glama
mcp-group-chat

mcp-group-chat

get_message

Retrieves a single group-chat message by group, message, and identity token, returning its content, sender, timestamp, and recipients when permitted.

Instructions

查看单条消息内容。

自己发出的消息会包含接收者 ID 列表;他人发出的消息只包含发送者 ID、内容与发送时间。定向消息仅对接收者可见。

Args: group_id: 群组 ID。 token: 本人身份令牌。 message_id: 消息 ID。

Returns: 消息信息。

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

Input Schema

NameRequiredDescriptionDefault
tokenYes
group_idYes
message_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.7/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 well: it discloses the asymmetric payload (own messages include a recipient ID list, others' messages only sender ID, content and send time) and that targeted messages are visible only to recipients. The Raises block adds concrete failure modes, notably MessageNotFoundError covering recalled/cleaned messages and PermissionDeniedError, though it says nothing about read-state side effects or rate limits.

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?

Well front-loaded: the core purpose and the visibility rules come first, followed by conventional Args/Returns/Raises sections that are easy to scan. The Args section largely repeats parameter names with near-tautological glosses, which is minor padding.

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 the description needn't detail return values, and it instead supplies the visibility model and five specific error conditions an agent needs to handle failures. For a 3-parameter read tool this is close to complete; only side effects and pagination/format concerns are absent.

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

Parameters3/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 partially does: token is clarified as the caller's own identity token ('本人身份令牌'), which is more than the bare schema title 'Token'. The glosses for group_id and message_id merely restate the parameter names, leaving the identity-token semantics as the only real addition.

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 '查看单条消息内容' gives a specific verb (view) and a specific resource (a single message), and the qualifier '单条' implicitly separates it from list_messages / recent_messages. It does not explicitly name a sibling to differentiate against, so it falls 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 Guidelines3/5

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

Usage is only implied: the tool retrieves one message by ID, so an agent can infer it should be used after obtaining a message_id. There is no explicit statement of when to prefer this over list_messages or read_messages, and no preconditions beyond the error list.

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