Skip to main content
Glama
mcp-group-chat

mcp-group-chat

update_group

Modify group chat settings as the group owner by submitting only the fields to change; set the announcement to null to clear it.

Instructions

修改群组信息。

只有群主可以操作。只提交需要修改的字段;把 announcement 设为 null 表示清空群公告。

Args: group_id: 群组 ID。 token: 群主身份令牌。 updates: 字段名到新值的映射。可用字段:title、owner_id、 visitor_permissions、allow_join、history_visible、 message_ttl、announcement、lifetime。

Returns: 修改后的群组信息。

Raises: GroupNotFoundError: 群组不存在。 NotGroupOwnerError: 不是群主。 InvalidFieldError: 字段名不存在。 InvalidFieldValueError: 字段值不合法。

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

Input Schema

NameRequiredDescriptionDefault
tokenYes
updatesYes
group_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

No annotations are supplied, so the description carries the full burden and does well: it discloses the authorization requirement, the partial-merge semantics of updates, the null-clears-announcement behavior, and the four error conditions actually raised. It does not say whether changes are reversible, whether mutating owner_id requires extra privileges, or whether members are notified.

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 structure is front-loaded and scannable: purpose, then permission and partial-update rules, then Args/Returns/Raises. The Args restatement of group_id and token largely duplicates the schema, but the updates field enumeration earns its space and nothing is padded.

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 3-parameter mutation tool with a nested updates object and no annotations, it covers purpose, permission, merge semantics, clear-value convention, and failure modes; the presence of an output schema means return values need no further explanation. The remaining gap is value-level semantics for the enumerated fields.

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% and updates is a free-form nested object, so the description must compensate — and it does substantially by enumerating the eight writable keys and the null convention for announcement. It stops short of giving value types or accepted values for visitor_permissions, message_ttl, and lifetime, which the schema does not provide either.

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+resource ("修改群组信息" / modify group info) and the field list (title, visitor_permissions, allow_join, message_ttl, announcement, etc.) makes clear this is group-level configuration, not member-level. It does not explicitly name siblings such as update_member or update_my_member, so the differentiation relies on the resource noun rather than explicit routing.

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?

It states a hard prerequisite ("只有群主可以操作") and a clear partial-update convention ("只提交需要修改的字段"), plus the special null convention for clearing the announcement. It gives no explicit when-to-use-vs-alternative guidance (e.g. when to prefer update_member or update_my_member), so it is strong context but not full routing guidance.

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