update_cart
Apply confirmed final quantities to the shopping cart, verifying the cart version to prevent stale updates.
Instructions
Set exact final quantities after the host obtains explicit user confirmation.
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": {
"items": "<items>",
"expected_cart_version": "<expected_cart_version>",
"operation_id": "<operation_id>"
},
"name": "update_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| operation_id | Yes | ||
| expected_cart_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||