> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentcard.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# buy_clear_cart

> Empty the cart at a linked merchant

Empties the whole cart at a linked merchant. Handy when you want to start an order over.

<Note>Not advertised in `tools/list` by default — the [buy](/companies/mcp/tools/buy) tool covers this conversationally. Expert integrations can still call it by name.</Note>

## Parameters

| Parameter  | Type   | Required | Description                            |
| ---------- | ------ | -------- | -------------------------------------- |
| `merchant` | string | Yes      | Merchant slug (for example `goodeggs`) |

## Returns

A confirmation with the number of items removed. When the merchant-side cart could be emptied too, it says "Cart emptied". Otherwise the cart is reset on Agentcard's side and the next add starts a fresh cart. Failures return a short error message.

## Example

```json theme={null}
{ "name": "buy_clear_cart", "arguments": { "merchant": "goodeggs" } }
```
