Cancel UCP Shopping Cart
cancel_cartCancel and discard an active ucart_* shopping cart session so it can no longer be modified or converted into a checkout. Use this when a buyer abandons a basket; use cancel_checkout for uchk_* checkout sessions. Parameters: pass top-level id ("ucart_*") and meta.idempotency-key. Behavior: transitions cart status to "canceled" with replay-safe idempotency caching; zero financial charge.
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": {
"id": "<id>"
},
"name": "cancel_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Cart identifier (ucart_<20 hex chars>) to cancel. | |
| meta | No | UCP protocol request metadata (meta.ucp-agent and meta.idempotency-key). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ucp | Yes | Negotiated UCP protocol metadata and capability intersection. |