Build a deck
build_deckBuild a complete, legal deck, the same as the website's deck builder. Commander (default): 100 cards around a commander, using its build plan, synergies, a role balance (ramp, draw, removal, wipes, protection), a mana base sized by Frank Karsten's formulas, and a target power bracket (2 core, 3 upgraded, 4 optimized; Game Changers and infinite combos follow the bracket). Three ways to choose: give a commander (or any card to build around), or criteria (theme, creature type, colors) and the best-fitting commander is picked, or nothing for a random popular commander. Also builds 60-card Standard, Pioneer, Modern, Legacy and Pauper decks around a card. Returns the list in sections with a reason per card, the bracket estimate, combos in the deck, warnings, a paste-ready deck_text and a share_url. A build takes a few seconds.
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": "build_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Any card to build around; a fitting commander is chosen if it can't be one. | |
| mode | No | Usually inferred: card if a commander/card is given, criteria if theme/tribe/colors are, else random. | |
| theme | No | Criteria builds: a theme, by key or name. Keys: tokens, sacrifice (aristocrats), counters, lifegain, graveyard, spells (spellslinger), artifacts, enchantments, landfall, blink, voltron (equipment & auras), combat, draw, big (big creatures), flying, trample, deathtouch, strike (first/double strike), haste, evasion (menace & unblockable), lifelink, defenders. See reference what=themes. | |
| tribe | No | Criteria builds: a creature type, e.g. "squirrel". | |
| budget | No | Total deck budget in USD; expensive cards are swapped for cheaper options. | |
| colors | No | Criteria builds: color identity letters, e.g. "BG". Empty = any. | |
| format | No | Default commander. | |
| bracket | No | Commander power bracket: 2, 3 (default) or 4. | |
| commander | No | The commander (or for 60-card formats, the card to build around). | |
| variation | No | Add randomness for a different take on the same request. Default false (deterministic). | |
| max_price_per_card | No | Skip cards above this USD price. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | How to use the result. | |
| theme | No | Theme key, for criteria builds. | |
| tribe | No | Creature type, for criteria builds. | |
| colors | No | Color identity of the deck. | |
| combos | No | Combos complete in the deck. | |
| format | Yes | Format built for. | |
| bracket | No | Power-bracket estimate. | |
| buy_url | No | A TCGplayer cart with the deck's cards (basic lands left out). | |
| sections | Yes | The deck by section. | |
| warnings | No | Problems the builder could not solve (e.g. budget not reachable). | |
| commander | No | The commander (Commander format). | |
| deck_text | Yes | The whole list as plain text ("1 Card Name" lines with a Commander header), ready to show, paste into deck sites or pass to check_deck. | |
| price_usd | No | Approximate total price in USD. | |
| share_url | Yes | Opens this deck on deckcosmos.com. | |
| build_plan | No | The commander's strategy the build followed. | |
| total_cards | Yes | Cards in the deck (100 for Commander, commander included). | |
| built_around | No | Cards the deck was built around. | |
| land_count_note | No | How the land count was chosen. | |
| requested_bracket | No | Bracket asked for. |