topup_esim
Adds more data (and on some plans voice/SMS) to an existing eSIM the user already owns, without issuing a new eSIM. This SPENDS the wallet balance and cannot be undone. First call get_topup_options with the same ICCID to get valid top-up package codes and prices, then pass one here. Use when a user wants to extend an eSIM that is running low rather than buy a new one. Requires a connected agent wallet (OAuth or ak_live_ key).
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": {
"iccid": "<iccid>",
"packageCode": "<packageCode>"
},
"name": "topup_esim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iccid | Yes | The ICCID of the eSIM to top up (from list_orders or a prior purchase) | |
| promoCode | No | Optional promo/discount code. Validated server-side; an invalid code rejects the top-up with the reason (nothing is charged). Only pass a code the user explicitly provided. | |
| requestId | No | Idempotency key: generate a fresh UUID for each NEW top-up, and reuse the SAME value when retrying after a timeout or transport error — an identical retry returns the original top-up instead of charging again. | |
| packageCode | Yes | A top-up package code returned by get_topup_options for this ICCID (top-up codes differ from new-purchase codes) |