Skip to main content
Glama
mcp-group-chat

mcp-group-chat

remove_member

Removes a member from a group chat, allowing self-exit or owner-initiated removal. Transfers ownership when the owner leaves and dissolves the group if empty.

Instructions

将成员移出群组。

本人可以移出自己(即退出群组);群主可以移出其他成员。群主退群 时群主权限会转移给剩余成员,若群内再无成员则群组自动解散。

Args: group_id: 群组 ID。 token: 本人身份令牌。 member_id: 要移出的成员 ID。

Raises: GroupNotFoundError: 群组不存在。 MemberNotFoundError: 目标成员不在群内。 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>",
      "member_id": "<member_id>"
    },
    "name": "remove_member"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
group_idYes
member_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 at all, the description carries the full burden and does substantial work: it discloses that owner departure transfers ownership to a remaining member and that the group auto-dissolves when empty, plus three named failure modes. It omits reversibility, idempotency, and whether the removed member is notified, so it is strong but not complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and permission rules, then structured into Args and Raises blocks with no filler. Every line carries information an agent would otherwise have to guess.

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 return values need no prose, and the description covers the authorization model, cascade side effects, and error cases. The main residual gap is the unaddressed relationship to leave_group/dissolve_group siblings.

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 does name all three parameters with a one-line gloss each (group ID, identity token, target member ID). The glosses are shallow, though: nothing on token acquisition/validity or on ID format, so it adds only modest meaning beyond the property names.

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 description opens with a specific verb+resource ('将成员移出群组') and then qualifies the two authorization paths (self-removal vs. owner-removal). It never names the sibling that overlaps most, leave_group, even though self-removal is described as '退出群组', so an agent has to infer which tool to use for that case.

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?

It clearly states the caller-permission conditions under which the tool may be invoked (self, or owner acting on others), which is real usage context. However, it offers no explicit routing to alternatives such as leave_group for self-exit or dissolve_group for emptying a group, leaving the agent to resolve the overlap itself.

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