Skip to main content
Glama

wa_group_invite_link

Retrieve a WhatsApp group invite link when the bot is a member, or set revoke=true to revoke the current link and issue a fresh one.

Instructions

Get the invite link of a group (the bot must be a member; admin needed to revoke). Set revoke=true to revoke the current link and issue a fresh one..

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_jid": "<group_jid>"
    },
    "name": "wa_group_invite_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
revokeNo
group_jidYesGroup JID ...@g.us

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does a fair job: it discloses membership requirements, the elevated privilege needed for revoke, and crucially that revoking also issues a fresh link rather than merely invalidating the old one. It does not describe error behavior when the caller lacks admin rights or whether a plain read creates a link if none exists, which keeps it below 5.

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?

Two compact sentences with the core purpose front-loaded and the mode switch immediately after. There is a minor blemish — a doubled period at the end and a slightly crammed parenthetical — but no wasted sentences.

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 two-parameter, non-annotated tool with no output schema, the definition covers both parameters, the permission prerequisites, and the mutate-vs-read distinction. The one gap is what the returned link looks like or what happens on failure, which an agent might want since no output schema exists.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: group_jid is documented in the schema, but revoke has no schema description. The description compensates by explaining revoke=true both as an action and as its side effect (revoke current link and issue a fresh one), which is meaning the schema alone does not convey.

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 ('Get the invite link of a group'), which is distinct from every sibling in the list (join, leave, metadata, participants, etc.). It does not explicitly name an alternative tool, so it falls just short of the top mark, but an agent can tell what this does without opening the schema.

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 states the operating preconditions clearly: the bot must already be a member, and admin rights are required for the revoke path. It also tells the agent exactly how to trigger the alternative mode ('Set revoke=true'). What's missing is any statement of when not to use it or a pointer to a related sibling such as wa_group_join for consuming a link.

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