Get UCP Shopping Cart
get_cartRetrieve current line items, itemized USD cent totals, expiration timestamp, and resume URL for an existing UCP cart. Use this to inspect ucart_* basket state; do not use for checkout sessions (get_checkout). Parameters: pass top-level id ("ucart_<20 hex chars>") returned by create_cart. Behavior: read-only, zero charge; returns current cart state or CART_NOT_FOUND when expired or unknown.
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": "get_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Cart identifier (format: ucart_<20 hex chars>) returned by create_cart. | |
| 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. |