Skip to main content
Glama
mcp-group-chat

mcp-group-chat

get_announcement

Fetch a group announcement by group ID and identity token so agents can read current notices or confirm no announcement is visible.

Instructions

查看群公告。

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

Returns: 群公告文本;公告为空或当前身份看不到公告时返回 None。

Raises: GroupNotFoundError: 群组不存在。

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

Input Schema

NameRequiredDescriptionDefault
tokenYes
group_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

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 does disclose meaningful behavior: it returns the announcement text, returns None when the announcement is empty or invisible to the current identity (an important permission-dependent edge case), and raises GroupNotFoundError for a missing group. It does not mention rate limits or whether the announcement is ever partially visible.

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 one-line purpose is front-loaded, followed by compact Args/Returns/Raises sections that each carry distinct information. Nothing is redundant, though the structured header formatting is slightly heavier than necessary for only two parameters.

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 two-parameter read tool with an output schema already defining the return shape, the description covers the purpose, both parameters, the None case, and the error case. The only remaining gap is membership/permission prerequisites for calling it.

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 description must compensate, and it does: group_id is identified as the group identifier and token as the caller's own identity token, which conveys that it must be the requester's credential rather than an arbitrary token. The type/format of the token is still not specified.

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?

"查看群公告" names a specific verb (view) and resource (group announcement), so the agent knows exactly what the tool retrieves. No sibling in the catalog covers announcements, so no disambiguation is needed, though the description never explicitly states that it is the only announcement reader.

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?

The usage context is implied by the purpose line and the group_id parameter: use it when you need a group's announcement. There is no explicit when-to-use/when-not-to-use guidance and no mention of prerequisites such as needing to already be a group member.

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