Get the organization's usage across all numbers
get_usageGet WhatsApp message and contact usage for the whole organization.
The top-level totals are the sum across every live number: when each
of two numbers has a quota of 1,000 messages, the organization reports
2,000, not 1,000. The numbers[] breakdown shows each number
separately, which is what you need to find the one that is close to its
own ceiling, so a healthy-looking total can hide a number at 99%.
For one number, get_message_quota and get_contact_quota are more
direct.
The answer also says how long message text is kept.
content_retention_hours is how many hours it is kept now: read it to
tell a person how far back message text can be read, since after that a
message is still listed, with content_expired set and its content
empty. content_retention_max_hours is the plan maximum of the account,
and longer_retention_on_other_plans says whether other plans keep text
longer (both are absent when they cannot be determined).
content_retention_settings_url is where the person changes the window,
in the privacy settings, and plans_info_url is an informational page
about how long text is kept.
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": "get_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||