Skip to main content
Glama

Generate buylist

generate_buylist
Read-onlyIdempotent

Buylist 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

NameRequiredDescriptionDefault
deckNoDeck id or name; omit for all decks combined
currencyNoDisplay 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

NameRequiredDescriptionDefault
textYes"4 Card Name" per line, for a shop's mass entry
itemsYes
currencyYes
rate_missingNoPresent 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_itemsYes
total_estimatedYesLeaves out unpriced_items: give that count with the total

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral detail on top: cheapest-first ordering, non-foil unit prices, cheapest printing reported as 'SET number', and the important caveat that `total_estimated` excludes `unpriced_items`, whose count should be surfaced with the total. That last point is genuinely useful agent-facing guidance not present in any structured field.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: scope and ordering come first, then output formatting, then per-item fields, then the pricing caveat. The parenthetical example ('4 Lightning Bolt') earns its space by making the text-block format unambiguous. Minor redundancy remains in restating return fields that the output schema already defines.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, read-only aggregation tool this covers what an agent needs: scope, ordering, output format, and the unpriced-items caveat. The per-item field list is largely duplicated by the existing output schema, so a bit of the description's budget is spent redundantly rather than on gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the schema already documents deck id/name, omission semantics, and the currency enum including the CHF rate behavior. The description restates the omission rule and default but adds no format or syntax detail beyond the structured fields, so it sits at the high-coverage baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (generate a buylist of missing cards) plus the two scopes: one deck by id or name, or all decks when `deck` is omitted. It also names the cheapest-first ordering and the output artifacts (mass-entry text block, estimated total). It does not differentiate from the sibling show_buylist, which an agent would have to disambiguate on its own.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear usage context is given for both modes: supply a deck id/name for a single deck, omit `deck` for all decks combined, and the currency defaults to USD. No explicit exclusions or named alternatives (e.g. when to prefer show_buylist over generating a fresh buylist) are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources