Order a calls and SMS number
order_voice_sms_numberOrder a calls and SMS number for this account: by default a Prague landline (+420 2xx) that makes and receives calls and sends and receives SMS, both directions. With country set to another country from list_voice_sms_countries you get a number in another country instead: it handles calls only, no SMS in or out, and the agent calls out from it only to the country of the number and to Czechia: to Czech numbers always, to its own country only once enabled for that country (see capabilities.outboundTo of the number); tell the user this and the number's kind before ordering. Call list_voice_sms_countries first and never offer or pass a country that is not in it; a country outside the offer returns country_not_offered (HTTP 400) and nothing is charged. If the country lists areas, ask the user which city they want and pass its id as area; without area you get the first one in the list. The number itself is assigned automatically from the operator's stock and cannot be chosen, so do not ask the user for a specific one. A Prague number is not active right away: it becomes active after registration with the operator, usually within 1 business day (at most 48 hours). A number in another country taken from volai's stock of pre-registered numbers is active right away; otherwise it becomes active within an hour where the country needs no registration, or usually within 1 business day and at most 3 business days (list_voice_sms_countries shows the activation of each country). Until it turns active, the number shows status awaiting_registration (poll list_voice_sms_numbers); until it is active it neither rings nor receives SMS. Nothing is charged at the order: the fee per 30-day period excluding VAT (49.00 CZK for a Prague number; for another country the monthlyFeeHal of that country from list_voice_sms_countries, fees differ by country) is charged from the credit balance only once the number turns active and again every 30 days (the paid period is not refunded on release); if the registration is rejected nothing is charged. Needs a first credit top-up (the welcome credit does not unlock it), and an account holds at most 2 numbers per country and 4 in total (Prague numbers and numbers in other countries together), counting an order that is still waiting for registration or for a number to be assigned. When voiceSmsNumber is null in the result, the order was accepted but has no number assigned: it continues in the background and is visible in pendingOrders of list_voice_sms_numbers, so do not order again. If an order fails, it disappears from pendingOrders without a number, nothing is charged and the account receives an e-mail; you can then order again. SMS sent from the number cost 1.79 CZK per segment, go only to Czech (+420) numbers and carry no delivery report; received SMS are free. Receiving was verified on the O2 network only, and delivery of messages from every sender, including verification codes, is not guaranteed. Tell the user the price and get explicit agreement first, then pass it as confirmedMonthlyFeeHal; a different amount is rejected and nothing is ordered. Route calls with set_voice_sms_number_routing once the number is active. After a timeout, an error or rate_limited, do not order again blindly: call list_voice_sms_numbers first, because an entry in pendingOrders or a number with status awaiting_registration means the order went through. An order that is still waiting for registration is cancelled with cancel_voice_sms_number; releasing an active number is not available over MCP (portal, or DELETE /v1/voice-sms-numbers/{e164}). If order_voice_sms_number or send_sms with fromNumber returns voice_sms_numbers_unavailable (403), this kind of number is not enabled for this account: do not retry; use a voice number for calls and a mobile number for SMS, or tell the user to contact podpora@volai.cz. Same data as POST /v1/voice-sms-numbers (response schema in /openapi.json).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"confirmedMonthlyFeeHal": "<confirmedMonthlyFeeHal>"
},
"name": "order_voice_sms_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Id of the city and area code, for a country that lists areas in list_voice_sms_countries, for example los-angeles-ca. Defaults to the first area in the list. Not accepted for a country without areas. | |
| country | No | ISO 3166-1 alpha-2 code in upper case of the country to order the number in, one of the countries from list_voice_sms_countries. Defaults to CZ (a Prague number). Required for any country other than CZ. | |
| confirmedMonthlyFeeHal | Yes | Fee in hellers per 30-day period, excluding VAT, confirmed with the user: 4900 for a Prague number, otherwise the monthlyFeeHal of the chosen country from list_voice_sms_countries (fees differ by country). Any other value is rejected and nothing is ordered. |