list_countries
Discover available countries for SMS verification to identify valid country codes before purchasing virtual phone numbers.
Instructions
Get all available countries for SMS verification. Use this to discover valid country codes before buying a number.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | No | Filter countries available for a specific service (optional) |
Implementation Reference
- src/tools.ts:387-396 (handler)The handler function that executes the 'list_countries' tool logic.
export async function handleListCountries(client: VirtualSMSClient) { const countries = await client.listCountries(); return { content: [ { type: 'text' as const, text: JSON.stringify(countries, null, 2), }, ], }; - src/tools.ts:79-87 (registration)The MCP tool registration definition for 'list_countries'.
}, { name: 'list_countries', title: 'List Available Countries', description: 'Get all available countries for SMS verification. ' + 'Use this to discover valid country codes before buying a number.', inputSchema: { type: 'object' as const,