Skip to main content
Glama

wariwari

Leave a group

leave_group
Destructive

Use this to remove a group from the user's list and unlink them from their member, which stays as a guest. The group and its expenses stay for everyone else. The last admin of a private or view-only group can't leave.

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": {
      "groupToken": "<groupToken>"
    },
    "name": "leave_group"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / groupToken / description
      Added value: +"The group's token, from `listGroups` or `listSearchResults`."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations flag destructiveHint=true, and the description usefully narrows that: only the user's membership link is destroyed, the member survives as a guest, and the group plus its expenses persist for others. This resolves the main ambiguity of a destructive flag. It does not address reversibility/rejoining or what happens to the leaving user's balances.

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?

Three short sentences, each carrying unique information: the action, the data-retention consequence, and the blocking condition. The most important scoping fact is front-loaded, and nothing is repeated from the schema or annotations.

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 one-parameter mutation tool with annotations and no output schema, this covers purpose, effect on other members, and the one failure case. Remaining gaps (reversibility, effect on the leaver's balances, whether a confirmation is returned) are minor for this level of complexity.

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?

There is a single parameter and the schema already documents it at 100% coverage, including where to obtain the token (listGroups / listSearchResults). The description adds no further meaning about groupToken, so the baseline of 3 for fully covered schemas applies.

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 names a specific verb and resource (remove a group from the user's list, unlink the member) and immediately clarifies a key distinction from a true deletion: 'The group and its expenses stay for everyone else.' That makes it distinguishable from siblings like delete_group without opening the schema, though it does not name the contrast explicitly.

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 gives a clear context for use (removing a group from the user's own list, as opposed to removing the group itself) and states a blocking precondition: the last admin of a private or view-only group can't leave. It stops short of naming alternatives such as archive_group or delete_group, leaving the agent to infer which sibling to prefer.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources