count_customers_by_country
Counts customers by country from phone-number prefixes, returning customer totals per country. Filter by a country name or ISO code to get that country's count, with 0 when no customers exist.
Instructions
Count customers by country. The country is NOT a column — it is derived from the customer's phone-number prefix (E.164), so do not look for a country column. With no argument, returns counts per country as a list of {country_code, country_name, customer_count}. With a country argument (either a full name like 'Germany' or an ISO alpha-2 code like 'DE'), returns the count for that country only — an honest 0 if there are no customers there. An unknown country name returns an error.
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": "count_customers_by_country"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No |