ToolDescriptionSide Effects
get_balanceCheck account balanceRead-only
check_priceCheck pricing and availability for a country + serviceRead-only
order_numberOrder a virtual phone numberReserves balance
check_smsCheck activation status / get SMS codeRead-only
retry_activationRequest another SMS on same numberFree
cancel_activationCancel activation, release numberRefunds balance

Note: Country and service catalogs are cached server-side and auto-resolved from human-readable names. The agent never receives the full catalog — only resolved IDs or disambiguation hints.


get_balance

Returns the current Platfone account balance: total funds, reserved by active orders, and available (total − reserved). All values are in USD cents. Use this after a 402 error to inform the user how much they need to top up.

Parameters: none


check_price

Check pricing and availability for a country + service pair before ordering. Returns min, max, and suggested price, average quality score, and number of available phone numbers. Accepts country and service as human-readable names or IDs.

ParameterTypeRequiredDescription
countrystringCountry name or ID (e.g. "Israel", "us", "United Kingdom")
servicestringService name or ID (e.g. "Telegram", "wa")
max_priceintegerOptional budget limit in USD cents. A warning is shown if the suggested price exceeds this.

order_number

Rent a virtual phone number for the given country and service. Returns a phone number, activation_id, resolved country & service names, price, expiry time, retriable flag, and cancelability. Accepts human-readable names (“Israel”, “Telegram”) — auto-resolved server-side.

ParameterTypeRequiredDescription
countrystringCountry name or ID (e.g. "United States", "us")
servicestringService name or ID (e.g. "Telegram", "wa")
max_priceintegerMaximum price in USD cents. Protects against price changes.
quality_factorinteger (0–100)0 = cheapest, 50 = balanced (default), 100 = highest quality

Use check_price first to verify cost and availability, then check_sms to poll for the SMS.


check_sms

Retrieve the current state of an activation — SMS text, parsed code, status, and expiration.

ParameterTypeRequiredDescription
activation_idstringActivation ID returned by order_number

retry_activation

Request an additional SMS on the same phone number. Free of charge. Only possible when is_retriable is true and activation is still active.

ParameterTypeRequiredDescription
activation_idstringActivation ID to retry

Use check_sms to poll for the new SMS or check once on demand.


cancel_activation

Cancel an active activation and release the phone number. The reserved amount is refunded. Only possible before SMS is received and after the cancelable_after timestamp has passed.

ParameterTypeRequiredDescription
activation_idstringActivation ID to cancel