Rent Sms Number Tool
rent-sms-number-toolAdd a phone number to one of the user's rented phones (slot), for receiving SMS verification codes from any app on it, by returning a Stripe Checkout link. Nothing is charged until the user pays on that page: the first month is charged there and the number then renews monthly until cancelled with cancel-sms-number-tool. A user with no card on file pays from their prepaid wallet instead (or pass pay_with: wallet): the first month comes off the balance straight away (paid_from: wallet, no link), a balance that does not cover it SAVES the number instead (waiting_for_top_up: true, bought automatically once the user tops up at top_up_url), and the number renews from the wallet. A phone has at most one number; list-sms-number-offers-tool shows its price. Once paid, the number is bought from the provider within a minute; poll list-sms-numbers-tool until it is active, then read codes with get-sms-number-messages-tool. If no number can be supplied after payment, the payment is refunded and the number shows failed. Requires accept_terms: true: before calling, show the user https://0bull.net/terms and https://0bull.net/privacy and get their agreement to them and to the monthly renewal charge.
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": {
"slot": "<slot>",
"accept_terms": "<accept_terms>"
},
"name": "rent-sms-number-tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | The phone the number is for: its `slot` UUID from list-phones-tool. The number is shown with that phone and stops when the phone's rental ends. | |
| region | No | Optional region code (for a US number, a state, e.g. NY) from list-sms-number-offers-tool `regions`. Without it the number can be from anywhere in the country. | |
| country | No | ISO-2 country of the number. Only US is offered today; defaults to it. | |
| pay_with | No | Optional. `wallet` pays the first month from the user's prepaid balance now, with no link; `card` returns a Stripe Checkout link. Left out, a user with no card on file pays from the wallet and anyone else gets the link. | |
| accept_terms | Yes | Required, must be true. Before calling, show the user https://0bull.net/terms and https://0bull.net/privacy and get their agreement to them and to the monthly renewal charge until they cancel. |