This session's cart: add, remove, view, clear
cartA cart kept for this MCP session (never the store's own cart). add / remove / set a quantity / view / clear; the total is live from the feed. Then checkout_link tells the buyer where to complete the purchase.
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": {
"action": "<action>"
},
"name": "cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | quantity to add (add, default 1) or to set (set) | |
| action | Yes | ||
| product | No | product id or URL (add/remove/set) |