Generate buylist
generate_buylistBuylist of missing cards for one deck (id or name) or ALL decks (omit deck), cheapest-first, with a mass-entry friendly text block ("4 Lightning Bolt" per line) for Cardmarket/TCGplayer and an estimated total in currency (default USD). Per item: quantity, unit_price (non-foil), cheapest_printing ("SET number") and the decks that miss it. total_estimated leaves out the unpriced_items: give that count with the total.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_buylist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | No | Deck id or name; omit for all decks combined | |
| currency | No | Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | "4 Card Name" per line, for a shop's mass entry | |
| items | Yes | ||
| currency | Yes | ||
| rate_missing | No | Present when CHF was asked and no CHF rate is stored: no CHF price could be given at all, the cards are not unpriced. Relay it. | |
| unpriced_items | Yes | ||
| total_estimated | Yes | Leaves out unpriced_items: give that count with the total |