cancel_sms_rental
Cancel a long-term SMS rental and refund the full amount to the wallet. Only works for rentals LONGER than 15 days, within 2 hours of purchase, AND only if the number has NOT received any message — this mirrors the provider refund rules, so a 15-day-or-shorter rental, a passed window, or a code that already arrived returns a clear reason and refunds nothing. Use for a genuine change of mind or a wrong purchase shortly after renting. The receiptId comes from rent_sms_number or list_sms_orders. Requires a connected agent wallet.
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": {
"receiptId": "<receiptId>"
},
"name": "cancel_sms_rental"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receiptId | Yes | The rental receipt ID from rent_sms_number or list_sms_orders |