Skip to main content
Glama
mcp-group-chat

mcp-group-chat

update_member

Updates your own nickname in a group chat using your member ID and token; attempts to edit other members are rejected.

Instructions

修改群成员信息。

目前后端仅支持修改昵称,且只有本人可以修改自己的信息。

Args: group_id: 群组 ID。 token: 本人身份令牌。 member_id: 要修改的成员 ID。 updates: 字段名到新值的映射,目前仅支持 {"name": "新昵称"}。

Returns: 修改后的成员信息。

Raises: GroupNotFoundError: 群组不存在。 NotGroupMemberError: 本人不在群内。 NotSelfError: 试图修改其他成员。 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>",
      "member_id": "<member_id>",
      "updates": "<updates>"
    },
    "name": "update_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
updatesYes
group_idYes
member_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the current backend limitation (nickname only), the authorization constraint (self only, via the caller's own token), the return value, and five distinct named error conditions including NotSelfError and InvalidFieldValueError. That is exactly the behavioral context an agent needs to avoid predictable failures on a mutation tool.

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 constraints are front-loaded in the opening two sentences, ahead of the mechanical Args/Returns/Raises blocks. The structure is conventional and scannable; the Args section slightly duplicates the constraint already stated above, but no sentence is wasted.

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 four-parameter mutation tool with a nested object, zero schema coverage and no annotations, this covers purpose, constraints, parameter meaning, return value and failure modes. An output schema exists, so the Returns line is a bonus rather than a necessity, and nothing needed to invoke the tool correctly is missing.

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

Parameters5/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 entirely, and it does: each of the four parameters is explained, including that token is the caller's own identity token and that updates is a field-name-to-value map with the only valid form {"name": "新昵称"}. The nested object shape, otherwise undocumented in the schema, is fully 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?

The first line states a specific verb and resource ('修改群成员信息'), and the second sentence narrows it to nickname-only, self-only edits. That is much more precise than the tool name alone, but it never distinguishes this tool from the sibling update_my_member, which on the stated constraint looks functionally identical.

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 description gives a clear 'when-not' in the form of hard constraints: only the nickname field is supported and only the caller may modify themselves. An agent can therefore predict rejection before calling. It stops short of naming update_my_member as the preferred alternative for self-edits, so routing between the two siblings is left to inference.

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