Build cart link
build_cart_linkA loyaltie.com cart link for 1 to 20 listed products (quantity 1 to 99, each id once, one-time purchase). It places no order and takes no payment: give the link to the person; they review the cart on loyaltie.com and, to pay, sign in or create an account there; tell them that. 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. It checks only that each product is listed, not that it is in stock; sold-out products are left out when the person opens the link, which sets each linked product's quantity to the link's (it is not added on top) and keeps other products already in the cart. You never pay or place an order. Unknown ids fail 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": "build_cart_link"
}
}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 link to build: line_items, with optional context and attribution. | |
| 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 | |||