Buy a phone number
buy_numberBuy a new phone number for this account. With no parameters it assigns any free Prague number; with a region parameter ("praha", "brno", "internet", "moravskoslezsky", "plzensky", "stredocesky", "ustecky", "jihocesky", "olomoucky", "zlinsky", "kralovehradecky", "pardubicky", "vysocina", "liberecky", "karlovarsky", "bratislava") a number from that offer; with an e164 parameter a specific number from search_available_numbers. Deducts the number's monthly fee from the credit balance - the fee charged is monthlyFeeHal * billingMonths (billingMonths is 1 for Czech numbers, 3 for Bratislava). For a number at the customer's own premises address, or from a sold-out region, use order_number_from_region instead. An account that has never topped up may hold one number from the welcome credit (an open order counts too): buying another one returns insufficient_credit until the first credit top-up. When this fails with pool_empty (the offer is sold out), use join_number_waitlist instead of retrying - it e-mails the account once a number becomes available. Same data as POST /v1/numbers (response schema in /openapi.json).
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": "buy_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| e164 | No | Specific phone number in E.164 format to buy, as returned by search_available_numbers. Omit together with region to buy any free Prague number. | |
| region | No | Which regional offer to buy from: praha, brno, internet, moravskoslezsky, plzensky, stredocesky, ustecky, jihocesky, olomoucky, zlinsky, kralovehradecky, pardubicky, vysocina, liberecky, karlovarsky, bratislava. Omit together with e164 for any free Prague number. |