Skip to main content
Glama

Show what to buy

show_buylist
Read-onlyIdempotent

Use this when the user asks what to buy for a deck (id or name), or for all decks (omit deck), and a table helps: missing cards with count, cheapest non-foil printing and unit price, a total in currency (default USD) and the plain "4 Card Name" list. Reads the same data as generate_buylist and changes nothing; run claim_from_collection first or owned copies still count as coverable. Give unpriced_items with the total, and relay rate_missing when present: it means no CHF price could be given at all.

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": "show_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
deckYesNull: every deck
noteYes
textYes
viewYes
cardsYes
itemsYes
currencyYes
more_itemsYesItems counted and not listed
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

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent safety, but the description adds non-obvious behavior: that owned copies still count as coverable unless claim_from_collection is run first, and that `rate_missing` means CHF pricing failed entirely rather than cards having no price. These are exactly the operational caveats an agent needs to report results correctly.

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?

The trigger condition is front-loaded and every clause carries information, but the description is a single dense run-on that repeats the `rate_missing` guidance already present in the currency schema field. Slightly tighter phrasing would improve scanability without losing content.

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

Completeness5/5

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

For a two-parameter read tool with an output schema and full annotation coverage, the description still supplies the prerequisite workflow, the deck-omission behavior, the currency default, and error-state handling. Nothing needed to call it or interpret its output is missing.

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%, so both parameters are already documented, including the CHF/EUR conversion and `rate_missing` semantics. The description mostly restates this (deck id or name, omit for all decks, USD default) without adding syntax or format detail beyond the schema, so the baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('show what to buy for a deck') plus the full scope of the answer: missing cards with counts, cheapest non-foil printing, unit price, total in `currency`, and a plain text list. It explicitly distinguishes itself from the sibling generate_buylist by noting it reads the same data and changes nothing.

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

Usage Guidelines5/5

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

Gives a concrete trigger ('when the user asks what to buy for a deck... or for all decks'), states how to select the all-decks case (omit deck), and names the alternative generate_buylist plus the prerequisite ordering with claim_from_collection. When-to-use, how-to-scope, and what-to-do-first are all present.

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