Buy a Widely data pack
buy_widely_packBuy a data pack for the person's Widely SIM. The pack is used before pay as you go in the countries it covers and ends after its validity. Pass pack_id from the data offers. If the account has several Widely SIMs, name one with sim (ICCID or SIM id). Without confirm it shows the price. idempotency_key repeats the same purchase result instead of buying again.
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": {
"pack_id": "<pack_id>"
},
"name": "buy_widely_pack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sim | No | ICCID or SIM id when there is more than one Widely SIM. | |
| confirm | No | Buys the pack. | |
| pack_id | Yes | The pack id from the data offers. | |
| quoted_price | No | The price shown. A changed price is refused. | |
| idempotency_key | No | Repeat with the same key to charge once. |