build_deck
Assemble a legal, curve-balanced ~60-card deck for any ink pair and format. Choose collection (owned cards only), ideal (show missing and completion price), or market (price every card).
Instructions
Automatically assemble a legal, curve-balanced ~60-card decklist for an ink pair and format, in one of 3 modes:
"collection": build only from cards you own (capped at owned quantity per card). If fewer than 60 legal owned cards exist, reports the shortfall honestly instead of padding with irrelevant fillers.
"ideal": build the best deck regardless of ownership. If collection_csv is given, also shows what you already own, what's missing, and the price to complete it (via tcgcsv.com).
"market": build the best deck ignoring any collection, and prices every card in it (not just the gap) via tcgcsv.com.
This is a heuristic curve/keyword-value builder — it optimizes ink curve, stat efficiency, and keyword value, not multi-card combos or synergy packages. See the disclaimer at the bottom of every result.
Args: ink_colors: Comma-separated ink color(s), e.g. "Amber,Sapphire". 1-2 colors for core/core_zh/core_ja/poorcana, 1-6 for infinity. mode: "collection", "ideal", or "market". format: "core", "infinity", "core_zh", "core_ja", or "poorcana". collection_csv: Absolute path to an enriched collection CSV. Required for mode="collection"; optional for "ideal"; ignored for "market". rotation_safe: If True and format="core", restrict to the rotation group that will still be legal after the next rotation event. No-op (with a note) for other formats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ideal | |
| format | No | core | |
| ink_colors | Yes | ||
| rotation_safe | No | ||
| collection_csv | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |