create_basket_link
Make a link that opens NerdMarket with these packs (SKU and quantity) listed, ready for the person to check and add to their basket with one button, then pay at checkout. Nothing is added or bought until they press it. Also says whether each line can be added now and the total.
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": {
"items": "<items>"
},
"name": "create_basket_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | the packs to list, at most 20 lines |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | give this to the person: it opens the list on NerdMarket, where they add it to their basket | |
| lines | Yes | ||
| total | No | the lines' total including VAT, before delivery; absent when a line can't be added | |
| can_add | Yes | true when every line can be added now; otherwise the page shows the problems and adds nothing |