what_am_i_missing
Compare a deck list against your collection to see which cards you own, which are missing or short, and the estimated cost to complete the deck before buying or playtesting.
Instructions
Compare a deck list against your collection: what you already own, what's
missing or short, and the estimated cost to complete it — the shopping-list
counterpart to analyze_deck, which checks curve/legality but never looks
at ownership.
Cross-references a raw deck list (same format as analyze_deck: 4x Card Name per line) against an enriched collection CSV. Card names are matched
the same simple exact-then-substring way as lookup_card (not fuzzy like
resolve_card); a name that doesn't resolve is dropped from the "Already
have"/"Missing" tallies and listed separately under an "unresolved" section
instead of being silently skipped — check that section if the totals look
short. For every card you're short on, price comes first from the CSV's
own TCG Market Price if you already own at least one printing (no network
needed); only cards you own zero copies of fall back to a live TCGPlayer
lookup via tcgcsv.com for the cheapest printing across all sets/rarities
(gameplay is identical regardless of rarity or art). That fallback fetch
only fires if at least one card actually needs it, and its price data is
cached 24h — the reported total is always a snapshot, not a quote.
Usage guidelines: use this once you have a specific decklist in hand
(hand-written, or build_deck's output) and want to know what to buy or
borrow before playtesting it. It doesn't check Core Constructed legality
or curve — run analyze_deck on the same list for that. If instead you
want a deck built around what you can realistically complete rather than
checking a fixed list, use build_deck(mode="ideal"), which folds this
same ownership/pricing logic into deck construction itself.
Args: deck_list: Raw deck list text, one card per line (e.g. "4x Goofy - Musketeer"). collection_csv: Absolute path to an enriched Lorcana collection CSV.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck_list | Yes | ||
| collection_csv | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |