Skip to main content
Glama

Set Group Locked

wa_set_group_locked

Restrict a WhatsApp group's settings (name/description/photo) to admins only (enabled=true) or let every member change them (enabled=false).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
enabledYesthe new value for this setting
group_jidYesthe group (…@g.us) JID, as returned by wa_list_groups
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

A4.3/5.0
Behavior4/5

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

The annotations already indicate this is a non-read-only, non-destructive mutation. The description adds useful behavioral context by defining what enabled=true and enabled=false actually do to the group settings. It doesn't discuss permissions or side effects, but the disclosed behavior goes beyond what annotations and schema provide.

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, well-structured sentence that front-loads the action and includes every essential behavioral detail without filler. It is compact yet informative, earning its place with no redundancy.

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?

This is a simple three-parameter toggle operation; the description, combined with fully documented schema parameters and an output schema, gives an agent everything needed to invoke it correctly. Nothing important is missing for this level of complexity.

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 100%, so the baseline is 3. The description adds extra semantic value by explicitly mapping enabled=true to 'admins only' and enabled=false to 'every member,' which is more meaningful than the schema's generic 'the new value for this setting.'

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 names a specific verb ('Restrict') and a precise resource ('a WhatsApp group's settings'), and clarifies exactly which settings are affected: name, description, and photo. This cleanly differentiates it from sibling tools like wa_set_group_name or wa_set_group_description, which mutate individual fields rather than lock them.

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 description implies when to use the tool: when an agent wants to toggle whether group settings are admin-only or open to all members. However, it does not explicitly name alternative tools or state when not to use it, so the usage guidance is inferred rather than explicit.

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