Skip to main content
Empties the whole cart at a linked merchant. Handy when you want to start an order over.
Not advertised in tools/list by default — the buy tool covers this conversationally. Expert integrations can still call it by name.

Parameters

ParameterTypeRequiredDescription
merchantstringYesMerchant 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

{ "name": "buy_clear_cart", "arguments": { "merchant": "goodeggs" } }