get_phone_numbers
Retrieve all registered phone numbers for a WhatsApp Business Account, including quality ratings and messaging limits, to manage communication capabilities.
Instructions
List all phone numbers registered on this WhatsApp Business Account, including quality rating and messaging limits.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/whatsapp-client.ts:242-244 (handler)The actual implementation of the getPhoneNumbers logic which makes a request to the WhatsApp API.
async getPhoneNumbers() { return this.request(`/${this.config.businessAccountId}/phone_numbers`); } - src/index.ts:333-339 (registration)The registration of the 'get_phone_numbers' MCP tool.
server.tool( "get_phone_numbers", "List all phone numbers registered on this WhatsApp Business Account, including quality rating and messaging limits.", {}, async () => executeWithHooks("get_phone_numbers", {}, config, () => wa.getPhoneNumbers()) );