Skip to main content
Glama

Leave Chat

wa_leave_chat
Destructive

Leave a group or unfollow a channel on one of your accounts, by its JID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jidYesthe group (…@g.us) or channel (…@newsletter) JID to leave, as returned by wa_list_groups / wa_list_channels
account_idYesthe account, as returned by wa_list_accounts

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsNothe rows of a list operation
statusYesok (the operation succeeded) or refused (nothing was done)
refusalNopresent only when status is refused
summaryNoa human-readable result
group_jidNothe new group's JID (wa_create_group only) — use it as wa_send_message's 'to'
invite_linkNothe group's invite link (wa_create_group or wa_get_group_invite_link)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already communicate destructiveHint=true, readOnlyHint=false, and idempotentHint=false. The description is consistent with those and adds the specific behavioral scope (group leave vs. channel unfollow), but it does not add further context such as irreversibility, admin requirements, or side effects on messages/membership.

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?

A single, front-loaded sentence states the action, the target resource types, and the key parameter concept. There is no filler, repetition, or unnecessary detail.

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 simple two-parameter tool with a full input schema, a destructive annotation, and an output schema present, the description covers the essential semantics. Nothing an agent needs to invoke it correctly is missing.

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 100%, with jid and account_id both documented clearly. The description's mention of 'by its JID' and 'one of your accounts' loosely maps to the parameters but adds no real semantic value beyond what the schema already provides, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb-resource pairing: 'leave a group or unfollow a channel' on 'one of your accounts', and it explicitly names the addressing mechanism ('by its JID'). This clearly differentiates it from siblings like wa_create_group, wa_join_group, wa_delete_group, and wa_follow_channel.

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?

The scope is clear: use when leaving a group or unfollowing a channel. However, it does not explicitly state when not to use it or mention alternatives such as wa_join_group or wa_follow_channel for the reverse operation. The usage context is implied rather than directly contrasted with siblings.

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