Manage the WhatsApp number: blocks, commands, quality, name, PIN, analytics
manage_whatsapp_numberManage 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
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | analytics: Unix seconds. | |
| pin | No | change_pin: the new 6-digit PIN. | |
| type | No | analytics. | |
| user | Yes | Upload-Post profile name with WhatsApp connected. | |
| start | No | analytics: Unix seconds. | |
| users | No | block_users / unblock_users: phone numbers or WhatsApp user ids. | |
| action | Yes | ||
| params | No | Other 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. | |
| confirm | No | change_pin and enable_template_insights: must be true, after the user approved it. | |
| prompts | No | set_automation: ice breaker texts. | |
| commands | No | set_automation: [{ command_name, command_description }]. | |
| confirmed | No | Set 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. | |
| granularity | No | analytics: see the description. | |
| display_name | No | request_display_name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |