remove_cart_item
Delete the complete basket line identified by this buyer's get_cart item_id; not product_id or a favorites entry. Use update_cart_item to retain the line with a smaller quantity. Returns the refreshed basket; no order or payment. OAuth scopes: cart:write. Changes buyer or order state.
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": {
"item_id": "<item_id>"
},
"name": "remove_cart_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | Basket line item_id from this consenting buyer's get_cart response, not product_id or another buyer's item. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| empty | Yes | ||
| items | Yes | ||
| currency | Yes | ||
| subtotal | Yes | ||
| orderable | Yes | ||
| total_quantity | Yes |