Skip to main content
Glama

build_deck

Build a legal, curve-balanced Lorcana deck for an ink pair and format using your own collection, an ideal card pool, or market prices.

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.

format="coconut" builds for Format Coconut (Ravensburger's multiplayer singleton beta, open since 2026-07-28 — rules/card pool may still change; see the project CLAUDE.md's "Format Coconut" section). It needs coconut_card, allows up to 3 ink colors (one must match the Coconut's own ink), has no rotation, and every released card is legal except the Coconut beta ban list (currently Bend to My Will, banned 2026-11-03), and every card in the build is capped at 1 copy except the Coconut's associated real character, which may run up to 4 — this replaces the usual max-4-of-anything rule entirely. Call with format="coconut" and no coconut_card to get the full list of the 18 beta Coconuts to choose from.

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, 1-3 for coconut (must include the Coconut card's own ink — see coconut_card). May be omitted entirely when format="coconut" and coconut_card is also omitted — that combination just lists the 18 beta Coconut cards (filtered to the given ink(s), if any) and doesn't build anything yet. mode: "collection", "ideal", or "market". format: "core", "infinity", "core_zh", "core_ja", "poorcana", or "coconut". 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. coconut_card: Required when format="coconut" — fuzzy name of one of the 18 beta Coconut cards (e.g. "Ariel", "Mickey Mouse", "snow white"). Ignored for every other format. include_preview: If True and format is "core" or "infinity", also admit cards from announced sets that aren't legal yet (e.g. Hyperia City before its release date) — whatever LorcanaJSON has revealed so far, which may be a partial set. Preview cards are marked in the decklist and usually have no TCGPlayer price yet. No-op (with a note) for other formats. theme: Optional deck theme — a classification ("princess", "detective", "seven dwarfs", "villain", ...) or a character name ("mickey mouse", "stitch"). Cards of that classification/ name, and cards whose text references it (payoffs like "your Princess characters get +1 ¤"), are strongly preferred. If ink_colors is omitted, the two-ink pair with the most theme cards in the legal pool is chosen automatically (not for coconut, which needs its Coconut's ink).

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
modeNoideal
themeNo
formatNocore
ink_colorsNo
coconut_cardNo
rotation_safeNo
collection_csvNo
include_previewNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.5.0
    • addedInput schema / properties / include_preview
      Added value: +{
      +  "default": false,
      +  "title": "Include Preview",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / theme
      Added value: +{
      +  "default": "",
      +  "title": "Theme",
      +  "type": "string"
      +}
  2. Changed3 schema fields changedv2.3.0
    • addedInput schema / properties / coconut_card
      Added value: +{
      +  "default": "",
      +  "title": "Coconut Card",
      +  "type": "string"
      +}
    • addedInput schema / properties / ink_colors / default
      Added value: +""
    • removedInput schema / required
      Removed value: -[
      -  "ink_colors"
      -]
  3. First observedv0.2.7

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does substantial work: it discloses the heuristic nature ('optimizes ink curve, stat efficiency, and keyword value, not multi-card combos'), that shortfalls are reported 'honestly instead of padding', the pricing source (tcgcsv.com), that preview cards are marked and usually unpriced, and that a disclaimer appears in every result. It never explicitly states that the tool only computes/reads and writes nothing, which is the one behavioral fact an agent most needs when annotations are absent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and modes are front-loaded and the bullet structure is easy to scan, but constraints are stated twice — the mode bullets repeat what the Args block restates for collection_csv, coconut_card, rotation_safe, and include_preview. The Coconut paragraph also carries incidental trivia (beta open date, ban date 2026-11-03, a pointer to CLAUDE.md) that does not help an agent invoke the tool.

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 8-parameter, zero-annotation tool, the definition covers the modes, every format's legality rules, per-parameter requirements and no-op cases, edge cases like the empty-build shortfall and the list-only call, and a real output schema exists so return shape needn't be explained. Nothing an agent needs to make a correct call appears to be missing.

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

Parameters5/5

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

Schema coverage is 0% with 8 parameters, so the description must compensate entirely, and it does: ink_colors gets per-format ranges (1-2 core/poorcana, 1-6 infinity, 1-3 coconut with a matching-ink constraint), mode and format enumerate their values, collection_csv's required/optional/ignored status per mode, rotation_safe and include_preview's no-op-with-a-note behavior, and theme's classification-vs-character-name duality plus its effect on auto ink-pair selection.

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?

Opens with a specific verb+resource+scope: 'Automatically assemble a legal, curve-balanced ~60-card decklist for an ink pair and format.' It immediately distinguishes itself from construction-adjacent siblings (build_sealed_deck, analyze_deck) by naming the decklist-building job and its three modes, and the Coconut paragraph spells out a wholly different construction ruleset.

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?

Mode selection guidance is explicit and conditional: 'collection' is capped at owned quantity, 'ideal' adds a gap/pricing view, 'market' prices every card. It also states the omit-both-params path that just lists the 18 beta Coconuts, and which params are required/ignored/no-op per format. It stops short of naming sibling tools (e.g. build_sealed_deck, analyze_deck) as alternatives, so routing between tools is left implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.