List the organization's WhatsApp numbers
list_numbersList every WhatsApp number this organization has, with its status.
Start here when you do not know which aliases exist. The main number is
always main; extras carry the alias the customer chose, and that alias
is what every other tool's number_alias expects.
Each number also carries id (num_…), which never changes, even when
the alias is renamed. Keep it if you need to recognise a number later:
events carry the same value as number_id, and the other tools accept
either one as number_alias. To find the numbers that need attention,
pass status, for example disconnected.
Only connected numbers can send. status.at is when the number
entered its current state, which is how you tell a fresh disconnection
from one that has been down for hours.
When the organization has no number at all, or none that is linked yet
(every one is pending, failed or revoked), the answer carries
next_step: the link where the person links their number, and one
sentence to tell them. A list filtered by status never carries it.
No tool links a number.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_numbers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Only numbers currently in this status, for example `disconnected` to find the numbers that need attention. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||