Add a plan to the basket
add_to_basketStep 4. Adds a plan to the basket. Each unit is one eSIM for one phone (quantity 2 = two eSIMs). Returns the updated basket.
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": {
"basket_token": "<basket_token>",
"plan_id": "<plan_id>"
},
"name": "add_to_basket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | Plan id from get_plans. | |
| quantity | No | Number of eSIMs, 1 to 5. Defaults to 1. | |
| basket_token | Yes | The basket_token returned by create_basket. Keep it private. |