Skip to main content
Glama
mcp-group-chat

mcp-group-chat

leave_group

Leave a group chat by removing your own membership; if you are the owner, transfer ownership to remaining members, or dissolve the group when no members remain.

Instructions

退出群组。

先查询自己的成员信息,再把自己移出群组。群主退群时群主权限会 自动转移给剩余成员;如果群内再无成员,群组会自动解散。

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

Raises: GroupNotFoundError: 群组不存在。 NotGroupMemberError: 本人不在群内。

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": "leave_group"
  }
}

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.7/5.0
Behavior4/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 disclose real side effects: owner privileges transfer to remaining members, and the group auto-dissolves when the last member leaves. It also enumerates failure modes (GroupNotFoundError, NotGroupMemberError). It does not say whether the action is reversible, whether re-joining is possible, or what happens to the leaver's messages.

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 action and its consequences are front-loaded, and the Args/Raises sections are compact and scannable with no filler. Slight redundancy between the opening line and "把自己移出群组" is the only waste.

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 not be explained, and the description covers side effects and error cases well for a two-parameter mutation. The remaining gap is permission context — whether any member can leave or only under certain conditions — which matters for a destructive self-removal operation.

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

Parameters2/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 supply parameter meaning, but it only restates the parameter names ("群组 ID", "本人身份令牌"). It adds no format, sourcing, or scope detail — e.g. where group_id comes from or what the token authorizes — so an agent gains almost nothing beyond the schema keys.

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 clarifies scope with "把自己移出群组", which implicitly separates it from a member-removal tool that acts on other users. It never names a sibling explicitly, so an agent must infer the boundary rather than being told it.

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 prescribes a concrete prerequisite workflow — query your own membership first, then remove yourself — which is actionable guidance an agent can follow. It stops short of stating when NOT to use it or naming alternatives such as a group-dissolution tool.

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