Top up an eSIM (spends balance)
topup_esimAdd a package to an existing eSIM. Two-step: first call returns the package name, cost, current balance and a generated idempotency_key; call again with confirm: true AND that idempotency_key to execute (a retry with the same key can never apply the top-up twice). Tell the user the cost before confirming.
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>",
"package_code": "<package_code>"
},
"name": "topup_esim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iccid | Yes | ICCID of the eSIM (19-20 digits) | |
| confirm | No | Omit to get a preview; pass true to execute | |
| package_code | Yes | From get_topup_packages | |
| idempotency_key | No | From the preview; required with confirm: true |