Clear the cart
clear_cartRemove all items from the cart.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | Cart line items (line_id, product_id, name, quantity, prices, options). | |
| message | No | Present on an empty cart. | |
| currency | No | ||
| subtotal | No | ||
| item_count | No | ||
| merchant_id | No | ||
| merchant_city | No | ||
| merchant_name | No |