Skip to main content
Glama

DeckCosmos

Build a deck

build_deck
Read-onlyIdempotent

Build 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

NameRequiredDescriptionDefault
cardNoAny card to build around; a fitting commander is chosen if it can't be one.
modeNoUsually inferred: card if a commander/card is given, criteria if theme/tribe/colors are, else random.
themeNoCriteria 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.
tribeNoCriteria builds: a creature type, e.g. "squirrel".
budgetNoTotal deck budget in USD; expensive cards are swapped for cheaper options.
colorsNoCriteria builds: color identity letters, e.g. "BG". Empty = any.
formatNoDefault commander.
bracketNoCommander power bracket: 2, 3 (default) or 4.
commanderNoThe commander (or for 60-card formats, the card to build around).
variationNoAdd randomness for a different take on the same request. Default false (deterministic).
max_price_per_cardNoSkip cards above this USD price.

Output Schema

NameRequiredDescriptionDefault
noteNoHow to use the result.
themeNoTheme key, for criteria builds.
tribeNoCreature type, for criteria builds.
colorsNoColor identity of the deck.
combosNoCombos complete in the deck.
formatYesFormat built for.
bracketNoPower-bracket estimate.
buy_urlNoA TCGplayer cart with the deck's cards (basic lands left out).
sectionsYesThe deck by section.
warningsNoProblems the builder could not solve (e.g. budget not reachable).
commanderNoThe commander (Commander format).
deck_textYesThe 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_usdNoApproximate total price in USD.
share_urlYesOpens this deck on deckcosmos.com.
build_planNoThe commander's strategy the build followed.
total_cardsYesCards in the deck (100 for Commander, commander included).
built_aroundNoCards the deck was built around.
land_count_noteNoHow the land count was chosen.
requested_bracketNoBracket asked for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive/openWorld=false, and the description adds genuinely new context: a multi-second latency ('a build takes a few seconds') and determinism unless variation is set. It also discloses the bracket semantics (2 core, 3 upgraded, 4 optimized; Game Changers and infinite combos follow the bracket), which the annotations cannot convey.

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?

Front-loaded with the core action, then modes, then return shape; no filler sentences. It is dense as a single paragraph, but each clause carries real information an agent needs.

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 an 11-parameter tool with no required params, the description covers defaults (format, bracket 3, variation false), all three input paths, and expected output sections, plus latency. An output schema exists, so the return-value summary is supplementary rather than a gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds meaning by explaining the bracket tiers numerically, the inference rule for mode, and that budget swaps expensive cards rather than excluding them. That is meaningful interpretation beyond the per-field descriptions.

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+resource ('Build a complete, legal deck') and immediately scopes it: Commander by default, plus 60-card Standard/Pioneer/Modern/Legacy/Pauper. The three selection modes (card, criteria, random) make it unambiguous how the tool differs from inspection tools like check_deck or simulate_deck.

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?

Gives explicit routing logic for its own modes ('give a commander... or criteria... or nothing for a random popular commander') and explains mode is usually inferred. It does not name sibling alternatives or say when not to use it versus check_deck or deck_synergies, so it falls short of a 5.

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