Skip to main content
Glama
Upload-Post

Upload-Post

Official

Manage the WhatsApp number: blocks, commands, quality, name, PIN, analytics

manage_whatsapp_number
Destructive

Manage a connected WhatsApp Business number: block or unblock users, set chat commands and ice breakers, check quality and status, request display names, change PINs, and view messaging analytics.

Instructions

The profile's WhatsApp Business number. list_blocked (limit, after, before), block_users / unblock_users (users: up to 1,000 phone numbers in international format or WhatsApp user ids; block only reaches people who wrote in the last 24 h; a blocked user cannot write to the number and the number cannot write to them; per-user failures in failed). get_automation / set_automation: the commands (up to 30 { command_name (max 32), command_description (max 256) }, typed as /name in the chat and received as text) and ice breakers (prompts: up to 4 texts offered when someone opens the chat); set replaces the list you send, an empty list clears it. get_number: quality_rating (GREEN, YELLOW, RED), messaging_limit_tier, throughput, verified_name, display name review (name_status, new_display_name, new_name_status), status. request_display_name (display_name; Meta reviews it), apply_display_name (once approved), change_pin (pin: 6 digits, confirm: true; two-step verification cannot be turned off). analytics (type messaging | pricing | templates, start / end in Unix seconds, granularity messaging HALF_HOUR|DAY|MONTH, pricing HALF_HOUR|DAILY|MONTHLY, country_codes, dimensions, metric_types COST|VOLUME, template_ids up to 10 for templates, this_number_only): Meta's figures, live. enable_template_insights (confirm: true): turns template analytics on for the WhatsApp Business account; Meta does not let it be turned off. WhatsApp is available to every account: the profile needs its WhatsApp Business number connected (get_connect_link with platforms ['whatsapp']), otherwise the API answers 400 with how to connect it; 401 whatsapp_reauth_required means reconnect it. Approval: only block_users, request_display_name, apply_display_name, change_pin and enable_template_insights, not the other actions. Each of those needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user what will change, and repeat the call with confirmed: true only after they approve. Every other action runs at once and returns no preview, so check with the user before calling one that changes what they or others see.

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": {
      "action": "<action>",
      "user": "<user>"
    },
    "name": "manage_whatsapp_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoanalytics: Unix seconds.
pinNochange_pin: the new 6-digit PIN.
typeNoanalytics.
userYesUpload-Post profile name with WhatsApp connected.
startNoanalytics: Unix seconds.
usersNoblock_users / unblock_users: phone numbers or WhatsApp user ids.
actionYes
paramsNoOther API fields for this action, with the REST API's own names (snake_case) and shapes. limit, after, before, country_codes, dimensions, metric_types, template_ids, this_number_only. Leave out what you do not want to change.
confirmNochange_pin and enable_template_insights: must be true, after the user approved it.
promptsNoset_automation: ice breaker texts.
commandsNoset_automation: [{ command_name, command_description }].
confirmedNoSet to true only after the user has seen the preview this tool returns for an action that needs approval, and approved it. The other actions run without it.
granularityNoanalytics: see the description.
display_nameNorequest_display_name.

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.0

TDQS

A4.1/5.0
Behavior5/5

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

Much richer than the annotations: it discloses that block only reaches users who wrote in the last 24h, that a block is bidirectional, per-user failures returned in `failed`, that set_automation replaces the list and empty clears it, that two-step verification cannot be turned off once enabled, that Meta review gates apply_display_name, and that enable_template_insights is irreversible. The preview-vs-immediate execution split is exactly the behavioral context destructiveHint alone doesn't provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Everything is packed into a dense, run-on paragraph with semicolons rather than a scannable structure; for an eleven-action tool some enumeration would help. The approval paragraph is duplicated in emphasis and could be tightened, and the metadata/quality details are interleaved with action listings instead of front-loaded.

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 high-complexity, destructive, 14-parameter, multi-action tool, the description covers prerequisites, error codes, approval gating, and per-action limits; an output schema exists so return values needn't be explained. It falls just short of complete because the `params` catch-all bag is only loosely mapped to actions.

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?

With 93% schema coverage the baseline is 3, and the description goes beyond it: it explains the 1,000-number cap and international format for users, the 30-command and 4-ice-breaker limits with name/description lengths, the 6-digit PIN plus confirm flag, granularity values per analytics type, and template_ids cap of 10. Remaining gaps are minor (e.g., what `dimensions` and `metric_types` interact with in the params bag).

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 title and description enumerate eleven specific actions on a WhatsApp Business number — blocking, automation commands/ice breakers, quality rating, display-name review, PIN, analytics, template insights. A verb+resource is clear for the umbrella tool, though the description is action-tabulated rather than stating one overarching purpose, so it's slightly weaker than a crisply focused tool.

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?

Gives explicit prerequisites (WhatsApp Business number must be connected via get_connect_link, 400/401 handling) and, crucially, a precise approval workflow: which five actions need preview-then-confirm versus which run at once and require a pre-check with the user. It does not distinguish from siblings like manage_whatsapp_business or manage_phone_number, so guidance within the tool family remains implicit.

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

Deploy Server

Other Tools