remove_item_from_cart
Remove an item from the shopping cart.
This tool removes the item completely. To lower the quantity, use the 'update_cart_item' tool.
Steps
Call the 'add_item_to_cart' tool to put items in the cart.
Call this tool to remove an item.
Call the 'create_checkout_url' tool to get a checkout URL.
Rules
A cart with items must exist. Send 'item_id' to select the cart item to remove. It is the 'entityId' of that item in the cart that the last cart tool call returned, for example 'add_item_to_cart'. It is not 'productEntityId' or 'variantEntityId'.
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_item_from_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | The 'entityId' of the cart item to remove. Take it from 'cart.lineItems.physicalItems' or 'cart.lineItems.digitalItems' in the latest cart response. It is not 'productEntityId' or 'variantEntityId'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes | ||
| message | No | ||
| success | Yes |