Read cart
get_cartA cart create_cart returned, by id, with current prices, quantities and availability, totals for the items only (shipping, any discount and any Loyaltie+ membership in the cart are added at checkout), and the same continue_url cart. When you give the person continue_url, ask them to check the total before paying: the cart may already include an optional paid Loyaltie+ membership, which they can turn off before they pay. An item no longer available or sold out fails the call with its path; a quantity above the stock now on hand is lowered, with a warning. An unknown or expired id fails with not_found.
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": {
"cart": "<cart>"
},
"name": "get_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| src | No | Send "skill" when you were set up by the Loyaltie Skill; returned links then carry src=skill. Default "api"; any other value counts as "api". | |
| cart | Yes | The cart to read: id, with optional context. | |
| meta | No | Optional UCP request metadata. meta["ucp-agent"].profile is your UCP agent profile URL; it is recorded, never required. | |
| agent_id | No | Your agent id. Every loyaltie.com link returned then carries agent=<agent_id>, so Loyaltie knows which agent helped. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||