add_to_cart
Storefront, changes this session's cart only: adds one billing variant. Returns the updated cart (items, subtotal). Required: product_id of a variant, e.g. coil-scanner-monthly or coil-live-yearly; a bare family id returns an Unavailable error that lists its variants, and an unknown id returns a NotOffered error. Quantity is always 1 (one licence per person), so adding a variant already in the cart changes nothing. A product that is sold elsewhere cannot be added; the error carries its subscribe link. Needs an MCP session: without one nothing is stored. Takes no payment. Fits when the buyer has chosen a plan.
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": {
"product_id": "<product_id>"
},
"name": "add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Optional and ignored: the quantity is always 1, one licence per person. | |
| product_id | Yes | A billing-variant id, e.g. coil-scanner-monthly or coil-live-yearly. |