Koskamo

Reliquary MCP

An official MCP server for Reliquary, a Magic: The Gathering collection manager. It allows AI assistants to search owned cards, manage holdings, create and analyze decks, check set completion, and view collection value and price history. It supports OAuth 2.1 authentication and integrates with clients like Claude, ChatGPT, and Cursor.

Endpoint and access

Optional OAuth sign-in: the endpoint lists tools without signing in. Account tools can prompt OAuth in your client; other task prerequisites may also apply.

Reliquary MCP logo, by Pixeesoft SàrlVendor evidenceStreamable HTTPOptional OAuth sign-inEndpoint checked 2026-11-23Operated by Pixeesoft Sàrl
You need:Signing in makes a free accountchoose Connect, sign in with Google or GitHub and approve access
MCP endpoint (Streamable HTTP)
https://reliquary.gg/mcp
Vendor documentation

What its tools do

74 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

74 of 74 have a description · 74 of 74 declare behavior hints · 34 of 66 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to reliquary.gg ·
  • Passed Endpoint is on the registry namespace domain ·
  • Uptime 100% over 90 days
  • Availability 3 of 3 checks passed in 30 days

What you can do with it

  • Search the user's owned cards with rich filters
  • Create and update Magic: The Gathering decks
  • Check set completion and missing cards
  • View collection value and price history

Source and maintenance

Vendor evidenceRegistry 1.0.0

Protocol and capabilities

Server
reliquary 1.0.0
MCP protocol negotiated in check
2025-11-25
Tools
74 advertised
Resources
2 advertised
Resource templates
0 advertised
Prompts
5 advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": true
  },
  "prompts": {
    "listChanged": true
  },
  "resources": {
    "listChanged": true
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Reliquary is the user's Magic: The Gathering collection. Every physical card is in exactly one place, a deck claims its copies explicitly, and a copy two decks use is always called shared. Always tell the user - Every shared copy a response shows: which decks use it and where it physically is. - Every proxy a response shows. A proxy is never an owned real card. - What a tool left out: unresolved names, ignored lines, cards with no price, notes. - Never invent a card, count, price or place. Words - Claimed (allocated): a copy is promised to a deck. Staged: promised, not moved. Sleeved: physically in the deck. - Cards may be named in any language; answers use English names. - Link each card name to its scryfall_url. "Show me <card>": show_card. Common questions - Empty collection: offer to add cards from a photo or pasted list (add_holdings), or a file at reliquary.gg/import. - "Where's my <card>?": where_is. Say the place first, then which decks claim it. - "What do I need to buy for this list?": import_deck with decklist_text (paste beats a Moxfield link), claim_from_collection first, then whats_missing or generate_buylist. Ask before allow_shared: it borrows other decks' copies. - "100 EUR to finish this deck": claim_from_collection, then complete_deck_on_budget. - "What can I build tonight?": what_can_i_build. - "It's built": sleeve_deck, only when the user says the cards are in the deck; claiming moves nothing. - Two decks, one table: allocation_conflicts. - Circle news: my_circle, my_swaps, match_circle; once shown, mark_circle_seen; offer_swap. Newcomer: invite_friend. Prices - currency defaults to USD: ask once (CHF, EUR, USD), pass it. - Give each total its count of unpriced cards. Changes - delete_deck, remove_holding, deallocate_all, answer_swap's approve: preview without confirm, show it, get a yes, then confirm. - Deleting a deck or cutting a card never deletes cards: copies are released, sleeved ones to "Unsorted". - PLAN_LIMIT: not on the user's plan. Say so and give its link; never push a plan.

Tools

74 advertised

search_collection — Search collection
Advertised by the server during the last successful anonymous check.
Advertised read-only

Search the user's owned cards (holdings) with rich filters. Returns holdings with printing data, physical location, per-deck allocations, free (unallocated) quantity, and unit/total price in the requested currency (default USD). color_identity means: card identity must be a SUBSET of the given colors (["G","W"] finds Selesnya-legal cards incl. colorless). allocation filter: allocated | unallocated (free copies exist) | staged | sleeved | shared. name may be in any language Scryfall prints: a holding found by its name in another language carries `matched` (the name as printed, "Foudre"); tell the user it is the English card (Lightning Bolt). Always disclose proxy status (is_proxy) and shared allocations in your summaries. Paginate with limit/offset (default 50, max 200).

search_collection input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "lang": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "Substring match on card name"
    },
    "sort": {
      "enum": [
        "name",
        "set",
        "value",
        "created"
      ],
      "type": "string"
    },
    "type": {
      "type": "string",
      "description": "Substring of the type line, e.g. \"Creature\" or \"Land\""
    },
    "limit": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
    },
    "finish": {
      "enum": [
        "nonfoil",
        "foil",
        "etched"
      ],
      "type": "string"
    },
    "offset": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
    },
    "origin": {
      "enum": [
        "booster",
        "single",
        "trade",
        "gift",
        "printed_proxy",
        "bought_proxy"
      ],
      "type": "string",
      "description": "How the card was acquired (mutually exclusive). printed_proxy/bought_proxy force is_proxy=true. is_proxy/is_signed/is_altered are independent flags that combine freely with any origin (a gift proxy = origin \"gift\" + is_proxy=true)."
    },
    "rarity": {
      "enum": [
        "common",
        "uncommon",
        "rare",
        "mythic"
      ],
      "type": "string"
    },
    "cmc_max": {
      "type": "number"
    },
    "cmc_min": {
      "type": "number"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    },
    "is_proxy": {
      "type": "boolean"
    },
    "location": {
      "type": "string",
      "description": "Location id or name"
    },
    "set_code": {
      "type": "string"
    },
    "condition": {
      "enum": [
        "NM",
        "LP",
        "MP",
        "HP",
        "DMG"
      ],
      "type": "string"
    },
    "is_signed": {
      "type": "boolean"
    },
    "price_max": {
      "type": "number",
      "description": "Unit price upper bound in `currency`"
    },
    "price_min": {
      "type": "number",
      "description": "Unit price lower bound in `currency`"
    },
    "allocation": {
      "enum": [
        "allocated",
        "unallocated",
        "staged",
        "sleeved",
        "shared"
      ],
      "type": "string"
    },
    "is_altered": {
      "type": "boolean"
    },
    "oracle_text": {
      "type": "string",
      "description": "Substring of rules text, e.g. \"Search your library\""
    },
    "color_identity": {
      "type": "array",
      "items": {
        "enum": [
          "W",
          "U",
          "B",
          "R",
          "G"
        ],
        "type": "string"
      }
    }
  }
}
search_collection output schema
{
  "type": "object",
  "required": [
    "total_holdings",
    "total_cards",
    "limit",
    "offset",
    "currency",
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "scryfall_id",
          "name",
          "set_code",
          "collector_number",
          "scryfall_url",
          "rarity",
          "type_line",
          "mana_cost",
          "cmc",
          "color_identity",
          "image_uri",
          "quantity",
          "finish",
          "condition",
          "lang",
          "origin",
          "is_proxy",
          "is_signed",
          "is_altered",
          "purchase_price",
          "purchase_currency",
          "notes",
          "location_id",
          "location_name",
          "free_quantity",
          "allocations",
          "unit_price",
          "total_price",
          "currency"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "cmc": {
            "type": "number"
          },
          "lang": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "The English name"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "finish": {
            "enum": [
              "nonfoil",
              "foil",
              "etched"
            ],
            "type": "string"
          },
          "origin": {
            "enum": [
              "booster",
              "single",
              "trade",
              "gift",
              "printed_proxy",
              "bought_proxy"
            ],
            "type": "string"
          },
          "rarity": {
            "type": "string"
          },
          "matched": {
            "type": "string",
            "description": "The name in another language the search found it by"
          },
          "currency": {
            "enum": [
              "USD",
              "EUR",
              "CHF"
            ],
            "type": "string"
          },
          "is_proxy": {
            "type": "boolean",
            "description": "A proxy is not a real card: always say so, and it counts as zero in value"
          },
          "quantity": {
            "type": "number"
          },
          "set_code": {
            "type": "string"
          },
          "condition": {
            "enum": [
              "NM",
              "LP",
              "MP",
              "HP",
              "DMG"
            ],
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "is_signed": {
            "type": "boolean"
          },
          "mana_cost": {
            "type": [
              "string",
              "null"
            ]
          },
          "type_line": {
            "type": "string"
          },
          "is_altered": {
            "type": "boolean"
          },
          "unit_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "allocations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "allocation_id",
                "deck_id",
                "deck_name",
                "quantity",
                "shared",
                "status"
              ],
              "properties": {
                "shared": {
                  "type": "boolean",
                  "description": "A shared claim: the same copies are also claimed by another deck. Always say so."
                },
                "status": {
                  "enum": [
                    "staged",
                    "sleeved"
                  ],
                  "type": "string",
                  "description": "sleeved: the copies are physically in the deck; staged: still where they were"
                },
                "deck_id": {
                  "type": "string"
                },
                "quantity": {
                  "type": "number"
                },
                "deck_name": {
                  "type": "string"
                },
                "allocation_id": {
                  "type": "string"
                }
              }
            }
          },
          "location_id": {
            "type": "string"
          },
          "scryfall_id": {
            "type": "string"
          },
          "total_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "free_quantity": {
            "type": "number",
            "description": "Copies no deck claims"
          },
          "location_name": {
            "type": "string",
            "description": "Where the stack physically is"
          },
          "color_identity": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "purchase_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "collector_number": {
            "type": "string"
          },
          "purchase_currency": {
            "anyOf": [
              {
                "enum": [
                  "USD",
                  "EUR",
                  "CHF"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      }
    },
    "limit": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "total_cards": {
      "type": "number",
      "description": "Copies in those stacks, all pages"
    },
    "total_holdings": {
      "type": "number",
      "description": "Stacks matching the filters, all pages"
    }
  }
}
search_collection annotations
{
  "title": "Search collection",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
add_holdings — Add holdings
Advertised by the server during the last successful anonymous check.
Open-world

Add physical cards to the collection (bulk). Each item is a card reference (scryfall_id, or name [+ set_code, collector_number]) plus holding attributes. quantity ≥ 1 identical copies form one stack. Defaults: finish nonfoil, condition NM, lang en, origin "single", location "Unsorted" (created if missing; any unknown location name is auto-created). purchase_price is PER CARD in purchase_currency (USD/EUR/CHF). Unresolvable names are returned under "unresolved", the rest are added. A set_code (and collector_number) names one printing: an item whose card is not there comes back under "unresolved", naming the nearest printing. The list is added in one write: an item the collection refuses (an origin printed_proxy or bought_proxy with is_proxy false, a blank location) refuses the whole call and nothing is added. A name that is no card's exact name was added as Scryfall's closest match, and a name in another language as its English card: each is listed under "inexact" with the card it became (matched_by fuzzy or other_language). Tell the user which card was added for each fuzzy one. From a photo of cards, every name, set and finish is your own reading: list them and get the user's yes before adding.

add_holdings input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "quantity"
        ],
        "properties": {
          "lang": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
          },
          "notes": {
            "type": "string"
          },
          "finish": {
            "enum": [
              "nonfoil",
              "foil",
              "etched"
            ],
            "type": "string"
          },
          "origin": {
            "enum": [
              "booster",
              "single",
              "trade",
              "gift",
              "printed_proxy",
              "bought_proxy"
            ],
            "type": "string",
            "description": "How the card was acquired (mutually exclusive). printed_proxy/bought_proxy force is_proxy=true. is_proxy/is_signed/is_altered are independent flags that combine freely with any origin (a gift proxy = origin \"gift\" + is_proxy=true)."
          },
          "is_proxy": {
            "type": "boolean"
          },
          "location": {
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "maximum": 9007199254740991,
            "minimum": 1
          },
          "set_code": {
            "type": "string",
            "description": "Set code, e.g. \"2xm\""
          },
          "condition": {
            "enum": [
              "NM",
              "LP",
              "MP",
              "HP",
              "DMG"
            ],
            "type": "string"
          },
          "is_signed": {
            "type": "boolean"
          },
          "is_altered": {
            "type": "boolean"
          },
          "scryfall_id": {
            "type": "string",
            "description": "Exact Scryfall printing id, if known"
          },
          "purchase_price": {
            "type": "number"
          },
          "collector_number": {
            "type": "string",
            "description": "Collector number within the set"
          },
          "purchase_currency": {
            "enum": [
              "USD",
              "EUR",
              "CHF"
            ],
            "type": "string"
          }
        }
      },
      "maxItems": 75,
      "minItems": 1,
      "description": "Max 75 items per call (Scryfall batch limit). Send the whole list in one call: it is resolved in one batch."
    }
  }
}
add_holdings annotations
{
  "title": "Add holdings",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
update_holding — Update holding
Advertised by the server during the last successful anonymous check.
Advertised destructive

Update attributes of one holding (stack) by holding_id (get ids from search_collection/where_is). Changing location is a physical move and reconciles allocation statuses like move_holding. Reducing quantity below the allocated amount is rejected — deallocate first. origin printed_proxy/bought_proxy force is_proxy=true and it cannot be unset.

update_holding input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "holding_id"
  ],
  "properties": {
    "lang": {
      "type": "string"
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "finish": {
      "enum": [
        "nonfoil",
        "foil",
        "etched"
      ],
      "type": "string"
    },
    "origin": {
      "enum": [
        "booster",
        "single",
        "trade",
        "gift",
        "printed_proxy",
        "bought_proxy"
      ],
      "type": "string",
      "description": "How the card was acquired (mutually exclusive). printed_proxy/bought_proxy force is_proxy=true. is_proxy/is_signed/is_altered are independent flags that combine freely with any origin (a gift proxy = origin \"gift\" + is_proxy=true)."
    },
    "is_proxy": {
      "type": "boolean"
    },
    "location": {
      "type": "string",
      "description": "Location id or name — this physically moves the stack"
    },
    "quantity": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 1
    },
    "condition": {
      "enum": [
        "NM",
        "LP",
        "MP",
        "HP",
        "DMG"
      ],
      "type": "string"
    },
    "is_signed": {
      "type": "boolean"
    },
    "holding_id": {
      "type": "string"
    },
    "is_altered": {
      "type": "boolean"
    },
    "purchase_price": {
      "type": [
        "number",
        "null"
      ]
    },
    "purchase_currency": {
      "anyOf": [
        {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
update_holding annotations
{
  "title": "Update holding",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
remove_holding — Remove holding
Advertised by the server during the last successful anonymous check.
Advertised destructive

DESTRUCTIVE: permanently delete a holding (the physical cards leave the collection, e.g. sold or traded away). Without confirm:true this only returns a dry-run summary of what would be deleted, including any allocations that would be released. Call again with confirm:true to actually delete.

remove_holding input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "holding_id"
  ],
  "properties": {
    "confirm": {
      "type": "boolean"
    },
    "holding_id": {
      "type": "string"
    }
  }
}
remove_holding annotations
{
  "title": "Remove holding",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
crack_pack — Crack pack
Advertised by the server during the last successful anonymous check.
Open-world

Conversational bulk-add for opening boosters: adds cards with origin preset to "booster" and location defaulting to "Unsorted". Give one item per distinct card (name [+ set_code, collector_number] or scryfall_id) with quantity and optional finish (foil pulls!). Unresolvable names come back under "unresolved" — ask the user to clarify those. The pack is added in one write, and a name added as Scryfall's closest match or read in another language is listed under "inexact" with the card it became: tell the user.

crack_pack input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
          },
          "finish": {
            "enum": [
              "nonfoil",
              "foil",
              "etched"
            ],
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "default": 1,
            "maximum": 9007199254740991,
            "minimum": 1
          },
          "set_code": {
            "type": "string",
            "description": "Set code, e.g. \"2xm\""
          },
          "scryfall_id": {
            "type": "string",
            "description": "Exact Scryfall printing id, if known"
          },
          "collector_number": {
            "type": "string",
            "description": "Collector number within the set"
          }
        }
      },
      "maxItems": 75,
      "minItems": 1
    },
    "location": {
      "type": "string",
      "description": "Where the cards physically go (default \"Unsorted\")"
    },
    "set_code": {
      "type": "string",
      "description": "Set the pack is from — applied to every item without its own set_code"
    }
  }
}
crack_pack annotations
{
  "title": "Crack pack",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
where_is — Where is
Advertised by the server during the last successful anonymous check.
Advertised read-only

Locate a card by name across all holdings. Returns, per stack: physical location (where it is RIGHT NOW), quantity, free (unallocated) copies, and every allocation with deck, status (staged = earmarked but physically elsewhere; sleeved = physically in the deck) and shared disclosure. The name may be in any language Scryfall prints: a stack found that way carries read_as ("Foudre → Lightning Bolt"), say it. Always repeat the shared/proxy disclosures to the user.

where_is input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Card name or substring, in English or another language"
    }
  }
}
where_is output schema
{
  "type": "object",
  "required": [
    "stacks"
  ],
  "properties": {
    "stacks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "holding_id",
          "card",
          "scryfall_url",
          "image_uri",
          "is_proxy",
          "shared",
          "quantity",
          "physically_in",
          "free_quantity",
          "allocations"
        ],
        "properties": {
          "card": {
            "type": "string",
            "description": "The card, its printing and finish in words; \", PROXY\" when the stack is proxies"
          },
          "shared": {
            "type": "boolean",
            "description": "A claim on the stack is shared with another deck: name every deck in `allocations`"
          },
          "read_as": {
            "type": "string",
            "description": "\"Foudre → Lightning Bolt\": the stack was found by a name in another language; say it"
          },
          "is_proxy": {
            "type": "boolean",
            "description": "The stack is proxies, not real cards: always say so"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "holding_id": {
            "type": "string"
          },
          "allocations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Each deck claim in words, with its status (staged: earmarked, elsewhere; sleeved: in the deck) and any shared disclosure"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "free_quantity": {
            "type": "number",
            "description": "Copies no deck claims"
          },
          "physically_in": {
            "type": "string",
            "description": "Where the stack physically is right now"
          }
        }
      }
    }
  }
}
where_is annotations
{
  "title": "Where is",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
card_detail — Card detail
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Everything about one card: oracle data (mana cost, type line, rules text, color identity, legalities — the map includes paupercommander (Pauper EDH: whether the card may sit in the 99) and duel (Duel Commander); card.pdh_commander separately flags cards that can LEAD a Pauper EDH deck, i.e. printed at uncommon with a creature/Vehicle/Spacecraft front face — legendary is NOT required in PDH), the focused printing (set, collector number, rarity, finishes, USD/EUR prices), EVERY printing across all sets with the user's per-printing ownership (qty_real / qty_real_foil / qty_proxy; set_digital=1 marks MTGO/Arena-only printings), and the user's holdings of any printing with physical location and deck allocations. Answers "do I own this card, and in which printings?" — use it before suggesting a purchase. card.rulings: the card's official rulings (published_at, source "wotc" = Wizards of the Coast or "scryfall", comment), from Scryfall's rulings file as of the catalogue's last load; quote them when asked how the card works, or how it works with another card. Reference by scryfall_id, by name (+ optional set_code/collector_number), or by oracle_id (the newest printing becomes the focus). A first lookup may read the card's printings and prices live from Scryfall (card data kept in the shared catalogue for 7 days; nothing in the user's account changes). DISCLOSURE: qty_proxy copies are proxies — physically present but never counted as owned; holdings with shared=true allocations must be relayed as "also allocated to …". Before the user signs in, it answers from the catalogue alone with signed_in: false: no qty_* fields, holdings or totals, so say nothing about what they own, and a card newer than the catalogue is not found until they sign in.

card_detail input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {
      "type": "string",
      "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    },
    "set_code": {
      "type": "string",
      "description": "Set code, e.g. \"2xm\""
    },
    "oracle_id": {
      "type": "string",
      "description": "Oracle id shared by all printings — use when no specific printing is meant"
    },
    "scryfall_id": {
      "type": "string",
      "description": "Exact Scryfall printing id, if known"
    },
    "collector_number": {
      "type": "string",
      "description": "Collector number within the set"
    }
  }
}
card_detail output schema
{
  "type": "object",
  "required": [
    "card",
    "printing",
    "printings",
    "currency"
  ],
  "properties": {
    "card": {
      "type": "object",
      "required": [
        "oracle_id",
        "name",
        "scryfall_url",
        "mana_cost",
        "cmc",
        "type_line",
        "oracle_text",
        "color_identity",
        "legalities",
        "pdh_commander",
        "rulings"
      ],
      "properties": {
        "cmc": {
          "type": "number"
        },
        "name": {
          "type": "string",
          "description": "The English name"
        },
        "rulings": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "published_at",
              "source",
              "comment"
            ],
            "properties": {
              "source": {
                "type": "string",
                "description": "\"wotc\" (Wizards of the Coast) or \"scryfall\""
              },
              "comment": {
                "type": "string"
              },
              "published_at": {
                "type": "string"
              }
            }
          }
        },
        "mana_cost": {
          "type": [
            "string",
            "null"
          ]
        },
        "oracle_id": {
          "type": "string"
        },
        "type_line": {
          "type": "string"
        },
        "legalities": {
          "type": "object",
          "description": "Format → legal | not_legal | banned | restricted (in duel, restricted means banned as commander)",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "string"
          }
        },
        "oracle_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "scryfall_url": {
          "type": "string",
          "description": "The card's page on Scryfall: link the card's name to it"
        },
        "pdh_commander": {
          "type": "boolean",
          "description": "May lead a Pauper Commander deck (printed at uncommon, a creature, Vehicle or Spacecraft)"
        },
        "color_identity": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "totals": {
      "type": "object",
      "required": [
        "qty_real",
        "qty_real_foil",
        "qty_proxy"
      ],
      "properties": {
        "qty_real": {
          "type": "number"
        },
        "qty_proxy": {
          "type": "number",
          "description": "Proxies are not real cards: never counted as owned, always said"
        },
        "qty_real_foil": {
          "type": "number"
        }
      },
      "description": "Absent before sign-in"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "holdings": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "scryfall_id",
          "name",
          "set_code",
          "collector_number",
          "scryfall_url",
          "rarity",
          "type_line",
          "mana_cost",
          "cmc",
          "color_identity",
          "image_uri",
          "quantity",
          "finish",
          "condition",
          "lang",
          "origin",
          "is_proxy",
          "is_signed",
          "is_altered",
          "purchase_price",
          "purchase_currency",
          "notes",
          "location_id",
          "location_name",
          "free_quantity",
          "allocations",
          "unit_price",
          "total_price",
          "currency"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "cmc": {
            "type": "number"
          },
          "lang": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "The English name"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "finish": {
            "enum": [
              "nonfoil",
              "foil",
              "etched"
            ],
            "type": "string"
          },
          "origin": {
            "enum": [
              "booster",
              "single",
              "trade",
              "gift",
              "printed_proxy",
              "bought_proxy"
            ],
            "type": "string"
          },
          "rarity": {
            "type": "string"
          },
          "matched": {
            "type": "string",
            "description": "The name in another language the search found it by"
          },
          "currency": {
            "enum": [
              "USD",
              "EUR",
              "CHF"
            ],
            "type": "string"
          },
          "is_proxy": {
            "type": "boolean",
            "description": "A proxy is not a real card: always say so, and it counts as zero in value"
          },
          "quantity": {
            "type": "number"
          },
          "set_code": {
            "type": "string"
          },
          "condition": {
            "enum": [
              "NM",
              "LP",
              "MP",
              "HP",
              "DMG"
            ],
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "is_signed": {
            "type": "boolean"
          },
          "mana_cost": {
            "type": [
              "string",
              "null"
            ]
          },
          "type_line": {
            "type": "string"
          },
          "is_altered": {
            "type": "boolean"
          },
          "unit_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "allocations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "allocation_id",
                "deck_id",
                "deck_name",
                "quantity",
                "shared",
                "status"
              ],
              "properties": {
                "shared": {
                  "type": "boolean",
                  "description": "A shared claim: the same copies are also claimed by another deck. Always say so."
                },
                "status": {
                  "enum": [
                    "staged",
                    "sleeved"
                  ],
                  "type": "string",
                  "description": "sleeved: the copies are physically in the deck; staged: still where they were"
                },
                "deck_id": {
                  "type": "string"
                },
                "quantity": {
                  "type": "number"
                },
                "deck_name": {
                  "type": "string"
                },
                "allocation_id": {
                  "type": "string"
                }
              }
            }
          },
          "location_id": {
            "type": "string"
          },
          "scryfall_id": {
            "type": "string"
          },
          "total_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "free_quantity": {
            "type": "number",
            "description": "Copies no deck claims"
          },
          "location_name": {
            "type": "string",
            "description": "Where the stack physically is"
          },
          "color_identity": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "purchase_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "collector_number": {
            "type": "string"
          },
          "purchase_currency": {
            "anyOf": [
              {
                "enum": [
                  "USD",
                  "EUR",
                  "CHF"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "description": "The player's stacks of any printing. Absent before sign-in"
    },
    "printing": {
      "type": "object",
      "required": [
        "scryfall_id",
        "set_code",
        "collector_number",
        "scryfall_url",
        "set_name",
        "set_type",
        "set_digital",
        "released_at",
        "rarity",
        "lang",
        "image_uri",
        "finishes",
        "price_usd",
        "price_usd_foil",
        "price_eur",
        "price_eur_foil"
      ],
      "properties": {
        "lang": {
          "type": "string"
        },
        "rarity": {
          "type": "string"
        },
        "finishes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "qty_real": {
          "type": "number",
          "description": "Real copies of this printing the player owns. Absent before sign-in"
        },
        "set_code": {
          "type": "string"
        },
        "set_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "set_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "image_uri": {
          "type": [
            "string",
            "null"
          ],
          "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
        },
        "price_eur": {
          "type": [
            "number",
            "null"
          ]
        },
        "price_usd": {
          "type": [
            "number",
            "null"
          ]
        },
        "qty_proxy": {
          "type": "number",
          "description": "Proxy copies of this printing. Proxies are not real cards: never counted as owned, always said Absent before sign-in"
        },
        "released_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "scryfall_id": {
          "type": "string"
        },
        "set_digital": {
          "type": "number",
          "description": "1 when the set is MTGO/Arena only: never a paper card"
        },
        "scryfall_url": {
          "type": "string",
          "description": "The card's page on Scryfall: link the card's name to it"
        },
        "qty_real_foil": {
          "type": "number",
          "description": "Of those, foil or etched. Absent before sign-in"
        },
        "price_eur_foil": {
          "type": [
            "number",
            "null"
          ]
        },
        "price_usd_foil": {
          "type": [
            "number",
            "null"
          ]
        },
        "collector_number": {
          "type": "string"
        }
      },
      "description": "The printing asked about, or the newest"
    },
    "printings": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "scryfall_id",
          "set_code",
          "collector_number",
          "scryfall_url",
          "set_name",
          "set_type",
          "set_digital",
          "released_at",
          "rarity",
          "lang",
          "image_uri",
          "finishes",
          "price_usd",
          "price_usd_foil",
          "price_eur",
          "price_eur_foil"
        ],
        "properties": {
          "lang": {
            "type": "string"
          },
          "rarity": {
            "type": "string"
          },
          "finishes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "qty_real": {
            "type": "number",
            "description": "Real copies of this printing the player owns. Absent before sign-in"
          },
          "set_code": {
            "type": "string"
          },
          "set_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "set_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "price_eur": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_usd": {
            "type": [
              "number",
              "null"
            ]
          },
          "qty_proxy": {
            "type": "number",
            "description": "Proxy copies of this printing. Proxies are not real cards: never counted as owned, always said Absent before sign-in"
          },
          "released_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "scryfall_id": {
            "type": "string"
          },
          "set_digital": {
            "type": "number",
            "description": "1 when the set is MTGO/Arena only: never a paper card"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "qty_real_foil": {
            "type": "number",
            "description": "Of those, foil or etched. Absent before sign-in"
          },
          "price_eur_foil": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_usd_foil": {
            "type": [
              "number",
              "null"
            ]
          },
          "collector_number": {
            "type": "string"
          }
        }
      },
      "description": "Every printing, newest set first, each with what the player owns of it"
    },
    "signed_in": {
      "type": "boolean",
      "const": false,
      "description": "Present, false, when the user has not signed in: the answer holds no copies, holdings or totals, so say nothing about what they own"
    }
  }
}
card_detail annotations
{
  "title": "Card detail",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
move_holding — Move holding
Advertised by the server during the last successful anonymous check.
Advertised destructive

"The card is physically HERE now." Moves a holding (stack) to a location (id or name; unknown names are created). Allocation statuses reconcile automatically: sleeved allocations into decks elsewhere drop to staged; staged allocations into the deck living at the target location become sleeved. Report the status_changes to the user.

move_holding input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "holding_id",
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "Target location id or name"
    },
    "holding_id": {
      "type": "string"
    }
  }
}
move_holding annotations
{
  "title": "Move holding",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
list_sets — List sets
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Browse the Magic set catalog (cached from Scryfall, newest release first) with the user's per-set progress: card_count (total printings in the set), owned_printings (printings held as REAL cards) and proxy_only_printings (printings held only as proxies — physically present but not tournament-legal or tradeable, never counted as owned). Filter by set_type (core, expansion, masters, commander, draft_innovation, funny, starter, promo, token, …), name substring, or include_digital (default false). Use the returned set codes with set_completion. Owning another set's printing of a card does not count toward that set here.

list_sets input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {
      "type": "string",
      "description": "Substring of the set name, e.g. \"ravnica\""
    },
    "limit": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991,
      "description": "Default 100, max 1000 — the catalog has ~1000 sets; prefer filters"
    },
    "offset": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
    },
    "set_type": {
      "type": "string",
      "description": "Exact Scryfall set_type, e.g. \"expansion\", \"core\", \"commander\", \"masters\""
    },
    "include_digital": {
      "type": "boolean",
      "description": "Include digital-only sets (default false)"
    }
  }
}
list_sets output schema
{
  "type": "object",
  "required": [
    "sets"
  ],
  "properties": {
    "sets": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code",
          "name",
          "set_type",
          "released_at",
          "card_count",
          "digital",
          "icon_svg_uri",
          "parent_set_code",
          "owned_printings",
          "proxy_only_printings"
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "digital": {
            "type": "number",
            "description": "1 for a digital-only set"
          },
          "set_type": {
            "type": "string"
          },
          "card_count": {
            "type": "number",
            "description": "Printings in the set"
          },
          "released_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "icon_svg_uri": {
            "type": [
              "string",
              "null"
            ]
          },
          "owned_printings": {
            "type": "number",
            "description": "The set's printings the player owns as real cards"
          },
          "parent_set_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "proxy_only_printings": {
            "type": "number",
            "description": "Printings held only as proxies. Proxies are not real cards: never counted as owned, always said"
          }
        }
      }
    }
  }
}
list_sets annotations
{
  "title": "List sets",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
set_completion — Set completion
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Collection completion for one set, optionally one rarity ("Which uncommons from Ravnica Remastered am I missing?" → set "ravnica remastered", rarity "uncommon"). Accepts a set code or name. Every printing in the set is classified once: owned (≥1 real copy of this exact printing) | owned_other_printing (real copy from a different set only) | proxy_only (the user's only copies are proxies) | missing (no copy at all). `counts` always covers all four; `status` picks which card lists are returned — the default "missing" also includes the proxy_only and owned_other_printing lists for disclosure. Missing cards are priced cheapest-first in `currency` (default USD; cached prices at most 7 days old); price_to_complete covers every card not owned as a real copy of this set's printing. finish "foil" answers "which foils am I missing": only printings that exist in foil/etched are in scope, only foil/etched copies count as owned, prices switch to foil prices, and missing entries carry owned_nonfoil when the user holds the card in nonfoil ("nonfoil" is symmetric via owned_foil — mention these wrong-finish copies when reporting). Foil-only printings are always priced from their foil price; with the default finish "any", owned entries report foil_quantity when some copies are foil/etched. DISCLOSURE: when proxy_only is non-empty, tell the user those cards are proxies — physically present but not tournament-legal and not tradeable — and never count them as collected.

set_completion input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "set"
  ],
  "properties": {
    "set": {
      "type": "string",
      "description": "Set code (\"rvr\") or set name (\"Ravnica Remastered\")"
    },
    "finish": {
      "enum": [
        "any",
        "foil",
        "nonfoil"
      ],
      "type": "string",
      "description": "Finish goal (default \"any\"). \"foil\" = foil-set tracking: foil/etched-capable printings only, foil/etched copies count, foil prices"
    },
    "rarity": {
      "enum": [
        "common",
        "uncommon",
        "rare",
        "mythic"
      ],
      "type": "string"
    },
    "status": {
      "enum": [
        "missing",
        "proxy_only",
        "owned_other_printing",
        "owned",
        "all"
      ],
      "type": "string",
      "description": "Which card lists to return (default \"missing\", which includes the disclosure lists)"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
set_completion output schema
{
  "type": "object",
  "required": [
    "set",
    "rarity",
    "finish",
    "total",
    "counts",
    "complete",
    "completion_pct",
    "currency",
    "price_to_complete"
  ],
  "properties": {
    "set": {
      "type": "object",
      "required": [
        "code",
        "name",
        "set_type",
        "released_at",
        "card_count"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "set_type": {
          "type": "string"
        },
        "card_count": {
          "type": "number"
        },
        "released_at": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "note": {
      "type": "string"
    },
    "owned": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "collector_number",
          "scryfall_url",
          "image_uri",
          "rarity",
          "price",
          "quantity"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit price in `currency`, the goal finish first; null when the printing has none"
          },
          "rarity": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "also_proxies": {
            "type": "number",
            "description": "Proxy copies beside the real ones, not counted"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "foil_quantity": {
            "type": "number"
          },
          "collector_number": {
            "type": "string"
          }
        }
      }
    },
    "total": {
      "type": "number",
      "description": "Printings in scope"
    },
    "counts": {
      "type": "object",
      "required": [
        "owned",
        "owned_other_printing",
        "proxy_only",
        "missing"
      ],
      "properties": {
        "owned": {
          "type": "number"
        },
        "missing": {
          "type": "number"
        },
        "proxy_only": {
          "type": "number"
        },
        "owned_other_printing": {
          "type": "number"
        }
      }
    },
    "finish": {
      "enum": [
        "any",
        "foil",
        "nonfoil"
      ],
      "type": "string"
    },
    "rarity": {
      "type": "string",
      "description": "The rarity asked, or \"all\""
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "collector_number",
          "scryfall_url",
          "image_uri",
          "rarity",
          "price"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit price in `currency`, the goal finish first; null when the printing has none"
          },
          "rarity": {
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "owned_foil": {
            "type": "number",
            "description": "Under the nonfoil goal: foil copies owned, which do not count; say so"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "owned_nonfoil": {
            "type": "number",
            "description": "Under the foil goal: nonfoil copies owned, which do not count; say so"
          },
          "collector_number": {
            "type": "string"
          }
        }
      }
    },
    "complete": {
      "type": "boolean"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "proxy_only": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "collector_number",
          "scryfall_url",
          "image_uri",
          "rarity",
          "price",
          "proxies"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit price in `currency`, the goal finish first; null when the printing has none"
          },
          "rarity": {
            "type": "string"
          },
          "proxies": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "collector_number": {
            "type": "string"
          }
        }
      },
      "description": "Cards held only as proxies, never collected. Proxies are not real cards: never counted as owned, always said"
    },
    "completion_pct": {
      "type": "number"
    },
    "proxy_disclosure": {
      "type": "string",
      "description": "Present when proxy_only is not empty: relay it"
    },
    "price_to_complete": {
      "type": [
        "number",
        "null"
      ],
      "description": "Every card in scope not owned as a real copy of this printing, missing ones unpriced left out"
    },
    "owned_other_printing": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "collector_number",
          "scryfall_url",
          "image_uri",
          "rarity",
          "price",
          "copies_elsewhere"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unit price in `currency`, the goal finish first; null when the printing has none"
          },
          "rarity": {
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "collector_number": {
            "type": "string"
          },
          "copies_elsewhere": {
            "type": "number"
          }
        }
      },
      "description": "Owned only in another set's printing"
    }
  }
}
set_completion annotations
{
  "title": "Set completion",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
collection_value — Collection value
Advertised by the server during the last successful anonymous check.
Advertised read-only

Total collection value in `currency` (default USD), plus gain/loss versus recorded purchase prices (converted through ECB rates). include_proxies defaults to FALSE — proxies are excluded from value everywhere unless explicitly requested; say so when reporting. top_movers:true adds the biggest 7-day price movers among owned cards (needs nightly snapshots). The value over time is price_history.

collection_value input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    },
    "top_movers": {
      "type": "boolean"
    },
    "include_proxies": {
      "type": "boolean",
      "description": "Default false"
    }
  }
}
collection_value output schema
{
  "type": "object",
  "required": [
    "currency",
    "include_proxies",
    "total_value",
    "priced_cards",
    "unpriced_cards",
    "purchase_known",
    "fx_date"
  ],
  "properties": {
    "fx_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The day of the ECB rates used"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "top_movers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "set_code",
          "scryfall_url",
          "image_uri",
          "owned",
          "from",
          "to",
          "change",
          "change_total",
          "since"
        ],
        "properties": {
          "to": {
            "type": [
              "number",
              "null"
            ]
          },
          "from": {
            "type": [
              "number",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "owned": {
            "type": "number"
          },
          "since": {
            "type": "string"
          },
          "change": {
            "type": [
              "number",
              "null"
            ]
          },
          "set_code": {
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "change_total": {
            "type": [
              "number",
              "null"
            ],
            "description": "change × owned copies"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          }
        }
      },
      "description": "The biggest 7-day movers among owned cards, when asked"
    },
    "total_value": {
      "type": [
        "number",
        "null"
      ]
    },
    "priced_cards": {
      "type": "number"
    },
    "purchase_known": {
      "type": "object",
      "required": [
        "cards",
        "purchase_total",
        "current_value",
        "gain_loss"
      ],
      "properties": {
        "cards": {
          "type": "number"
        },
        "gain_loss": {
          "type": [
            "number",
            "null"
          ]
        },
        "current_value": {
          "type": [
            "number",
            "null"
          ]
        },
        "purchase_total": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "description": "Gain or loss over the copies with a recorded purchase price only"
    },
    "unpriced_cards": {
      "type": "number",
      "description": "Copies with no price, left out of total_value"
    },
    "include_proxies": {
      "type": "boolean",
      "description": "false: proxies are left out of every figure; say so"
    }
  }
}
collection_value annotations
{
  "title": "Collection value",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
price_history — Price history
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Price over time, from the nightly snapshots Reliquary keeps of every printing it prices (for every printing since November 2026, before that only for owned ones; daily for 90 days, then one a week for a year). WITH a card reference: that printing's unit price per day in `currency` (`price` non-foil, `price_foil` foil, null where it has none), any card, owned or not; `since` is the first day kept (null: no history yet, say so). WITHOUT a card: the user's collection value per day — the cards owned TODAY at each day's prices (a card sold leaves the whole line); `value` sums only the copies that had a price that day and `cards_priced` counts them out of `cards`, so a rise where cards_priced rises is a card whose history starts there, not a price move: say so. Nothing is estimated. include_proxies defaults to FALSE: proxies count as zero, say so when reporting. days: 30 or 90 (a point a day) or 365 (a point a week); default 90. A day reads the latest snapshot at most 14 days old. Prices are Scryfall's list prices (USD from TCGplayer, EUR from Cardmarket); CHF is EUR × the stored ECB rate.

price_history input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "days": {
      "anyOf": [
        {
          "type": "number",
          "const": 30
        },
        {
          "type": "number",
          "const": 90
        },
        {
          "type": "number",
          "const": 365
        }
      ],
      "description": "30, 90 or 365; default 90"
    },
    "name": {
      "type": "string",
      "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    },
    "set_code": {
      "type": "string",
      "description": "Set code, e.g. \"2xm\""
    },
    "scryfall_id": {
      "type": "string",
      "description": "Exact Scryfall printing id, if known"
    },
    "include_proxies": {
      "type": "boolean",
      "description": "Collection only; default false"
    },
    "collector_number": {
      "type": "string",
      "description": "Collector number within the set"
    }
  }
}
price_history output schema
{
  "type": "object",
  "required": [
    "currency",
    "days",
    "points"
  ],
  "properties": {
    "days": {
      "type": "number",
      "description": "30 or 90 (a point a day), 365 (a point a week)"
    },
    "name": {
      "type": "string",
      "description": "The English name"
    },
    "cards": {
      "type": "number",
      "description": "The collection: copies owned today, each priced at each day's prices"
    },
    "since": {
      "type": [
        "string",
        "null"
      ],
      "description": "A card asked: the first day a price was kept; null: no history yet, say so"
    },
    "points": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "date",
              "price",
              "price_foil"
            ],
            "properties": {
              "date": {
                "type": "string"
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "A card: non-foil unit price that day"
              },
              "price_foil": {
                "type": [
                  "number",
                  "null"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "date",
              "value",
              "cards_priced"
            ],
            "properties": {
              "date": {
                "type": "string"
              },
              "value": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The collection: the sum over the copies priced that day; null when none was"
              },
              "cards_priced": {
                "type": "number",
                "description": "Copies the value covers, out of `cards`: a rise with it is a history starting, not a price move"
              }
            }
          }
        ]
      }
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "set_code": {
      "type": "string"
    },
    "image_uri": {
      "type": [
        "string",
        "null"
      ],
      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
    },
    "scryfall_id": {
      "type": "string",
      "description": "A card asked: the printing"
    },
    "rate_missing": {
      "type": "string",
      "description": "No rate for the currency: prices are null for want of it, not missing"
    },
    "scryfall_url": {
      "type": "string",
      "description": "The card's page on Scryfall: link the card's name to it"
    },
    "include_proxies": {
      "type": "boolean",
      "description": "The collection: false leaves proxies out (as zero); say so"
    },
    "collector_number": {
      "type": "string"
    }
  }
}
price_history annotations
{
  "title": "Price history",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
list_decks — List decks
Advertised by the server during the last successful anonymous check.
Advertised read-only

List all decks with format, card counts and allocation counts. `editable` false: the deck is past the decks the user's plan keeps editable. It still reads, shares, exports and deletes, and a change to it answers PLAN_LIMIT: say so.

list_decks input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
list_decks output schema
{
  "type": "object",
  "required": [
    "decks"
  ],
  "properties": {
    "decks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "format",
          "description",
          "commander_scryfall_id",
          "partner_scryfall_id",
          "companion_scryfall_id",
          "card_count",
          "editable",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language its rows ask for unless a row says otherwise; null any"
          },
          "name": {
            "type": "string"
          },
          "play": {
            "enum": [
              "casual",
              "tournament"
            ],
            "type": "string",
            "description": "How the deck is played. tournament: a copy only a proxy covers counts as missing, until a real copy replaces it. casual: proxies play, and a deck with proxies is not tournament legal: say so. Absent for a partner app"
          },
          "format": {
            "enum": [
              "commander",
              "pdh",
              "dc",
              "standard",
              "pioneer",
              "modern",
              "premodern",
              "legacy",
              "vintage",
              "pauper",
              "casual"
            ],
            "type": "string"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "description": "Null: the player's own; partner:<client id> a partner app's. Absent for a partner app"
          },
          "user_id": {
            "type": "string",
            "description": "Absent for a partner app"
          },
          "editable": {
            "type": "boolean",
            "description": "False: past the decks the user's plan keeps editable; a change answers PLAN_LIMIT. Say so."
          },
          "card_count": {
            "type": "number"
          },
          "created_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "location_id": {
            "type": "string",
            "description": "The deck's own place, where sleeved cards are. Absent for a partner app"
          },
          "made_by_you": {
            "type": "boolean",
            "description": "Partner apps only: this app made the deck"
          },
          "snapshot_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Always null for now: the frozen copy of the list a partner app will register (PIX-306), not yet written. Absent for a partner app"
          },
          "location_name": {
            "type": "string",
            "description": "Absent for a partner app"
          },
          "open_to_trade": {
            "type": "number",
            "description": "1: its claimed copies are on every tradelist the user publishes, each naming this deck"
          },
          "allocation_count": {
            "type": "number",
            "description": "Claims on the collection. Absent for a partner app"
          },
          "partner_scryfall_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The second commander of a pair"
          },
          "commander_scryfall_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "companion_scryfall_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The companion, a sideboard row; null for none"
          }
        }
      }
    }
  }
}
list_decks annotations
{
  "title": "List decks",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
create_deck — Create deck
Advertised by the server during the last successful anonymous check.
Open-world

Create a deck. Formats: commander | pdh (Pauper Commander) | dc (Duel Commander) | standard | pioneer | modern | premodern | legacy | vintage | pauper | casual (default casual). A location of kind "deck" with the same name is created automatically — sleeved cards physically live there. For commander, pdh and dc decks pass the commander as a card reference; it is added to the deck list automatically. A pair (Partner, "Choose a Background" + a Background, Doctor's companion + a Doctor) goes in commander + partner. A companion (Lurrus, Yorion, …) goes in companion: it is added to the sideboard (outside the 100 in a commander format, one of the 15 elsewhere), and deck_health checks its condition: a card that breaks it makes the deck not legal, and the issue names it. Never refused for the plan: a deck past the decks the user's plan keeps editable is made with its list and answers editable:false and plan_limit, which names the decks that take edits: relay it.

create_deck input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "format": {
      "enum": [
        "commander",
        "pdh",
        "dc",
        "standard",
        "pioneer",
        "modern",
        "premodern",
        "legacy",
        "vintage",
        "pauper",
        "casual"
      ],
      "type": "string"
    },
    "partner": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      },
      "description": "The second commander of a pair"
    },
    "commander": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      }
    },
    "companion": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      },
      "description": "The companion: a card with the Companion ability, kept in the sideboard"
    },
    "description": {
      "type": "string"
    }
  }
}
create_deck annotations
{
  "title": "Create deck",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
update_deck — Update deck
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Change a deck (id or name): its name, format (commander | pdh (Pauper Commander) | dc (Duel Commander) | standard | pioneer | modern | premodern | legacy | vintage | pauper | casual), description, or who leads it. commander / partner take a card reference; null removes that commander (the card stays in the list). A newly named commander that the list lacks is added to the main deck. Fields left out are unchanged. companion takes a card reference (null: none; the card stays in the list): a card with the Companion ability, moved to or added to the sideboard (outside the 100 in a commander format); deck_health checks its condition and names any card that breaks it. Changing the format changes which rules deck_health and deck_stats apply; it never changes the list. lang sets the language the deck's rows ask for (Scryfall's code: de, ja, zhs…; null any) unless a row has its own: a preference, so a copy in another language still counts and is offered marked. open_to_trade:true PUBLISHES this deck's claimed copies on every tradelist the user publishes, each naming this deck (trading one breaks it): say so and ask before turning it on. The deck stays whole. play is how the deck is played (every deck starts casual): tournament counts a copy only a proxy covers as missing, so deck_status, the buylist, its wantlist link, trade matches and posts list that card until a real copy replaces the proxy; the proxy stays in the deck, and nothing is written to the list. casual plays proxies, and a deck with them is not tournament legal.

update_deck input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "lang": {
      "anyOf": [
        {
          "enum": [
            "en",
            "de",
            "fr",
            "it",
            "es",
            "pt",
            "ja",
            "ko",
            "ru",
            "zhs",
            "zht",
            "he",
            "la",
            "grc",
            "ar",
            "sa",
            "ph",
            "qya"
          ],
          "type": "string",
          "description": "Scryfall's language code: en, de, fr, it, es, pt, ja, ko, ru, zhs, zht, …"
        },
        {
          "type": "null"
        }
      ],
      "description": "The language the deck's rows ask for unless a row has its own; null any"
    },
    "name": {
      "type": "string"
    },
    "play": {
      "enum": [
        "casual",
        "tournament"
      ],
      "type": "string",
      "description": "tournament: a copy only a proxy covers counts as missing. casual (the default): proxies play"
    },
    "format": {
      "enum": [
        "commander",
        "pdh",
        "dc",
        "standard",
        "pioneer",
        "modern",
        "premodern",
        "legacy",
        "vintage",
        "pauper",
        "casual"
      ],
      "type": "string"
    },
    "partner": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
            },
            "set_code": {
              "type": "string",
              "description": "Set code, e.g. \"2xm\""
            },
            "scryfall_id": {
              "type": "string",
              "description": "Exact Scryfall printing id, if known"
            },
            "collector_number": {
              "type": "string",
              "description": "Collector number within the set"
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "The second commander of a pair"
    },
    "commander": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
            },
            "set_code": {
              "type": "string",
              "description": "Set code, e.g. \"2xm\""
            },
            "scryfall_id": {
              "type": "string",
              "description": "Exact Scryfall printing id, if known"
            },
            "collector_number": {
              "type": "string",
              "description": "Collector number within the set"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "companion": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
            },
            "set_code": {
              "type": "string",
              "description": "Set code, e.g. \"2xm\""
            },
            "scryfall_id": {
              "type": "string",
              "description": "Exact Scryfall printing id, if known"
            },
            "collector_number": {
              "type": "string",
              "description": "Collector number within the set"
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "The companion, kept in the sideboard; null: none"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "open_to_trade": {
      "type": "boolean",
      "description": "true: the deck's claimed copies join every published tradelist, named as this deck's"
    }
  }
}
update_deck annotations
{
  "title": "Update deck",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": true
}
delete_deck — Delete deck
Advertised by the server during the last successful anonymous check.
Advertised destructive

DESTRUCTIVE: delete a deck (id or name). Holdings are NEVER deleted — every allocation is released and sleeved cards physically return to "Unsorted". Without confirm:true this returns a dry-run summary only; repeat with confirm:true to delete.

delete_deck input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "confirm": {
      "type": "boolean"
    }
  }
}
delete_deck annotations
{
  "title": "Delete deck",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
add_wants — Add wants
Advertised by the server during the last successful anonymous check.
Open-world

Add cards to a deck's list (its wantlist), or to the personal deck-independent wantlist when deck is omitted. Send the whole list in ONE call (max 75 items): it is resolved and written in one batch. section: main (default) or sideboard, per item or for the whole call; commander formats have no sideboard. By default a want accepts ANY printing of the card (oracle-level). Set pin:true with a specific printing to require exactly that printing. Duplicate adds merge quantities. Adding a card claims nothing: each added row comes back with its coverage from the collection — allocated, shared_in, claimable (free copies you own, not yet claimed), missing — and proxies_allocated. Relay shared_detail / also_shared_with and proxies as deck_status requires. Next step: claim_from_collection. lang per item: the language the row asks for (Scryfall's code: de, ja, zhs…), a preference that trading matches first.

add_wants input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "items"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name; omit for the personal wantlist"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pin": {
            "type": "boolean",
            "description": "Pin to the exact printing referenced"
          },
          "lang": {
            "anyOf": [
              {
                "enum": [
                  "en",
                  "de",
                  "fr",
                  "it",
                  "es",
                  "pt",
                  "ja",
                  "ko",
                  "ru",
                  "zhs",
                  "zht",
                  "he",
                  "la",
                  "grc",
                  "ar",
                  "sa",
                  "ph",
                  "qya"
                ],
                "type": "string",
                "description": "Scryfall's language code: en, de, fr, it, es, pt, ja, ko, ru, zhs, zht, …"
              },
              {
                "type": "null"
              }
            ],
            "description": "The language this row asks for; omitted, the deck's"
          },
          "name": {
            "type": "string",
            "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
          },
          "section": {
            "enum": [
              "main",
              "sideboard"
            ],
            "type": "string"
          },
          "quantity": {
            "type": "integer",
            "default": 1,
            "maximum": 9007199254740991,
            "minimum": 1
          },
          "set_code": {
            "type": "string",
            "description": "Set code, e.g. \"2xm\""
          },
          "scryfall_id": {
            "type": "string",
            "description": "Exact Scryfall printing id, if known"
          },
          "collector_number": {
            "type": "string",
            "description": "Collector number within the set"
          }
        }
      },
      "maxItems": 75,
      "minItems": 1
    },
    "section": {
      "enum": [
        "main",
        "sideboard"
      ],
      "type": "string",
      "description": "Section for every item without its own (default main)"
    }
  }
}
add_wants annotations
{
  "title": "Add wants",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
update_want — Update want
Advertised by the server during the last successful anonymous check.
Advertised destructive

Change a deck-list row (want_id from deck_status): its quantity and/or its section (main | sideboard). quantity 0 cuts the card. Cutting a card or lowering its count RELEASES the copies the deck held beyond the new count: staged ones are simply free again, sleeved ones physically return to "Unsorted". The response lists them under `released` — tell the user, they may need to take the card out of the deck box. Cutting a commander also removes it as commander. lang sets the language the row asks for (Scryfall's code; null follows the deck's): a preference, it changes no copy.

update_want input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "want_id"
  ],
  "properties": {
    "lang": {
      "anyOf": [
        {
          "enum": [
            "en",
            "de",
            "fr",
            "it",
            "es",
            "pt",
            "ja",
            "ko",
            "ru",
            "zhs",
            "zht",
            "he",
            "la",
            "grc",
            "ar",
            "sa",
            "ph",
            "qya"
          ],
          "type": "string",
          "description": "Scryfall's language code: en, de, fr, it, es, pt, ja, ko, ru, zhs, zht, …"
        },
        {
          "type": "null"
        }
      ]
    },
    "section": {
      "enum": [
        "main",
        "sideboard"
      ],
      "type": "string"
    },
    "want_id": {
      "type": "string"
    },
    "quantity": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
    }
  }
}
update_want annotations
{
  "title": "Update want",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
replace_card — Replace card
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Swap one card of a deck list for another, keeping its count and section: the row want_id is cut and `replacement` is added. Typical use: a missing card and a pick from find_substitutes. Copies the deck held of the old card are released (listed under `released`; sleeved ones return to "Unsorted"). Nothing is claimed for the new card — the returned row shows its coverage (claimable = you own a free copy); run claim_from_collection to claim it.

replace_card input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "want_id",
    "replacement"
  ],
  "properties": {
    "want_id": {
      "type": "string",
      "description": "The row to replace (from deck_status)"
    },
    "replacement": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      },
      "description": "The card that takes its place"
    }
  }
}
replace_card annotations
{
  "title": "Replace card",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": true
}
deck_status — Deck status
Advertised by the server during the last successful anonymous check.
Advertised read-only

Per-card status of a deck list (deck id or name). deck.commanders names who leads it (one card, or a pair); deck.companion names its companion, or null; its row is the sideboard row with is_companion (outside the 100 in a commander format); deck.editable false: the deck is past the decks the user's plan keeps editable, and a change to it answers PLAN_LIMIT. sections counts main (commander included) and sideboard. Each row: its section, is_commander, wanted quantity and how it is covered — allocated (this deck's own copies), shared_in (copies deliberately shared from other decks — ALWAYS disclose these with which decks share them and where the cards physically are), claimable (free copies exist in the collection), missing. sleeved counts the allocated (own) copies that are physically in the deck; the other allocated copies are staged, still where they were. Row status is the strongest complete coverage: allocated > shared_in > claimable > missing. also_shared_with lists this deck's OWN copies that another deck also claims as shared: the two decks cannot be played at the same time — ALWAYS disclose these too, with the other deck and where the card physically is. A row with missing > 0 may carry held_elsewhere: copies the user DOES own that another deck claims (deck, where they are, is_proxy). Never call such a card "not owned": say it is in that deck, and that claim_from_collection with allow_shared:true would share it. deck.play tournament: a copy only a proxy covers counts as missing, and proxies_missing says how many of a row's missing copies the deck plays as proxies: say "you play a proxy; a tournament needs the real card". On a casual deck proxies count as covered.

deck_status input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    }
  }
}
deck_status output schema
{
  "type": "object",
  "required": [
    "deck",
    "totals",
    "sections",
    "wants"
  ],
  "properties": {
    "deck": {
      "type": "object",
      "required": [
        "id",
        "name",
        "format",
        "description",
        "commanders",
        "companion",
        "editable",
        "lang",
        "open_to_trade",
        "play"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "lang": {
          "type": [
            "string",
            "null"
          ],
          "description": "The language the deck's rows ask for unless a row has its own; null any"
        },
        "name": {
          "type": "string"
        },
        "play": {
          "enum": [
            "casual",
            "tournament"
          ],
          "type": "string",
          "description": "How the deck is played. tournament: a copy only a proxy covers counts as missing, until a real copy replaces it. casual: proxies play, and a deck with proxies is not tournament legal: say so"
        },
        "format": {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        },
        "editable": {
          "type": "boolean",
          "description": "False: past the decks the user's plan keeps editable; a change answers PLAN_LIMIT"
        },
        "companion": {
          "anyOf": [
            {
              "type": "object",
              "required": [
                "scryfall_id",
                "name",
                "scryfall_url",
                "image_uri"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                },
                "scryfall_id": {
                  "type": "string"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall: link the card's name to it"
                }
              }
            },
            {
              "type": "null"
            }
          ],
          "description": "The companion, or null: a sideboard row, outside the 100 in a commander format. deck_health checks its condition"
        },
        "commanders": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "scryfall_id",
              "name",
              "scryfall_url",
              "image_uri"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "scryfall_id": {
                "type": "string"
              },
              "scryfall_url": {
                "type": "string",
                "description": "The card's page on Scryfall: link the card's name to it"
              }
            }
          }
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "open_to_trade": {
          "type": "boolean",
          "description": "True: its claimed copies are on every tradelist the user publishes, each naming this deck. Say so"
        }
      }
    },
    "wants": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "want_id",
          "oracle_id",
          "pinned_scryfall_id",
          "name",
          "scryfall_url",
          "image_uri",
          "section",
          "lang",
          "lang_asked",
          "wanted",
          "allocated",
          "shared_in",
          "sleeved",
          "claimable",
          "missing",
          "status",
          "shared_detail",
          "also_shared_with",
          "proxies_allocated",
          "proxies_missing",
          "held_elsewhere",
          "is_commander",
          "is_companion"
        ],
        "properties": {
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row's own language, Scryfall's code (de, ja, zhs…); null follows the deck's"
          },
          "name": {
            "type": "string",
            "description": "The English name"
          },
          "status": {
            "enum": [
              "allocated",
              "shared_in",
              "claimable",
              "missing"
            ],
            "type": "string",
            "description": "The strongest complete coverage"
          },
          "wanted": {
            "type": "number"
          },
          "missing": {
            "type": "number",
            "description": "On a tournament deck this counts copies only a proxy covers: see proxies_missing"
          },
          "section": {
            "enum": [
              "main",
              "sideboard"
            ],
            "type": "string",
            "description": "main (the commander included) or sideboard"
          },
          "sleeved": {
            "type": "number",
            "description": "Of allocated: copies physically in the deck; the rest are staged, still where they were"
          },
          "want_id": {
            "type": "string"
          },
          "allocated": {
            "type": "number",
            "description": "This deck's own copies"
          },
          "claimable": {
            "type": "number",
            "description": "Free copies in the collection: not missing. On a tournament deck, real copies only"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row's picture on Scryfall, to show as it is: the printing the row pins, else one printing of the card; null when the catalogue has none"
          },
          "oracle_id": {
            "type": "string"
          },
          "shared_in": {
            "type": "number",
            "description": "Copies borrowed as shared from other decks: always disclose, with shared_detail"
          },
          "lang_asked": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language the row asks for: its own, else the deck's; null any. A preference: a copy in another language still counts"
          },
          "is_commander": {
            "type": "boolean"
          },
          "is_companion": {
            "type": "boolean",
            "description": "This sideboard row is the deck's companion"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "shared_detail": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity"
              ],
              "properties": {
                "deck": {
                  "type": "string",
                  "description": "The other deck"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string",
                  "description": "Where the copy physically is"
                }
              }
            },
            "description": "Borrowed copies: which other decks also claim them and where they physically are. Always disclose."
          },
          "held_elsewhere": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity",
                "is_proxy"
              ],
              "properties": {
                "deck": {
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A proxy is not a real card: say so"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string"
                }
              }
            },
            "description": "On a row with copies missing: copies the user owns that another deck claims. Never call the card \"not owned\"."
          },
          "proxies_missing": {
            "type": "number",
            "description": "Of missing, on a tournament deck: copies the deck plays as a proxy. Say so: \"you play a proxy; a tournament needs the real card\". 0 on a casual deck"
          },
          "also_shared_with": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity"
              ],
              "properties": {
                "deck": {
                  "type": "string",
                  "description": "The other deck"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string",
                  "description": "Where the copy physically is"
                }
              }
            },
            "description": "This deck's own copies another deck also claims as shared: the two decks cannot be played at once. Always disclose."
          },
          "proxies_allocated": {
            "type": "number",
            "description": "Claimed copies that are proxies: always say so"
          },
          "pinned_scryfall_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The printing the row pins; null: any printing"
          }
        }
      }
    },
    "totals": {
      "type": "object",
      "required": [
        "wanted",
        "allocated",
        "shared_in",
        "sleeved",
        "claimable",
        "missing",
        "proxies_missing"
      ],
      "properties": {
        "wanted": {
          "type": "number"
        },
        "missing": {
          "type": "number"
        },
        "sleeved": {
          "type": "number"
        },
        "allocated": {
          "type": "number"
        },
        "claimable": {
          "type": "number"
        },
        "shared_in": {
          "type": "number",
          "description": "Copies borrowed from other decks"
        },
        "proxies_missing": {
          "type": "number",
          "description": "Of missing, on a tournament deck: copies it plays as proxies. Say so"
        }
      }
    },
    "sections": {
      "type": "object",
      "required": [
        "main",
        "sideboard"
      ],
      "properties": {
        "main": {
          "type": "number"
        },
        "sideboard": {
          "type": "number"
        }
      }
    }
  }
}
deck_status annotations
{
  "title": "Deck status",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
deck_health — Deck health
Advertised by the server during the last successful anonymous check.
Advertised read-only

Composed deck report: format legality (with per-issue detail: size, copy limits, sideboard, banned and restricted cards, commander and pairing rules, colour identity — pdh and dc by their own lists — and the companion's condition, naming each card that breaks it; deck.companion names the companion), missing cards, shared-copy disclosures (copies this deck borrows AND its own copies that other decks borrow — relay both), proxy count, and price-to-complete in `currency` (default USD). Proxies never affect legality but are always reported as a warning.

deck_health input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
deck_health output schema
{
  "type": "object",
  "required": [
    "deck",
    "legality",
    "cards_wanted",
    "sideboard_cards",
    "missing_cards",
    "missing",
    "shared_copies",
    "proxy_count",
    "price_to_complete"
  ],
  "properties": {
    "deck": {
      "type": "object",
      "required": [
        "id",
        "name",
        "format",
        "companion"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "format": {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        },
        "companion": {
          "type": [
            "string",
            "null"
          ],
          "description": "The companion's name, or null; legality names each card that breaks its condition"
        }
      }
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "missing",
          "proxies_missing",
          "scryfall_url",
          "image_uri"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "missing": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The cheapest priced printing, else the card by name: link the name to it"
          },
          "proxies_missing": {
            "type": "number",
            "description": "Of missing, on a tournament deck: copies it plays as proxies. Say \"you play a proxy; a tournament needs the real card\""
          }
        }
      }
    },
    "legality": {
      "type": "object",
      "required": [
        "legal",
        "issues"
      ],
      "properties": {
        "legal": {
          "type": "boolean",
          "description": "The list against its format's rules. Proxies never affect it: the proxies warning says what they cost"
        },
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "severity",
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "`proxies` is the warning that the list holds proxies: always relay it. On a casual deck it says the deck is not tournament legal; on a tournament deck, that its proxies count as missing"
              },
              "message": {
                "type": "string"
              },
              "severity": {
                "enum": [
                  "error",
                  "warning"
                ],
                "type": "string"
              }
            }
          }
        }
      }
    },
    "proxy_count": {
      "type": "number",
      "description": "Claimed proxies: always say so"
    },
    "cards_wanted": {
      "type": "number"
    },
    "missing_cards": {
      "type": "number"
    },
    "shared_copies": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url",
          "shared_in",
          "detail"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "detail": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "shared_in": {
            "type": "number"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          }
        }
      },
      "description": "Copies this deck borrows and its own copies other decks borrow: relay every line"
    },
    "sideboard_cards": {
      "type": "number"
    },
    "price_to_complete": {
      "type": "object",
      "required": [
        "currency",
        "amount",
        "unpriced_cards"
      ],
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        "rate_missing": {
          "type": "string",
          "description": "Present when CHF was asked and no CHF rate is stored: no CHF price could be given at all, the cards are not unpriced. Relay it."
        },
        "unpriced_cards": {
          "type": "number",
          "description": "Missing copies with no price, left out of amount: say how many"
        }
      }
    }
  }
}
deck_health annotations
{
  "title": "Deck health",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
check_legality — Check a decklist's legality
Advertised by the server during the last successful anonymous check.
Advertised read-only

Whether a pasted decklist is legal, without saving it: in one format, or in every format when none is given. Takes the list as text ("4 Lightning Bolt" a line; a "Commander" and a "Sideboard" section, or *CMDR*, as the sites write them), any language Scryfall prints. Each verdict has legal and its issues (severity error or warning, code, message: size, copy limits, banned and restricted cards, commander and colour identity, the companion's condition). A list with a card in not_found is never called legal: the not_checked issue names those cards; say so. read_as names a card read in another language. Read from the card catalogue only; it works before the user signs in. For a deck already in Reliquary, deck_health reports more (missing cards, shared copies, proxies).

check_legality input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "decklist"
  ],
  "properties": {
    "format": {
      "enum": [
        "commander",
        "pdh",
        "dc",
        "standard",
        "pioneer",
        "modern",
        "premodern",
        "legacy",
        "vintage",
        "pauper",
        "casual"
      ],
      "type": "string",
      "description": "One format to judge; omitted, every format but casual. commander | pdh (Pauper Commander) | dc (Duel Commander) | standard | pioneer | modern | premodern | legacy | vintage | pauper | casual"
    },
    "decklist": {
      "type": "string",
      "maxLength": 20000,
      "minLength": 1,
      "description": "The decklist as text, at most 250 different cards"
    }
  }
}
check_legality output schema
{
  "type": "object",
  "required": [
    "verdicts",
    "main_cards",
    "sideboard_cards",
    "commanders",
    "companion",
    "not_found",
    "shared_names",
    "read_as",
    "ignored_lines",
    "note"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "read_as": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "card",
          "scryfall_url"
        ],
        "properties": {
          "card": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          }
        }
      },
      "description": "Names read in another language, each with its card: \"Foudre → Lightning Bolt\""
    },
    "verdicts": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "format",
          "legal",
          "issues"
        ],
        "properties": {
          "legal": {
            "type": "boolean",
            "description": "The list against this format's rules. Never true while a card is in not_found: the issue `not_checked` names them"
          },
          "format": {
            "enum": [
              "commander",
              "pdh",
              "dc",
              "standard",
              "pioneer",
              "modern",
              "premodern",
              "legacy",
              "vintage",
              "pauper",
              "casual"
            ],
            "type": "string"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "severity",
                "code",
                "message"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "message": {
                  "type": "string",
                  "description": "What breaks the rule, naming the cards: relay it"
                },
                "severity": {
                  "enum": [
                    "error",
                    "warning"
                  ],
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "description": "One a format: the format asked, or every format but casual"
    },
    "companion": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "name",
            "scryfall_url"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "scryfall_url": {
              "type": "string",
              "description": "The card's page on Scryfall: link the card's name to it"
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "The companion the list names, or null"
    },
    "not_found": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Names the catalogue does not know, as typed: they were not checked, so say so"
    },
    "commanders": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          }
        }
      },
      "description": "The commanders the list names, by their English names"
    },
    "main_cards": {
      "type": "number",
      "description": "Cards read in the main deck, the commanders among them"
    },
    "shared_names": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "cards"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "cards": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "description": "Names in another language several cards share: not checked; ask which card is meant"
    },
    "ignored_lines": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Lines that were not read as cards (a maybeboard, a stray line)"
    },
    "sideboard_cards": {
      "type": "number",
      "description": "Cards read in the sideboard, the companion among them"
    }
  }
}
check_legality annotations
{
  "title": "Check a decklist's legality",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
deck_stats — Deck stats
Advertised by the server during the last successful anonymous check.
Advertised read-only

What a deck list is, for building: every row with its card facts (type, mana cost, mana value, colour identity, section, is_commander, is_companion), the mana curve of nonland cards (last bucket 7+), cards per type, coloured mana symbols against lands per colour, opening-hand land odds (exactly 0…7 lands in seven; two_to_four_lands), land_drops (a land every turn through turns 1…6, going first and second), and format legality. All figures are over the LIBRARY: the main deck without the commander(s) and without the sideboard. Probabilities are 0…1, hypergeometric — no mulligans, tutors or card draw; say so when quoting them. Optional `odds`: the chance of holding at least `want` (default 1) of a group of cards by `turn` (0 = the opening seven). Name the group by `cards` (names in the list) or by `type` (Land, Creature, …); on_the_play:true skips the first draw (two-player, going first). Reads the list only: it says nothing about which copies you own — use deck_status for that.

deck_stats input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "odds": {
      "type": "object",
      "properties": {
        "turn": {
          "type": "integer",
          "default": 0,
          "maximum": 30,
          "minimum": 0
        },
        "type": {
          "type": "string",
          "description": "A card type, e.g. \"Land\" or \"Creature\""
        },
        "want": {
          "type": "integer",
          "maximum": 9007199254740991,
          "minimum": 1
        },
        "cards": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Card names in the list, counted together"
        },
        "on_the_play": {
          "type": "boolean"
        }
      }
    }
  }
}
deck_stats output schema
{
  "type": "object",
  "required": [
    "deck",
    "legality",
    "stats",
    "note",
    "cards"
  ],
  "properties": {
    "deck": {
      "type": "object",
      "required": [
        "id",
        "name",
        "format"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "format": {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        }
      }
    },
    "note": {
      "type": "string"
    },
    "odds": {
      "type": "object",
      "required": [
        "group",
        "copies",
        "library",
        "turn",
        "want",
        "on_the_play",
        "probability"
      ],
      "properties": {
        "turn": {
          "type": "number"
        },
        "want": {
          "type": "number"
        },
        "group": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "copies": {
          "type": "number"
        },
        "library": {
          "type": "number"
        },
        "on_the_play": {
          "type": "boolean"
        },
        "probability": {
          "type": "number",
          "description": "0–1, hypergeometric: no mulligans, tutors or card draw. Say so."
        }
      },
      "description": "Present when odds were asked"
    },
    "cards": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "want_id",
          "name",
          "section",
          "quantity",
          "is_commander",
          "is_companion",
          "type",
          "type_line",
          "mana_cost",
          "cmc",
          "color_identity",
          "scryfall_id",
          "scryfall_url",
          "image_uri"
        ],
        "properties": {
          "cmc": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "enum": [
              "Land",
              "Creature",
              "Planeswalker",
              "Battle",
              "Instant",
              "Sorcery",
              "Artifact",
              "Enchantment",
              "Other"
            ],
            "type": "string"
          },
          "section": {
            "enum": [
              "main",
              "sideboard"
            ],
            "type": "string",
            "description": "main (the commander included) or sideboard"
          },
          "want_id": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "mana_cost": {
            "type": [
              "string",
              "null"
            ]
          },
          "type_line": {
            "type": "string"
          },
          "scryfall_id": {
            "type": "string"
          },
          "is_commander": {
            "type": "boolean"
          },
          "is_companion": {
            "type": "boolean",
            "description": "The deck's companion: a sideboard row, outside the library"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "color_identity": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "stats": {
      "type": "object",
      "required": [
        "library",
        "lands",
        "nonlands",
        "average_mana_value",
        "curve",
        "types",
        "color_pips",
        "land_colors",
        "opening_hand",
        "land_drops"
      ],
      "properties": {
        "curve": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "mana_value",
              "label",
              "cards"
            ],
            "properties": {
              "cards": {
                "type": "number"
              },
              "label": {
                "type": "string"
              },
              "mana_value": {
                "type": "number"
              }
            }
          }
        },
        "lands": {
          "type": "number"
        },
        "types": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "type",
              "cards"
            ],
            "properties": {
              "type": {
                "enum": [
                  "Land",
                  "Creature",
                  "Planeswalker",
                  "Battle",
                  "Instant",
                  "Sorcery",
                  "Artifact",
                  "Enchantment",
                  "Other"
                ],
                "type": "string"
              },
              "cards": {
                "type": "number"
              }
            }
          }
        },
        "library": {
          "type": "number",
          "description": "Cards drawn from: the main deck without the commander(s) and the sideboard"
        },
        "nonlands": {
          "type": "number"
        },
        "color_pips": {
          "type": "object",
          "required": [
            "W",
            "U",
            "B",
            "R",
            "G"
          ],
          "properties": {
            "B": {
              "type": "number"
            },
            "G": {
              "type": "number"
            },
            "R": {
              "type": "number"
            },
            "U": {
              "type": "number"
            },
            "W": {
              "type": "number"
            }
          }
        },
        "land_drops": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "turn",
              "on_the_play",
              "on_the_draw"
            ],
            "properties": {
              "turn": {
                "type": "number"
              },
              "on_the_draw": {
                "type": "number"
              },
              "on_the_play": {
                "type": "number"
              }
            }
          }
        },
        "land_colors": {
          "type": "object",
          "required": [
            "W",
            "U",
            "B",
            "R",
            "G"
          ],
          "properties": {
            "B": {
              "type": "number"
            },
            "G": {
              "type": "number"
            },
            "R": {
              "type": "number"
            },
            "U": {
              "type": "number"
            },
            "W": {
              "type": "number"
            }
          },
          "description": "Lands whose colour identity includes the colour: an estimate"
        },
        "opening_hand": {
          "type": "object",
          "required": [
            "lands",
            "two_to_four_lands"
          ],
          "properties": {
            "lands": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "lands",
                  "probability"
                ],
                "properties": {
                  "lands": {
                    "type": "number"
                  },
                  "probability": {
                    "type": "number"
                  }
                }
              }
            },
            "two_to_four_lands": {
              "type": "number"
            }
          }
        },
        "average_mana_value": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "legality": {
      "type": "object",
      "required": [
        "legal",
        "issues"
      ],
      "properties": {
        "legal": {
          "type": "boolean",
          "description": "The list against its format's rules. Proxies never affect it: the proxies warning says what they cost"
        },
        "issues": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "severity",
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "description": "`proxies` is the warning that the list holds proxies: always relay it. On a casual deck it says the deck is not tournament legal; on a tournament deck, that its proxies count as missing"
              },
              "message": {
                "type": "string"
              },
              "severity": {
                "enum": [
                  "error",
                  "warning"
                ],
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
deck_stats annotations
{
  "title": "Deck stats",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
search_cards — Search cards
Advertised by the server during the last successful anonymous check.
Advertised read-only

Find cards in the catalogue of every paper printing — NOT limited to what the user owns (search_collection is that). query is the start of a name ("lightn"), any words of a name in any order ("bolt", "harvest hand"), or a set code and collector number ("FDN 120") for one exact printing (match "printing"; otherwise match "name" and scryfall_id is the printing a bare name means). A name in another language is found too, by its start or in full, and by any word for languages written with spaces: the hit is the card under its English name, with `matched` the name that found it ("Foudre" → Lightning Bolt): tell the user which card it is. Each hit carries owned (real copies of any printing), free (real copies no deck claims exclusively) and proxies. DISCLOSURE: proxies are never counted as owned — say "you hold N proxies" separately. Served from the local catalogue with no Scryfall call; a card released after the last catalogue load may be missing — card_detail by name still finds it once the user is signed in (before sign-in it reads the same catalogue, so ask them to sign in first). A very common word alone ("dragon", "of") reads only the first few hundred names: add another word or the start of the name. Default 12 hits, max 30. Before the user signs in, hits carry no owned, free or proxies: say nothing about what they own.

search_cards input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "query"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "maximum": 30,
      "minimum": 1
    },
    "query": {
      "type": "string",
      "description": "Name start, name words (in English or another language), or \"SET NUMBER\""
    }
  }
}
search_cards output schema
{
  "type": "object",
  "required": [
    "hits"
  ],
  "properties": {
    "hits": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "scryfall_id",
          "name",
          "set_code",
          "collector_number",
          "scryfall_url",
          "oracle_id",
          "type_line",
          "mana_cost",
          "cmc",
          "color_identity",
          "rarity",
          "image_uri",
          "match"
        ],
        "properties": {
          "cmc": {
            "type": "number"
          },
          "free": {
            "type": "number",
            "description": "Of the real copies, those no deck claims exclusively. Absent before sign-in"
          },
          "name": {
            "type": "string",
            "description": "The English name"
          },
          "match": {
            "enum": [
              "printing",
              "name"
            ],
            "type": "string",
            "description": "printing: the query named this exact printing; name: any printing of the card"
          },
          "owned": {
            "type": "number",
            "description": "Real copies held, any printing. Proxies are never counted here. Absent before sign-in: never say the user owns none"
          },
          "rarity": {
            "type": "string"
          },
          "matched": {
            "type": "string",
            "description": "The name in another language that found the card: tell the user which card it is"
          },
          "proxies": {
            "type": "number",
            "description": "Proxy copies held, counted apart from owned: say \"you hold N proxies\" separately. Absent before sign-in"
          },
          "set_code": {
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "mana_cost": {
            "type": [
              "string",
              "null"
            ]
          },
          "oracle_id": {
            "type": "string"
          },
          "type_line": {
            "type": "string"
          },
          "scryfall_id": {
            "type": "string",
            "description": "The printing a bare name means, or the exact printing for a set + number query"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "color_identity": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "collector_number": {
            "type": "string"
          }
        }
      },
      "description": "Catalogue hits, best first, not limited to what the user owns"
    }
  }
}
search_cards annotations
{
  "title": "Search cards",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
whats_missing — Whats missing
Advertised by the server during the last successful anonymous check.
Advertised read-only

Cards missing from a deck (not coverable from the collection) with the cheapest cached printing price per card (`cheapest_price`, non-foil, and `cheapest_printing` as "SET number"; both null when no printing has a price yet) and a price-to-complete total in `currency` (default USD). The total leaves unpriced cards out: say how many rows have no price. Prices come from the local printings cache (nightly refresh). Run claim_from_collection first, or copies the user owns and has not claimed are still counted as coverable, not missing.

whats_missing input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
whats_missing output schema
{
  "type": "object",
  "required": [
    "deck",
    "currency",
    "missing_cards",
    "price_to_complete",
    "note",
    "rows"
  ],
  "properties": {
    "deck": {
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "want_id",
          "oracle_id",
          "pinned_scryfall_id",
          "name",
          "scryfall_url",
          "image_uri",
          "section",
          "lang",
          "lang_asked",
          "wanted",
          "allocated",
          "shared_in",
          "sleeved",
          "claimable",
          "missing",
          "status",
          "shared_detail",
          "also_shared_with",
          "proxies_allocated",
          "proxies_missing",
          "held_elsewhere",
          "cheapest_price",
          "cheapest_printing",
          "price_source",
          "missing_cost"
        ],
        "properties": {
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row's own language, Scryfall's code (de, ja, zhs…); null follows the deck's"
          },
          "name": {
            "type": "string",
            "description": "The English name"
          },
          "status": {
            "enum": [
              "allocated",
              "shared_in",
              "claimable",
              "missing"
            ],
            "type": "string",
            "description": "The strongest complete coverage"
          },
          "wanted": {
            "type": "number"
          },
          "missing": {
            "type": "number",
            "description": "On a tournament deck this counts copies only a proxy covers: see proxies_missing"
          },
          "section": {
            "enum": [
              "main",
              "sideboard"
            ],
            "type": "string",
            "description": "main (the commander included) or sideboard"
          },
          "sleeved": {
            "type": "number",
            "description": "Of allocated: copies physically in the deck; the rest are staged, still where they were"
          },
          "want_id": {
            "type": "string"
          },
          "allocated": {
            "type": "number",
            "description": "This deck's own copies"
          },
          "claimable": {
            "type": "number",
            "description": "Free copies in the collection: not missing. On a tournament deck, real copies only"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "oracle_id": {
            "type": "string"
          },
          "shared_in": {
            "type": "number",
            "description": "Copies borrowed as shared from other decks: always disclose, with shared_detail"
          },
          "lang_asked": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language the row asks for: its own, else the deck's; null any. A preference: a copy in another language still counts"
          },
          "missing_cost": {
            "type": [
              "number",
              "null"
            ]
          },
          "price_source": {
            "type": "string",
            "description": "The price's basis"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The cheapest priced printing, else the card by name: link the name to it"
          },
          "shared_detail": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity"
              ],
              "properties": {
                "deck": {
                  "type": "string",
                  "description": "The other deck"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string",
                  "description": "Where the copy physically is"
                }
              }
            },
            "description": "Borrowed copies: which other decks also claim them and where they physically are. Always disclose."
          },
          "cheapest_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Non-foil; null: no printing has a price yet"
          },
          "held_elsewhere": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity",
                "is_proxy"
              ],
              "properties": {
                "deck": {
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A proxy is not a real card: say so"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string"
                }
              }
            },
            "description": "On a row with copies missing: copies the user owns that another deck claims. Never call the card \"not owned\"."
          },
          "proxies_missing": {
            "type": "number",
            "description": "Of missing, on a tournament deck: copies the deck plays as a proxy. Say so: \"you play a proxy; a tournament needs the real card\". 0 on a casual deck"
          },
          "also_shared_with": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity"
              ],
              "properties": {
                "deck": {
                  "type": "string",
                  "description": "The other deck"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string",
                  "description": "Where the copy physically is"
                }
              }
            },
            "description": "This deck's own copies another deck also claims as shared: the two decks cannot be played at once. Always disclose."
          },
          "cheapest_printing": {
            "type": [
              "string",
              "null"
            ],
            "description": "\"SET number\" of the priced printing"
          },
          "proxies_allocated": {
            "type": "number",
            "description": "Claimed copies that are proxies: always say so"
          },
          "pinned_scryfall_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The printing the row pins; null: any printing"
          }
        }
      }
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "rate_missing": {
      "type": "string",
      "description": "Present when CHF was asked and no CHF rate is stored: no CHF price could be given at all, the cards are not unpriced. Relay it."
    },
    "missing_cards": {
      "type": "number"
    },
    "price_to_complete": {
      "type": "number",
      "description": "Leaves out the rows with no price: say how many"
    }
  }
}
whats_missing annotations
{
  "title": "Whats missing",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
personal_wantlist — Personal wantlist
Advertised by the server during the last successful anonymous check.
Advertised read-only

The personal wantlist: cards the user wants that belong to no deck (add with add_wants without `deck`, change or cut a row with update_want). Per row: wanted, claimable (free copies the user already holds — those are not missing) and missing. Only the `missing` copies appear on the shared wantlist (create_share_link kind "wantlist" without deck) and in match_tradelist / compare_trade.

personal_wantlist input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
personal_wantlist output schema
{
  "type": "object",
  "required": [
    "totals",
    "wants"
  ],
  "properties": {
    "wants": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "want_id",
          "oracle_id",
          "pinned_scryfall_id",
          "name",
          "scryfall_url",
          "image_uri",
          "section",
          "lang",
          "lang_asked",
          "wanted",
          "allocated",
          "shared_in",
          "sleeved",
          "claimable",
          "missing",
          "status",
          "shared_detail",
          "also_shared_with",
          "proxies_allocated",
          "proxies_missing",
          "held_elsewhere"
        ],
        "properties": {
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row's own language, Scryfall's code (de, ja, zhs…); null follows the deck's"
          },
          "name": {
            "type": "string",
            "description": "The English name"
          },
          "status": {
            "enum": [
              "allocated",
              "shared_in",
              "claimable",
              "missing"
            ],
            "type": "string",
            "description": "The strongest complete coverage"
          },
          "wanted": {
            "type": "number"
          },
          "missing": {
            "type": "number",
            "description": "On a tournament deck this counts copies only a proxy covers: see proxies_missing"
          },
          "section": {
            "enum": [
              "main",
              "sideboard"
            ],
            "type": "string",
            "description": "main (the commander included) or sideboard"
          },
          "sleeved": {
            "type": "number",
            "description": "Of allocated: copies physically in the deck; the rest are staged, still where they were"
          },
          "want_id": {
            "type": "string"
          },
          "allocated": {
            "type": "number",
            "description": "This deck's own copies"
          },
          "claimable": {
            "type": "number",
            "description": "Free copies in the collection: not missing. On a tournament deck, real copies only"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row's picture on Scryfall, to show as it is: the printing the row pins, else one printing of the card; null when the catalogue has none"
          },
          "oracle_id": {
            "type": "string"
          },
          "shared_in": {
            "type": "number",
            "description": "Copies borrowed as shared from other decks: always disclose, with shared_detail"
          },
          "lang_asked": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language the row asks for: its own, else the deck's; null any. A preference: a copy in another language still counts"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "shared_detail": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity"
              ],
              "properties": {
                "deck": {
                  "type": "string",
                  "description": "The other deck"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string",
                  "description": "Where the copy physically is"
                }
              }
            },
            "description": "Borrowed copies: which other decks also claim them and where they physically are. Always disclose."
          },
          "held_elsewhere": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity",
                "is_proxy"
              ],
              "properties": {
                "deck": {
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A proxy is not a real card: say so"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string"
                }
              }
            },
            "description": "On a row with copies missing: copies the user owns that another deck claims. Never call the card \"not owned\"."
          },
          "proxies_missing": {
            "type": "number",
            "description": "Of missing, on a tournament deck: copies the deck plays as a proxy. Say so: \"you play a proxy; a tournament needs the real card\". 0 on a casual deck"
          },
          "also_shared_with": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity"
              ],
              "properties": {
                "deck": {
                  "type": "string",
                  "description": "The other deck"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string",
                  "description": "Where the copy physically is"
                }
              }
            },
            "description": "This deck's own copies another deck also claims as shared: the two decks cannot be played at once. Always disclose."
          },
          "proxies_allocated": {
            "type": "number",
            "description": "Claimed copies that are proxies: always say so"
          },
          "pinned_scryfall_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The printing the row pins; null: any printing"
          }
        }
      }
    },
    "totals": {
      "type": "object",
      "required": [
        "wanted",
        "claimable",
        "missing"
      ],
      "properties": {
        "wanted": {
          "type": "number"
        },
        "missing": {
          "type": "number"
        },
        "claimable": {
          "type": "number"
        }
      }
    }
  }
}
personal_wantlist annotations
{
  "title": "Personal wantlist",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
generate_buylist — Generate buylist
Advertised by the server during the last successful anonymous check.
Advertised read-only

Buylist of missing cards for one deck (id or name) or ALL decks (omit deck), cheapest-first, with a mass-entry friendly text block ("4 Lightning Bolt" per line) for Cardmarket/TCGplayer and an estimated total in `currency` (default USD). Per item: quantity, unit_price (non-foil), cheapest_printing ("SET number") and the decks that miss it. total_estimated leaves out the `unpriced_items`: give that count with the total.

generate_buylist input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name; omit for all decks combined"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
generate_buylist output schema
{
  "type": "object",
  "required": [
    "currency",
    "total_estimated",
    "unpriced_items",
    "items",
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "description": "\"4 Card Name\" per line, for a shop's mass entry"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "quantity",
          "unit_price",
          "cheapest_printing",
          "scryfall_url",
          "image_uri",
          "decks"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "decks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The decks that miss it"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "unit_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "The cheapest priced non-foil printing; null: no price yet, left out of the total"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "cheapest_printing": {
            "type": [
              "string",
              "null"
            ],
            "description": "\"SET number\" of the priced printing"
          }
        }
      }
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "rate_missing": {
      "type": "string",
      "description": "Present when CHF was asked and no CHF rate is stored: no CHF price could be given at all, the cards are not unpriced. Relay it."
    },
    "unpriced_items": {
      "type": "number"
    },
    "total_estimated": {
      "type": "number",
      "description": "Leaves out unpriced_items: give that count with the total"
    }
  }
}
generate_buylist annotations
{
  "title": "Generate buylist",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
complete_deck_on_budget — Complete deck on budget
Advertised by the server during the last successful anonymous check.
Advertised read-only

How to finish one deck (id or name) with `budget` to spend, in `currency` (default USD): the missing copies bought cheapest first while the budget lasts (`buy`, with `text` as "4 Card Name" lines for a shop), the copies that do not fit (`over_budget`, `over_by`), and the cards with no price yet (`no_price_yet`, left out of every total). A price is the cheapest non-foil printing among the priced ones, or the pinned printing's when the list pins one. Each over-budget card carries `owned_stand_ins`: cards the user owns with copies no deck claims outright, in the deck's colour identity, and `cheaper_to_buy`: cards whose cheapest price for every copy of the line fits what is left of the budget. With `stand_ins_by` "rules text" both come from the cards nearest by rules text (a nearer mana value and a more played card first), legal in the format; with "type and mana value" (no list for the card yet) they are mechanical filters only, still legal in the format, and `cheaper_to_buy` is empty; null for the commander, which gets none. Either way YOU judge whether one does the job. Say `proxies` beside a stand-in that has any, and name every deck in its `shared_with`: those copies are already borrowed. A line's `claimed_by_other_decks` means the user owns copies another deck claims: say so before they buy (claim_from_collection with allow_shared can borrow them). Name the cards in `printings_not_compared` as possibly cheaper: some of their printings have no price yet, and the nightly price refresh reaches every printing within a week (`prices_queued` is always 0: this tool queues nothing). Copies the user owns free (`claimable`) are not missing: run claim_from_collection first. Read-only: it changes nothing and starts no work. Relay `rate_missing` when present. `stand_ins_withheld`, when present, means the user's plan has no stand-ins: relay it once, as written.

complete_deck_on_budget input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck",
    "budget"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "budget": {
      "type": "number",
      "maximum": 1000000,
      "description": "Money to spend, in `currency`",
      "exclusiveMinimum": 0
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
complete_deck_on_budget output schema
{
  "type": "object",
  "required": [
    "deck",
    "currency",
    "budget",
    "total_estimated",
    "complete",
    "spend",
    "left_over",
    "over_by",
    "buy",
    "over_budget",
    "no_price_yet",
    "printings_not_compared",
    "prices_queued",
    "claimable",
    "text"
  ],
  "properties": {
    "buy": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "quantity",
          "unit_price",
          "cheapest_printing",
          "scryfall_id",
          "image_uri",
          "scryfall_url",
          "line_total",
          "claimed_by_other_decks"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "line_total": {
            "type": "number"
          },
          "unit_price": {
            "type": "number",
            "description": "The cheapest priced non-foil printing, or the pinned printing"
          },
          "scryfall_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "cheapest_printing": {
            "type": [
              "string",
              "null"
            ]
          },
          "claimed_by_other_decks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity",
                "is_proxy"
              ],
              "properties": {
                "deck": {
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A proxy is not a real card: say so"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string"
                }
              }
            },
            "description": "Copies the user owns that another deck claims: say so before they buy"
          }
        }
      }
    },
    "deck": {
      "type": "object",
      "required": [
        "id",
        "name",
        "format"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "format": {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        }
      }
    },
    "text": {
      "type": "string"
    },
    "spend": {
      "type": "number"
    },
    "budget": {
      "type": "number"
    },
    "over_by": {
      "type": "number"
    },
    "complete": {
      "type": "boolean"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "claimable": {
      "type": "number",
      "description": "Free copies not claimed: not missing, claim_from_collection takes them"
    },
    "left_over": {
      "type": "number"
    },
    "over_budget": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "quantity",
          "unit_price",
          "cheapest_printing",
          "scryfall_id",
          "image_uri",
          "scryfall_url",
          "line_total",
          "claimed_by_other_decks",
          "want_id",
          "stand_ins_by",
          "owned_stand_ins",
          "cheaper_to_buy"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "want_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row a stand-in may replace (replace_card); null when none may"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "line_total": {
            "type": "number"
          },
          "unit_price": {
            "type": "number",
            "description": "The cheapest priced non-foil printing, or the pinned printing"
          },
          "scryfall_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "stand_ins_by": {
            "anyOf": [
              {
                "enum": [
                  "rules text",
                  "type and mana value"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null for the commander, and when the plan has no stand-ins"
          },
          "cheaper_to_buy": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "oracle_id",
                "name",
                "type_line",
                "mana_cost",
                "cmc",
                "scryfall_id",
                "image_uri",
                "scryfall_url",
                "unit_price",
                "cheapest_printing",
                "currency",
                "price_queued",
                "owned_claimed",
                "claimed_by",
                "similarity"
              ],
              "properties": {
                "cmc": {
                  "type": "number"
                },
                "name": {
                  "type": "string",
                  "description": "The English name"
                },
                "currency": {
                  "enum": [
                    "USD",
                    "EUR",
                    "CHF"
                  ],
                  "type": "string"
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                },
                "mana_cost": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "oracle_id": {
                  "type": "string"
                },
                "type_line": {
                  "type": "string"
                },
                "claimed_by": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The decks that claim the copies in owned_claimed: name them whenever owned_claimed is said"
                },
                "similarity": {
                  "type": "number",
                  "description": "0–1: how close the rules texts are, not a verdict"
                },
                "unit_price": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "The cheapest priced non-foil printing, in currency; null when none is priced yet"
                },
                "scryfall_id": {
                  "type": "string",
                  "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
                },
                "price_queued": {
                  "type": "boolean",
                  "description": "Always false from a tool: no tool queues a price; the nightly refresh prices the card"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "That printing's page on Scryfall: link the card's name to it"
                },
                "owned_claimed": {
                  "type": "number",
                  "description": "Copies the player owns that decks claim in full: not free, so the card is listed to buy"
                },
                "cheapest_printing": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "\"SET NUMBER\" of that printing; null when none is priced"
                }
              }
            }
          },
          "owned_stand_ins": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "type_line",
                "mana_cost",
                "cmc",
                "scryfall_id",
                "image_uri",
                "scryfall_url",
                "free",
                "proxies",
                "shared_with"
              ],
              "properties": {
                "cmc": {
                  "type": "number"
                },
                "free": {
                  "type": "number",
                  "description": "Copies no deck claims outright: they can go in without taking a card from another deck"
                },
                "name": {
                  "type": "string",
                  "description": "The English name"
                },
                "proxies": {
                  "type": "number",
                  "description": "Of the copies counted: proxies, not real cards. Always say so beside the name."
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                },
                "mana_cost": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "oracle_id": {
                  "type": "string"
                },
                "type_line": {
                  "type": "string"
                },
                "similarity": {
                  "type": "number",
                  "description": "0–1: how close the rules texts are, not a verdict"
                },
                "scryfall_id": {
                  "type": "string",
                  "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
                },
                "shared_with": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Decks that borrow these copies as shared: playing one here means both decks claim it. Name every one."
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "That printing's page on Scryfall: link the card's name to it"
                }
              }
            }
          },
          "cheapest_printing": {
            "type": [
              "string",
              "null"
            ]
          },
          "claimed_by_other_decks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity",
                "is_proxy"
              ],
              "properties": {
                "deck": {
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A proxy is not a real card: say so"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string"
                }
              }
            },
            "description": "Copies the user owns that another deck claims: say so before they buy"
          }
        }
      }
    },
    "no_price_yet": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "quantity",
          "scryfall_id",
          "image_uri",
          "scryfall_url",
          "claimed_by_other_decks"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "scryfall_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "claimed_by_other_decks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "physically_in",
                "quantity",
                "is_proxy"
              ],
              "properties": {
                "deck": {
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A proxy is not a real card: say so"
                },
                "quantity": {
                  "type": "number"
                },
                "physically_in": {
                  "type": "string"
                }
              }
            },
            "description": "On a row with copies missing: copies the user owns that another deck claims. Never call the card \"not owned\"."
          }
        }
      },
      "description": "Left out of every total: say so"
    },
    "rate_missing": {
      "type": "string",
      "description": "Present when CHF was asked and no CHF rate is stored: no CHF price could be given at all, the cards are not unpriced. Relay it."
    },
    "prices_queued": {
      "type": "number",
      "description": "Always 0: this tool queues nothing; the nightly refresh reaches every printing within a week"
    },
    "total_estimated": {
      "type": "number",
      "description": "Every missing copy with a price; leaves out no_price_yet"
    },
    "stand_ins_withheld": {
      "type": "string",
      "description": "Present when the user's plan has no stand-ins: relay it once, as written"
    },
    "printings_not_compared": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url",
          "printings"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "printings": {
            "type": "number"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          }
        }
      },
      "description": "Priced from part of their printings: one not yet priced may be cheaper"
    }
  }
}
complete_deck_on_budget annotations
{
  "title": "Complete deck on budget",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
what_can_i_build — What can I build
Advertised by the server during the last successful anonymous check.
Advertised read-only

Rank decks by how completable they are right now (allocated + shared + claimable free cards vs. the full list), optionally filtered by format. completion_pct 100 means every card is owned or already allocated.

what_can_i_build input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "format": {
      "enum": [
        "commander",
        "pdh",
        "dc",
        "standard",
        "pioneer",
        "modern",
        "premodern",
        "legacy",
        "vintage",
        "pauper",
        "casual"
      ],
      "type": "string"
    }
  }
}
what_can_i_build output schema
{
  "type": "object",
  "required": [
    "decks"
  ],
  "properties": {
    "decks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "deck_id",
          "deck",
          "format",
          "cards_wanted",
          "coverable",
          "missing",
          "missing_cards",
          "missing_links",
          "missing_names",
          "completion_pct"
        ],
        "properties": {
          "deck": {
            "type": "string"
          },
          "format": {
            "enum": [
              "commander",
              "pdh",
              "dc",
              "standard",
              "pioneer",
              "modern",
              "premodern",
              "legacy",
              "vintage",
              "pauper",
              "casual"
            ],
            "type": "string"
          },
          "deck_id": {
            "type": "string"
          },
          "missing": {
            "type": "number"
          },
          "coverable": {
            "type": "number",
            "description": "Claimed, shared and free copies together: 100% is not sleeved"
          },
          "cards_wanted": {
            "type": "number"
          },
          "missing_cards": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The first few cards it lacks, by name"
          },
          "missing_links": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "scryfall_url"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall: link the card's name to it"
                }
              }
            },
            "description": "The cards in missing_cards with their Scryfall pages: link each name"
          },
          "missing_names": {
            "type": "number",
            "description": "Different cards it lacks"
          },
          "completion_pct": {
            "type": "number"
          }
        }
      }
    }
  }
}
what_can_i_build annotations
{
  "title": "What can I build",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
show_card_location — Show where a card is
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks where a card is and a picture helps: shows each matching card with its image, every stack (how many, in which place, which printing) and the decks that claim it. Reads the same data as where_is and changes nothing. The result is also your answer in words: say the place first; name every deck on a stack whose claim is `shared`; say when a stack `is_proxy`. `more_cards` counts matches not shown.

show_card_location input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Card name or part of it"
    }
  }
}
show_card_location output schema
{
  "type": "object",
  "required": [
    "view",
    "query",
    "cards",
    "more_cards",
    "note"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "view": {
      "type": "string",
      "const": "card-location"
    },
    "cards": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url",
          "image_uri",
          "copies",
          "stacks",
          "more_stacks"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "copies": {
            "type": "number"
          },
          "stacks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "place",
                "quantity",
                "free",
                "printing",
                "scryfall_url",
                "image_uri",
                "finish",
                "is_proxy",
                "claims"
              ],
              "properties": {
                "free": {
                  "type": "number",
                  "description": "Copies no deck claims"
                },
                "place": {
                  "type": "string",
                  "description": "Where the stack physically is: say it first"
                },
                "claims": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "deck",
                      "quantity",
                      "shared",
                      "sleeved"
                    ],
                    "properties": {
                      "deck": {
                        "type": "string"
                      },
                      "shared": {
                        "type": "boolean",
                        "description": "A shared claim: name every deck on the stack"
                      },
                      "sleeved": {
                        "type": "boolean"
                      },
                      "quantity": {
                        "type": "number"
                      }
                    }
                  }
                },
                "finish": {
                  "enum": [
                    "nonfoil",
                    "foil",
                    "etched"
                  ],
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "The stack is proxies, not real cards: always say so"
                },
                "printing": {
                  "type": "string",
                  "description": "\"SET NUMBER\""
                },
                "quantity": {
                  "type": "number"
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall: link the card's name to it"
                }
              }
            }
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "more_stacks": {
            "type": "number",
            "description": "Stacks counted in copies and not listed"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          }
        }
      }
    },
    "query": {
      "type": "string"
    },
    "more_cards": {
      "type": "number",
      "description": "Matching cards not shown"
    }
  }
}
show_card_location annotations
{
  "title": "Show where a card is",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
show_buylist — Show what to buy
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks what to buy for a deck (id or name), or for all decks (omit deck), and a table helps: missing cards with count, cheapest non-foil printing and unit price, a total in `currency` (default USD) and the plain "4 Card Name" list. Reads the same data as generate_buylist and changes nothing; run claim_from_collection first or owned copies still count as coverable. Give `unpriced_items` with the total, and relay `rate_missing` when present: it means no CHF price could be given at all.

show_buylist input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name; omit for all decks combined"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
show_buylist output schema
{
  "type": "object",
  "required": [
    "view",
    "deck",
    "currency",
    "items",
    "more_items",
    "cards",
    "total_estimated",
    "unpriced_items",
    "text",
    "note"
  ],
  "properties": {
    "deck": {
      "type": [
        "string",
        "null"
      ],
      "description": "Null: every deck"
    },
    "note": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "view": {
      "type": "string",
      "const": "buylist"
    },
    "cards": {
      "type": "number"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "quantity",
          "unit_price",
          "cheapest_printing",
          "scryfall_url",
          "image_uri",
          "decks"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "decks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The decks that miss it"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "unit_price": {
            "type": [
              "number",
              "null"
            ],
            "description": "The cheapest priced non-foil printing; null: no price yet, left out of the total"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "cheapest_printing": {
            "type": [
              "string",
              "null"
            ],
            "description": "\"SET number\" of the priced printing"
          }
        }
      }
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "more_items": {
      "type": "number",
      "description": "Items counted and not listed"
    },
    "rate_missing": {
      "type": "string",
      "description": "Present when CHF was asked and no CHF rate is stored: no CHF price could be given at all, the cards are not unpriced. Relay it."
    },
    "unpriced_items": {
      "type": "number"
    },
    "total_estimated": {
      "type": "number",
      "description": "Leaves out unpriced_items: give that count with the total"
    }
  }
}
show_buylist annotations
{
  "title": "Show what to buy",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
show_deck — Show a deck
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks how a deck (id or name) stands and a summary card helps: claimed (and how many of those sleeved), shared, free to claim and missing, legality, proxies, price to complete in `currency` (default USD), with the shared and missing cards listed and a link to the deck. Reads the same data as deck_status and deck_health and changes nothing. ALWAYS relay every `shared` row with the other decks and where the card physically is (`borrowed`: another deck holds the copy; `lent`: this deck holds it and another counts on it), and the `proxies` count.

show_deck input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
show_deck output schema
{
  "type": "object",
  "required": [
    "view",
    "deck",
    "image_uri",
    "legal",
    "totals",
    "proxies",
    "shared",
    "more_shared",
    "missing",
    "more_missing",
    "price_to_complete",
    "note"
  ],
  "properties": {
    "deck": {
      "type": "object",
      "required": [
        "name",
        "format",
        "url"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "format": {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        }
      }
    },
    "note": {
      "type": "string"
    },
    "view": {
      "type": "string",
      "const": "deck"
    },
    "legal": {
      "type": "boolean"
    },
    "shared": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url",
          "image_uri",
          "quantity",
          "how",
          "with",
          "physically_in"
        ],
        "properties": {
          "how": {
            "enum": [
              "borrowed",
              "lent"
            ],
            "type": "string",
            "description": "borrowed: another deck holds the copy; lent: this deck holds it and another counts on it"
          },
          "name": {
            "type": "string"
          },
          "with": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The other decks"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row's picture on Scryfall, to show as it is: the printing the row pins, else one printing of the card; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "physically_in": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "description": "Relay every row, with the other decks and where the card physically is"
    },
    "totals": {
      "type": "object",
      "required": [
        "wanted",
        "allocated",
        "shared_in",
        "sleeved",
        "claimable",
        "missing",
        "proxies_missing"
      ],
      "properties": {
        "wanted": {
          "type": "number"
        },
        "missing": {
          "type": "number"
        },
        "sleeved": {
          "type": "number"
        },
        "allocated": {
          "type": "number"
        },
        "claimable": {
          "type": "number"
        },
        "shared_in": {
          "type": "number",
          "description": "Copies borrowed from other decks"
        },
        "proxies_missing": {
          "type": "number",
          "description": "Of missing, on a tournament deck: copies it plays as proxies. Say so"
        }
      }
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url",
          "image_uri",
          "quantity",
          "proxies_missing"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The row's picture on Scryfall, to show as it is: the printing the row pins, else one printing of the card; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "proxies_missing": {
            "type": "number",
            "description": "Of missing, on a tournament deck: copies it plays as proxies. Say \"you play a proxy; a tournament needs the real card\""
          }
        }
      }
    },
    "proxies": {
      "type": "number",
      "description": "Claimed proxies: always say so"
    },
    "image_uri": {
      "type": [
        "string",
        "null"
      ],
      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
    },
    "more_shared": {
      "type": "number"
    },
    "more_missing": {
      "type": "number"
    },
    "price_to_complete": {
      "type": "object",
      "required": [
        "currency",
        "amount",
        "unpriced_cards"
      ],
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        "rate_missing": {
          "type": "string",
          "description": "Present when CHF was asked and no CHF rate is stored: no CHF price could be given at all, the cards are not unpriced. Relay it."
        },
        "unpriced_cards": {
          "type": "number",
          "description": "Missing copies with no price, left out of amount"
        }
      }
    }
  }
}
show_deck annotations
{
  "title": "Show a deck",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
show_buildable_decks — Show what can be built
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks what they can build or play and a ranked list helps: the decks already in Reliquary, most complete first, each with a picture, the share of its list at hand and the first cards it misses, optionally for one format. Reads the same data as what_can_i_build and changes nothing. "At hand" counts claimed, shared and free copies together: 100% does not mean sleeved, and a deck at 100% may share copies with another deck. A deck that is not in Reliquary is not ranked: import it first.

show_buildable_decks input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "format": {
      "enum": [
        "commander",
        "pdh",
        "dc",
        "standard",
        "pioneer",
        "modern",
        "premodern",
        "legacy",
        "vintage",
        "pauper",
        "casual"
      ],
      "type": "string"
    }
  }
}
show_buildable_decks output schema
{
  "type": "object",
  "required": [
    "view",
    "format",
    "decks",
    "more_decks",
    "note"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "view": {
      "type": "string",
      "const": "buildable"
    },
    "decks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "deck",
          "format",
          "url",
          "image_uri",
          "cards_wanted",
          "coverable",
          "missing",
          "completion_pct",
          "missing_cards",
          "missing_links",
          "missing_names"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "deck": {
            "type": "string"
          },
          "format": {
            "enum": [
              "commander",
              "pdh",
              "dc",
              "standard",
              "pioneer",
              "modern",
              "premodern",
              "legacy",
              "vintage",
              "pauper",
              "casual"
            ],
            "type": "string"
          },
          "missing": {
            "type": "number"
          },
          "coverable": {
            "type": "number",
            "description": "Claimed, shared and free copies together: 100% is not sleeved"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "cards_wanted": {
            "type": "number"
          },
          "missing_cards": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "missing_links": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "name",
                "scryfall_url"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall: link the card's name to it"
                }
              }
            },
            "description": "The cards in missing_cards with their Scryfall pages: link each name"
          },
          "missing_names": {
            "type": "number"
          },
          "completion_pct": {
            "type": "number"
          }
        }
      }
    },
    "format": {
      "anyOf": [
        {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "more_decks": {
      "type": "number"
    }
  }
}
show_buildable_decks annotations
{
  "title": "Show what can be built",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
show_card — Show a card
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Use this when the user asks to see a card ("show me Lightning Bolt", "what does Rhystic Study look like?") or to compare a few: up to 8 cards, each drawn with its picture, mana cost, type line, rules text and printing, and its Scryfall link. A name may be in any language Scryfall prints; the card comes back under its English `name`, and `asked` keeps what was asked: when they differ, say which card it is ("Foudre is Lightning Bolt"). A bare name shows the printing the name means; give set_code and collector_number for one printing. This is a preview of the card, not of the player's copies: it says nothing about what they own (where_is and show_card_location do). Each card in `not_found` was not found: say so, with its `error`. Link each card's name to its `scryfall_url`. A name newer than the catalogue is looked up on Scryfall; a scryfall_id is read from the catalogue alone.

show_card input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "cards"
  ],
  "properties": {
    "cards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
          },
          "set_code": {
            "type": "string",
            "description": "Set code, e.g. \"2xm\""
          },
          "scryfall_id": {
            "type": "string",
            "description": "Exact Scryfall printing id, if known"
          },
          "collector_number": {
            "type": "string",
            "description": "Collector number within the set"
          }
        }
      },
      "maxItems": 8,
      "minItems": 1,
      "description": "The cards to show, 1 to 8: each by name (any language) or scryfall_id, optionally with set_code + collector_number"
    }
  }
}
show_card output schema
{
  "type": "object",
  "required": [
    "view",
    "cards",
    "not_found",
    "note"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "view": {
      "type": "string",
      "const": "card"
    },
    "cards": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "asked",
          "scryfall_id",
          "name",
          "set_code",
          "collector_number",
          "scryfall_url",
          "oracle_id",
          "mana_cost",
          "type_line",
          "oracle_text",
          "rarity",
          "set_name",
          "image_uri"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The English name"
          },
          "asked": {
            "type": "string",
            "description": "What was asked: a name in any language, an id, or a set and number. When it is not `name`, say which card it is"
          },
          "rarity": {
            "type": "string"
          },
          "set_code": {
            "type": "string"
          },
          "set_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The set's name; null when the set list does not hold it yet"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "mana_cost": {
            "type": [
              "string",
              "null"
            ]
          },
          "oracle_id": {
            "type": "string"
          },
          "type_line": {
            "type": "string"
          },
          "oracle_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's rules text"
          },
          "scryfall_id": {
            "type": "string"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "collector_number": {
            "type": "string"
          }
        }
      }
    },
    "not_found": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "asked",
          "error"
        ],
        "properties": {
          "asked": {
            "type": "string"
          },
          "error": {
            "type": "string",
            "description": "Why it was not found, and what to do"
          }
        }
      },
      "description": "Cards asked for and not found: say so"
    }
  }
}
show_card annotations
{
  "title": "Show a card",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
allocate — Allocate
Advertised by the server during the last successful anonymous check.

Allocate copies of a holding (holding_id from search_collection/where_is) to a deck (id or name). shared:false (default) claims free copies exclusively — the sum of non-shared allocations can never exceed the stack size. shared:true deliberately shares copies that other decks also use (always disclose: which decks, where the card physically is). status "staged" (default) earmarks without moving; "sleeved" also physically moves the cards into the deck's location (splitting the stack when only part of it is sleeved).

allocate input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "holding_id",
    "deck",
    "quantity"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "shared": {
      "type": "boolean"
    },
    "status": {
      "enum": [
        "staged",
        "sleeved"
      ],
      "type": "string"
    },
    "quantity": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 1
    },
    "holding_id": {
      "type": "string"
    }
  }
}
allocate annotations
{
  "title": "Allocate",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": false,
  "destructiveHint": false
}
sleeve — Sleeve
Advertised by the server during the last successful anonymous check.
Advertised destructive

Mark a staged allocation as sleeved: the cards physically move into the deck's location (stack splits if partial). allocation_id comes from allocate/deck_status/where_is.

sleeve input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "allocation_id"
  ],
  "properties": {
    "allocation_id": {
      "type": "string"
    }
  }
}
sleeve annotations
{
  "title": "Sleeve",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
sleeve_deck — Sleeve deck
Advertised by the server during the last successful anonymous check.
Advertised destructive

Sleeve everything a deck (id or name) has claimed for itself, in one call: each staged, non-shared allocation becomes sleeved and its copies physically move into the deck's location (a stack the deck holds only part of is split). Use it once the user says the deck is physically built. Borrowed copies never move: a shared allocation stays staged, and so does a copy whose stack another deck has sleeved. Returns `sleeved` and `stayed`; every `stayed` row carries its `reason`, the other decks (`also_allocated_to`) and where the card is (`physically_in`). ALWAYS tell the user which cards stayed and why, name the other decks on any `sleeved` row that lists them, and say which sleeved cards are proxies (`is_proxy`).

sleeve_deck input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    }
  }
}
sleeve_deck annotations
{
  "title": "Sleeve deck",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
unsleeve — Unsleeve
Advertised by the server during the last successful anonymous check.
Advertised destructive

Take a sleeved allocation back out of the deck: status returns to staged and the cards physically move to return_location (id or name, default "Unsorted").

unsleeve input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "allocation_id"
  ],
  "properties": {
    "allocation_id": {
      "type": "string"
    },
    "return_location": {
      "type": "string"
    }
  }
}
unsleeve annotations
{
  "title": "Unsleeve",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
claim_from_collection — Claim from collection
Advertised by the server during the last successful anonymous check.
Advertised destructive

Auto-match a deck's wants against the collection: free copies become non-shared staged allocations (real cards preferred over proxies). allow_shared:true additionally covers remaining needs with copies already allocated to OTHER decks, as explicitly shared allocations. Returns claimed / shared / missing. ALWAYS relay the shared list (with the other decks) and the missing list to the user. Every proxy it claims, owned or borrowed, is named in proxies_claimed (each claimed and shared entry carries is_proxy); proxy_warning, when not null, is one sentence: relay it to the user word for word. Claiming moves no real card: once the user has physically built the deck, sleeve_deck moves the claimed cards into it. On a tournament deck (deck.play) only real copies are claimed. They fill empty slots first, and each one past them releases one of the card's proxies (proxies_replaced, released: relay them). A released proxy that was sleeved is recorded back in "Unsorted": tell the user to take it out of the deck box and sleeve the real copy. This powers the "import deck → pull what I have → tell me what I lack" workflow.

claim_from_collection input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "allow_shared": {
      "type": "boolean",
      "description": "Default false"
    }
  }
}
claim_from_collection annotations
{
  "title": "Claim from collection",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
deallocate — Deallocate
Advertised by the server during the last successful anonymous check.
Advertised destructive

Release an allocation (fully, or `quantity` copies of it). Sleeved copies physically return to return_location (default "Unsorted"). Identify the allocation by allocation_id, or by holding_id + deck.

deallocate input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name (with holding_id)"
    },
    "quantity": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 1
    },
    "holding_id": {
      "type": "string"
    },
    "allocation_id": {
      "type": "string"
    },
    "return_location": {
      "type": "string"
    }
  }
}
deallocate annotations
{
  "title": "Deallocate",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": false,
  "destructiveHint": true
}
deallocate_all — Deallocate all
Advertised by the server during the last successful anonymous check.
Advertised destructive

DESTRUCTIVE: release EVERY allocation of a deck (holdings are never deleted; sleeved cards return to return_location, default "Unsorted"). Without confirm:true this returns a dry-run summary; repeat with confirm:true to execute.

deallocate_all input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "confirm": {
      "type": "boolean"
    },
    "return_location": {
      "type": "string"
    }
  }
}
deallocate_all annotations
{
  "title": "Deallocate all",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": true
}
allocation_conflicts — Allocation conflicts
Advertised by the server during the last successful anonymous check.
Advertised read-only

Decks that cannot be physically assembled at the same time: holdings promised (shared + non-shared) to more decks than copies exist. Use after claim_from_collection with allow_shared, and before the user takes decks to an event.

allocation_conflicts input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
allocation_conflicts output schema
{
  "type": "object",
  "required": [
    "conflicts",
    "summary"
  ],
  "properties": {
    "summary": {
      "type": "string"
    },
    "conflicts": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "card",
          "scryfall_url",
          "image_uri",
          "holding_id",
          "copies_owned",
          "copies_promised",
          "over_by",
          "decks"
        ],
        "properties": {
          "card": {
            "type": "string",
            "description": "\"Name (SET number)\""
          },
          "decks": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "deck",
                "quantity",
                "shared",
                "status"
              ],
              "properties": {
                "deck": {
                  "type": "string"
                },
                "shared": {
                  "type": "boolean",
                  "description": "A shared claim: always say so"
                },
                "status": {
                  "enum": [
                    "staged",
                    "sleeved"
                  ],
                  "type": "string"
                },
                "quantity": {
                  "type": "number"
                }
              }
            }
          },
          "over_by": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "holding_id": {
            "type": "string"
          },
          "copies_owned": {
            "type": "number"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "copies_promised": {
            "type": "number"
          }
        }
      }
    }
  }
}
allocation_conflicts annotations
{
  "title": "Allocation conflicts",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
find_substitutes — Find substitutes
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Cards that could replace a target card, two ways. `similar`: the cards whose rules text is nearest the target's (precomputed over the whole catalogue, best first: nearest by text, with a nearer mana value, a more played card and one whose effects point at the same side ahead; `similarity` 0–1 is the text closeness alone, not a verdict), fitted to the deck when given — its colour identity (both commanders of a pair, else the target's), legal in its format, not already in it — as `owned` (the user's cards with free copies) and `to_buy` (cheapest priced printing in `currency`, null when none is priced; `owned_claimed` = copies the user owns that the decks in `claimed_by` claim in full: name them). Nearness is in the words, not in how a card plays with the deck: YOU judge which do the job, and say so. `similar.known` false means no list exists for the card yet. `candidates`: owned cards passing mechanical filters only (a shared primary type, cmc within cmc_window, default ±2, ignored for lands; optional price_ceiling per copy; with a deck, legal in its format). Both lists leave out a banned card, and a restricted one unless the row holds a single copy, since a swap keeps the row's count. Disclose free vs. claimed counts, say `proxies` beside a card that has any, and name every deck in `shared_with`. A card to buy with no price yet gets one from the nightly price refresh (`price_queued` is always false: this tool queues nothing). To make the swap, call replace_card with the row's want_id. Read-only: it changes nothing and starts no work; a target named by a name newer than the catalogue is looked up on Scryfall. Not on every plan: a PLAN_LIMIT answer says so.

find_substitutes input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "target"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck context (id or name)"
    },
    "limit": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": -9007199254740991
    },
    "target": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      },
      "description": "The card to replace"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    },
    "cmc_window": {
      "type": "number"
    },
    "price_ceiling": {
      "type": "number"
    }
  }
}
find_substitutes output schema
{
  "type": "object",
  "required": [
    "target",
    "constraints",
    "note",
    "candidates",
    "similar"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "target": {
      "type": "object",
      "required": [
        "oracle_id",
        "name",
        "scryfall_url",
        "image_uri",
        "type_line",
        "cmc",
        "color_identity"
      ],
      "properties": {
        "cmc": {
          "type": "number"
        },
        "name": {
          "type": "string"
        },
        "image_uri": {
          "type": [
            "string",
            "null"
          ],
          "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
        },
        "oracle_id": {
          "type": "string"
        },
        "type_line": {
          "type": "string"
        },
        "scryfall_url": {
          "type": "string",
          "description": "The card's page on Scryfall, by its name"
        },
        "color_identity": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "similar": {
      "type": "object",
      "required": [
        "known",
        "owned",
        "to_buy",
        "prices_queued"
      ],
      "properties": {
        "known": {
          "type": "boolean",
          "description": "False: no list exists for the card yet"
        },
        "owned": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "oracle_id",
              "name",
              "type_line",
              "mana_cost",
              "cmc",
              "scryfall_id",
              "image_uri",
              "scryfall_url",
              "free",
              "proxies",
              "shared_with",
              "similarity"
            ],
            "properties": {
              "cmc": {
                "type": "number"
              },
              "free": {
                "type": "number",
                "description": "Copies no deck claims outright: they can go in without taking a card from another deck"
              },
              "name": {
                "type": "string",
                "description": "The English name"
              },
              "proxies": {
                "type": "number",
                "description": "Of the copies counted: proxies, not real cards. Always say so beside the name."
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "mana_cost": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "oracle_id": {
                "type": "string"
              },
              "type_line": {
                "type": "string"
              },
              "similarity": {
                "type": "number",
                "description": "0–1: how close the rules texts are, not a verdict"
              },
              "scryfall_id": {
                "type": "string",
                "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
              },
              "shared_with": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Decks that borrow these copies as shared: playing one here means both decks claim it. Name every one."
              },
              "scryfall_url": {
                "type": "string",
                "description": "That printing's page on Scryfall: link the card's name to it"
              }
            }
          }
        },
        "to_buy": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "oracle_id",
              "name",
              "type_line",
              "mana_cost",
              "cmc",
              "scryfall_id",
              "image_uri",
              "scryfall_url",
              "unit_price",
              "cheapest_printing",
              "currency",
              "price_queued",
              "owned_claimed",
              "claimed_by",
              "similarity"
            ],
            "properties": {
              "cmc": {
                "type": "number"
              },
              "name": {
                "type": "string",
                "description": "The English name"
              },
              "currency": {
                "enum": [
                  "USD",
                  "EUR",
                  "CHF"
                ],
                "type": "string"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "mana_cost": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "oracle_id": {
                "type": "string"
              },
              "type_line": {
                "type": "string"
              },
              "claimed_by": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The decks that claim the copies in owned_claimed: name them whenever owned_claimed is said"
              },
              "similarity": {
                "type": "number",
                "description": "0–1: how close the rules texts are, not a verdict"
              },
              "unit_price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The cheapest priced non-foil printing, in currency; null when none is priced yet"
              },
              "scryfall_id": {
                "type": "string",
                "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
              },
              "price_queued": {
                "type": "boolean",
                "description": "Always false from a tool: no tool queues a price; the nightly refresh prices the card"
              },
              "scryfall_url": {
                "type": "string",
                "description": "That printing's page on Scryfall: link the card's name to it"
              },
              "owned_claimed": {
                "type": "number",
                "description": "Copies the player owns that decks claim in full: not free, so the card is listed to buy"
              },
              "cheapest_printing": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "\"SET NUMBER\" of that printing; null when none is priced"
              }
            }
          }
        },
        "prices_queued": {
          "type": "number",
          "description": "Always 0: this tool queues nothing; the nightly refresh prices a card with no price"
        }
      }
    },
    "candidates": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "oracle_id",
          "name",
          "type_line",
          "mana_cost",
          "cmc",
          "color_identity",
          "oracle_text",
          "rarity",
          "scryfall_url",
          "image_uri",
          "owned",
          "free",
          "proxies",
          "shared_with",
          "unit_price",
          "currency"
        ],
        "properties": {
          "cmc": {
            "type": "number"
          },
          "free": {
            "type": "number",
            "description": "Copies no deck claims outright"
          },
          "name": {
            "type": "string"
          },
          "owned": {
            "type": "number"
          },
          "rarity": {
            "type": "string"
          },
          "proxies": {
            "type": "number",
            "description": "Of the copies counted: proxies, not real cards. Always say so beside the name."
          },
          "currency": {
            "enum": [
              "USD",
              "EUR",
              "CHF"
            ],
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "mana_cost": {
            "type": [
              "string",
              "null"
            ]
          },
          "oracle_id": {
            "type": "string"
          },
          "type_line": {
            "type": "string"
          },
          "unit_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "oracle_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "shared_with": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Decks that borrow these copies as shared: playing one here means both decks claim it. Name every one."
          },
          "scryfall_url": {
            "type": "string",
            "description": "A printing the player owns: its page on Scryfall"
          },
          "color_identity": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "description": "Owned cards passing mechanical filters only: judge functional similarity yourself"
    },
    "constraints": {
      "type": "object",
      "required": [
        "color_identity_within",
        "identity_source",
        "shared_primary_types",
        "cmc_window",
        "price_ceiling",
        "currency"
      ],
      "properties": {
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        "cmc_window": {
          "type": [
            "number",
            "string"
          ],
          "description": "The mana value window, or \"ignored (land)\""
        },
        "price_ceiling": {
          "type": [
            "number",
            "null"
          ]
        },
        "identity_source": {
          "type": "string"
        },
        "shared_primary_types": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "color_identity_within": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}
find_substitutes annotations
{
  "title": "Find substitutes",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
cards_for_commander — Cards for a commander
Advertised by the server during the last successful anonymous check.
Advertised read-only

Cards that belong in a commander deck (id or name; Commander, Duel Commander or Pauper Commander, with its commander set), in two lists titled by `title` ("For <commander>"; never call them recommendations). `played_with`: what the commander's tournament lists play, most played first — `share` 0–1 of its lists play the card, `share_elsewhere` of the format's other lists (a card far above its share elsewhere is this commander's own). Whenever you mention these counts, credit every source in `sources` by name with its link (TopDeck.gg always), and when `cedh` is true say they are cEDH tournament lists, not casual decks; `note` says it in one sentence. `known` false: under 10 lists a year, no counts. `on_theme`: the cards nearest the commander's rules text in its colours (`closeness` 0–1, not a verdict), for every commander, without the cards `played_with` holds. They are cards LIKE the commander — goblin makers for a goblin maker — and miss cards that work WITH it (the instants a spell-trigger commander wants): YOU judge which fit, and say so. Both lists are fitted to the deck: in its colour identity, legal in its format, not already in it; `owned` = the user's cards with free copies, `to_buy` = cheapest priced non-foil printing in `currency` (default USD), null when none is priced yet (the nightly price refresh prices it; `price_queued` is always false and `prices_queued` 0). Say `proxies` beside a card that has any, name every deck in `shared_with` (those copies are borrowed), and name the decks in `claimed_by` when `owned_claimed` > 0. `limit` per list and side, default 10, max 30. Read-only: it changes nothing and starts no work.

cards_for_commander input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "limit": {
      "type": "integer",
      "maximum": 30,
      "minimum": 1
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
cards_for_commander output schema
{
  "type": "object",
  "required": [
    "deck",
    "commanders",
    "title",
    "played_with",
    "on_theme",
    "prices_queued"
  ],
  "properties": {
    "deck": {
      "type": "object",
      "required": [
        "id",
        "name",
        "format"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "format": {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        }
      }
    },
    "title": {
      "type": "string",
      "description": "What the lists are called (\"For <commander>\"); never call them recommendations"
    },
    "on_theme": {
      "type": "object",
      "required": [
        "known",
        "owned",
        "to_buy"
      ],
      "properties": {
        "known": {
          "type": "boolean",
          "description": "False: no theme list for the commander yet"
        },
        "owned": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "oracle_id",
              "name",
              "type_line",
              "mana_cost",
              "cmc",
              "scryfall_id",
              "image_uri",
              "scryfall_url",
              "free",
              "proxies",
              "shared_with",
              "closeness"
            ],
            "properties": {
              "cmc": {
                "type": "number"
              },
              "free": {
                "type": "number",
                "description": "Copies no deck claims outright: they can go in without taking a card from another deck"
              },
              "name": {
                "type": "string",
                "description": "The English name"
              },
              "proxies": {
                "type": "number",
                "description": "Of the copies counted: proxies, not real cards. Always say so beside the name."
              },
              "closeness": {
                "type": "number",
                "description": "0–1: how close its rules text is to the commander's, not a verdict"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "mana_cost": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "oracle_id": {
                "type": "string"
              },
              "type_line": {
                "type": "string"
              },
              "scryfall_id": {
                "type": "string",
                "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
              },
              "shared_with": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Decks that borrow these copies as shared: playing one here means both decks claim it. Name every one."
              },
              "scryfall_url": {
                "type": "string",
                "description": "That printing's page on Scryfall: link the card's name to it"
              }
            }
          }
        },
        "to_buy": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "oracle_id",
              "name",
              "type_line",
              "mana_cost",
              "cmc",
              "scryfall_id",
              "image_uri",
              "scryfall_url",
              "unit_price",
              "cheapest_printing",
              "currency",
              "price_queued",
              "owned_claimed",
              "claimed_by",
              "closeness"
            ],
            "properties": {
              "cmc": {
                "type": "number"
              },
              "name": {
                "type": "string",
                "description": "The English name"
              },
              "currency": {
                "enum": [
                  "USD",
                  "EUR",
                  "CHF"
                ],
                "type": "string"
              },
              "closeness": {
                "type": "number",
                "description": "0–1: how close its rules text is to the commander's, not a verdict"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "mana_cost": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "oracle_id": {
                "type": "string"
              },
              "type_line": {
                "type": "string"
              },
              "claimed_by": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The decks that claim the copies in owned_claimed: name them whenever owned_claimed is said"
              },
              "unit_price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The cheapest priced non-foil printing, in currency; null when none is priced yet"
              },
              "scryfall_id": {
                "type": "string",
                "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
              },
              "price_queued": {
                "type": "boolean",
                "description": "Always false from a tool: no tool queues a price; the nightly refresh prices the card"
              },
              "scryfall_url": {
                "type": "string",
                "description": "That printing's page on Scryfall: link the card's name to it"
              },
              "owned_claimed": {
                "type": "number",
                "description": "Copies the player owns that decks claim in full: not free, so the card is listed to buy"
              },
              "cheapest_printing": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "\"SET NUMBER\" of that printing; null when none is priced"
              }
            }
          }
        }
      }
    },
    "commanders": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "oracle_id",
          "name",
          "scryfall_url",
          "image_uri"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "oracle_id": {
            "type": "string"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The deck's printing of the commander: its page on Scryfall"
          }
        }
      }
    },
    "played_with": {
      "type": "object",
      "required": [
        "known",
        "decks",
        "cedh",
        "sources",
        "note",
        "owned",
        "to_buy"
      ],
      "properties": {
        "cedh": {
          "type": "boolean",
          "description": "True: these are cEDH tournament lists, not casual decks. Say so wherever the counts show"
        },
        "note": {
          "type": "string",
          "description": "One sentence: how many lists, which kind, from where"
        },
        "decks": {
          "type": "number",
          "description": "Distinct lists counted"
        },
        "known": {
          "type": "boolean",
          "description": "False: under 10 tournament lists a year, no counts"
        },
        "owned": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "oracle_id",
              "name",
              "type_line",
              "mana_cost",
              "cmc",
              "scryfall_id",
              "image_uri",
              "scryfall_url",
              "free",
              "proxies",
              "shared_with",
              "share",
              "share_elsewhere"
            ],
            "properties": {
              "cmc": {
                "type": "number"
              },
              "free": {
                "type": "number",
                "description": "Copies no deck claims outright: they can go in without taking a card from another deck"
              },
              "name": {
                "type": "string",
                "description": "The English name"
              },
              "share": {
                "type": "number",
                "description": "0–1: the share of the commander's tournament lists that play the card"
              },
              "proxies": {
                "type": "number",
                "description": "Of the copies counted: proxies, not real cards. Always say so beside the name."
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "mana_cost": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "oracle_id": {
                "type": "string"
              },
              "type_line": {
                "type": "string"
              },
              "scryfall_id": {
                "type": "string",
                "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
              },
              "shared_with": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Decks that borrow these copies as shared: playing one here means both decks claim it. Name every one."
              },
              "scryfall_url": {
                "type": "string",
                "description": "That printing's page on Scryfall: link the card's name to it"
              },
              "share_elsewhere": {
                "type": "number",
                "description": "0–1: the share of the format's other lists that play it"
              }
            }
          }
        },
        "to_buy": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "oracle_id",
              "name",
              "type_line",
              "mana_cost",
              "cmc",
              "scryfall_id",
              "image_uri",
              "scryfall_url",
              "unit_price",
              "cheapest_printing",
              "currency",
              "price_queued",
              "owned_claimed",
              "claimed_by",
              "share",
              "share_elsewhere"
            ],
            "properties": {
              "cmc": {
                "type": "number"
              },
              "name": {
                "type": "string",
                "description": "The English name"
              },
              "share": {
                "type": "number",
                "description": "0–1: the share of the commander's tournament lists that play the card"
              },
              "currency": {
                "enum": [
                  "USD",
                  "EUR",
                  "CHF"
                ],
                "type": "string"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "mana_cost": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "oracle_id": {
                "type": "string"
              },
              "type_line": {
                "type": "string"
              },
              "claimed_by": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The decks that claim the copies in owned_claimed: name them whenever owned_claimed is said"
              },
              "unit_price": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "The cheapest priced non-foil printing, in currency; null when none is priced yet"
              },
              "scryfall_id": {
                "type": "string",
                "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
              },
              "price_queued": {
                "type": "boolean",
                "description": "Always false from a tool: no tool queues a price; the nightly refresh prices the card"
              },
              "scryfall_url": {
                "type": "string",
                "description": "That printing's page on Scryfall: link the card's name to it"
              },
              "owned_claimed": {
                "type": "number",
                "description": "Copies the player owns that decks claim in full: not free, so the card is listed to buy"
              },
              "share_elsewhere": {
                "type": "number",
                "description": "0–1: the share of the format's other lists that play it"
              },
              "cheapest_printing": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "\"SET NUMBER\" of that printing; null when none is priced"
              }
            }
          }
        },
        "sources": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "url",
              "lists"
            ],
            "properties": {
              "url": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "lists": {
                "type": "number"
              }
            }
          },
          "description": "Where the lists come from: credit each by name with its link (TopDeck.gg always) whenever the counts show"
        }
      }
    },
    "prices_queued": {
      "type": "number",
      "description": "Always 0: this tool queues nothing; the nightly refresh prices a card with no price"
    }
  }
}
cards_for_commander annotations
{
  "title": "Cards for a commander",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
deck_combos — Combos in a deck
Advertised by the server during the last successful anonymous check.
Advertised read-only

The combos in a deck (id or name), any format, from Commander Spellbook's combo database (a copy refreshed with the card catalogue, not a live search). `in_list`: combos the deck's main list holds whole, most played first (up to 30; `in_list_total` says how many, counted among the 400 most played candidates read). `one_card_away`: combos the list misses one card of, most played first (up to 20; `more_one_card_away` when there are more), that card legal in the deck's format, in its colour identity and not in the deck: `missing.have` "owned" = the user owns a free copy (say `proxies` beside it when > 0, and name every deck in `shared_with`: those copies are borrowed), "to_buy" = its cheapest priced non-foil printing in `currency` (default USD; null when none is priced yet), and when `owned_claimed` > 0 name the decks in `claimed_by` that hold the user's copies. Each combo: its `cards` (`must_be_commander`: it works only from the command zone, so it counts only when that card leads the deck), `produces` (what it makes), `requires` (a kind of card it also needs, any one), `prerequisites` (the board it starts from), `mana_needed`, `steps`, `notes`, and `url`, its page on Commander Spellbook. Whenever you show a combo, credit Commander Spellbook by name with the link in `source`. `known` false: the combos are not loaded yet. Spellbook lists combos as written; check a combo's steps against the cards' text and rulings (card_detail) before you vouch for it. Changes nothing.

deck_combos input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
deck_combos output schema
{
  "type": "object",
  "required": [
    "deck",
    "known",
    "in_list",
    "in_list_total",
    "one_card_away",
    "more_one_card_away",
    "source"
  ],
  "properties": {
    "deck": {
      "type": "object",
      "required": [
        "id",
        "name",
        "format"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "format": {
          "enum": [
            "commander",
            "pdh",
            "dc",
            "standard",
            "pioneer",
            "modern",
            "premodern",
            "legacy",
            "vintage",
            "pauper",
            "casual"
          ],
          "type": "string"
        }
      }
    },
    "known": {
      "type": "boolean",
      "description": "False: the combos are not loaded yet"
    },
    "source": {
      "type": "object",
      "required": [
        "name",
        "url"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "description": "Commander Spellbook: credit it by name with this link whenever a combo shows"
    },
    "in_list": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "url",
          "cards",
          "produces",
          "requires",
          "prerequisites",
          "mana_needed",
          "steps",
          "notes",
          "identity"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "The combo's page on Commander Spellbook"
          },
          "cards": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "oracle_id",
                "name",
                "scryfall_url",
                "image_uri",
                "must_be_commander"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Its picture on Scryfall, to show as it is: the deck's own printing for a card in the list or leading it, the offered printing for the card the combo misses; null otherwise"
                },
                "oracle_id": {
                  "type": "string"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall, by its name"
                },
                "must_be_commander": {
                  "type": "boolean",
                  "description": "It works only from the command zone: it counts only when this card leads the deck"
                }
              }
            }
          },
          "notes": {
            "type": "string"
          },
          "steps": {
            "type": "string"
          },
          "identity": {
            "type": "string"
          },
          "produces": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requires": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A kind of card it also needs, any one"
          },
          "mana_needed": {
            "type": "string"
          },
          "prerequisites": {
            "type": "string"
          }
        }
      }
    },
    "in_list_total": {
      "type": "number"
    },
    "one_card_away": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "url",
          "cards",
          "produces",
          "requires",
          "prerequisites",
          "mana_needed",
          "steps",
          "notes",
          "identity",
          "missing"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "The combo's page on Commander Spellbook"
          },
          "cards": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "oracle_id",
                "name",
                "scryfall_url",
                "image_uri",
                "must_be_commander"
              ],
              "properties": {
                "name": {
                  "type": "string"
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Its picture on Scryfall, to show as it is: the deck's own printing for a card in the list or leading it, the offered printing for the card the combo misses; null otherwise"
                },
                "oracle_id": {
                  "type": "string"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall, by its name"
                },
                "must_be_commander": {
                  "type": "boolean",
                  "description": "It works only from the command zone: it counts only when this card leads the deck"
                }
              }
            }
          },
          "notes": {
            "type": "string"
          },
          "steps": {
            "type": "string"
          },
          "missing": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "have",
                  "oracle_id",
                  "name",
                  "type_line",
                  "mana_cost",
                  "cmc",
                  "scryfall_id",
                  "image_uri",
                  "scryfall_url",
                  "free",
                  "proxies",
                  "shared_with"
                ],
                "properties": {
                  "cmc": {
                    "type": "number"
                  },
                  "free": {
                    "type": "number",
                    "description": "Copies no deck claims outright: they can go in without taking a card from another deck"
                  },
                  "have": {
                    "type": "string",
                    "const": "owned",
                    "description": "The user owns a free copy"
                  },
                  "name": {
                    "type": "string",
                    "description": "The English name"
                  },
                  "proxies": {
                    "type": "number",
                    "description": "Of the copies counted: proxies, not real cards. Always say so beside the name."
                  },
                  "image_uri": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                  },
                  "mana_cost": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "oracle_id": {
                    "type": "string"
                  },
                  "type_line": {
                    "type": "string"
                  },
                  "scryfall_id": {
                    "type": "string",
                    "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
                  },
                  "shared_with": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Decks that borrow these copies as shared: playing one here means both decks claim it. Name every one."
                  },
                  "scryfall_url": {
                    "type": "string",
                    "description": "That printing's page on Scryfall: link the card's name to it"
                  }
                }
              },
              {
                "type": "object",
                "required": [
                  "have",
                  "oracle_id",
                  "name",
                  "type_line",
                  "mana_cost",
                  "cmc",
                  "scryfall_id",
                  "image_uri",
                  "scryfall_url",
                  "unit_price",
                  "cheapest_printing",
                  "currency",
                  "price_queued",
                  "owned_claimed",
                  "claimed_by"
                ],
                "properties": {
                  "cmc": {
                    "type": "number"
                  },
                  "have": {
                    "type": "string",
                    "const": "to_buy"
                  },
                  "name": {
                    "type": "string",
                    "description": "The English name"
                  },
                  "currency": {
                    "enum": [
                      "USD",
                      "EUR",
                      "CHF"
                    ],
                    "type": "string"
                  },
                  "image_uri": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                  },
                  "mana_cost": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "oracle_id": {
                    "type": "string"
                  },
                  "type_line": {
                    "type": "string"
                  },
                  "claimed_by": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The decks that claim the copies in owned_claimed: name them whenever owned_claimed is said"
                  },
                  "unit_price": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "The cheapest priced non-foil printing, in currency; null when none is priced yet"
                  },
                  "scryfall_id": {
                    "type": "string",
                    "description": "A printing to show: the player's own for an owned card, else the cheapest priced one"
                  },
                  "price_queued": {
                    "type": "boolean",
                    "description": "Always false from a tool: no tool queues a price; the nightly refresh prices the card"
                  },
                  "scryfall_url": {
                    "type": "string",
                    "description": "That printing's page on Scryfall: link the card's name to it"
                  },
                  "owned_claimed": {
                    "type": "number",
                    "description": "Copies the player owns that decks claim in full: not free, so the card is listed to buy"
                  },
                  "cheapest_printing": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "\"SET NUMBER\" of that printing; null when none is priced"
                  }
                }
              }
            ]
          },
          "identity": {
            "type": "string"
          },
          "produces": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "requires": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A kind of card it also needs, any one"
          },
          "mana_needed": {
            "type": "string"
          },
          "prerequisites": {
            "type": "string"
          }
        }
      }
    },
    "more_one_card_away": {
      "type": "boolean"
    }
  }
}
deck_combos annotations
{
  "title": "Combos in a deck",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
list_locations — List locations
Advertised by the server during the last successful anonymous check.
Advertised read-only

All physical locations (binders, boxes, shelves, …) incl. each deck's auto-created location, with holding/card counts.

list_locations input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
list_locations output schema
{
  "type": "object",
  "required": [
    "locations"
  ],
  "properties": {
    "locations": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "user_id",
          "name",
          "kind",
          "notes",
          "created_at",
          "updated_at",
          "holding_count",
          "card_count"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "binder",
              "box",
              "deckbox",
              "shelf",
              "other",
              "deck"
            ],
            "type": "string",
            "description": "deck: a deck's own place, made with it"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "user_id": {
            "type": "string"
          },
          "card_count": {
            "type": "number"
          },
          "created_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "holding_count": {
            "type": "number"
          }
        }
      }
    }
  }
}
list_locations annotations
{
  "title": "List locations",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
create_location — Create location
Advertised by the server during the last successful anonymous check.

Create a physical location. kind: binder | box | deckbox | shelf | other (deck locations are automatic).

create_location input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "name"
  ],
  "properties": {
    "kind": {
      "enum": [
        "binder",
        "box",
        "deckbox",
        "shelf",
        "other"
      ],
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    }
  }
}
create_location annotations
{
  "title": "Create location",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": false,
  "destructiveHint": false
}
audit_location — Audit location
Advertised by the server during the last successful anonymous check.
Advertised read-only

Reconciliation view for a location (id or name): every holding physically there, plus — for deck locations — sleeved allocations that claim to be there, and any mismatches (allocation says sleeved but the stack is elsewhere).

audit_location input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "Location id or name"
    }
  }
}
audit_location output schema
{
  "type": "object",
  "required": [
    "location",
    "physically_here",
    "total_cards",
    "sleeved_here_on_paper",
    "mismatches"
  ],
  "properties": {
    "location": {
      "type": "object",
      "required": [
        "id",
        "name",
        "kind"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "enum": [
            "binder",
            "box",
            "deckbox",
            "shelf",
            "other",
            "deck"
          ],
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "mismatches": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "allocation_id",
          "quantity",
          "status",
          "shared",
          "deck_name",
          "card_name",
          "set_code",
          "collector_number",
          "scryfall_url",
          "image_uri",
          "holding_location"
        ],
        "properties": {
          "shared": {
            "type": "boolean",
            "description": "True: a shared claim, the copies also claimed by another deck; always say so"
          },
          "status": {
            "enum": [
              "staged",
              "sleeved"
            ],
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "set_code": {
            "type": "string"
          },
          "card_name": {
            "type": "string"
          },
          "deck_name": {
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "allocation_id": {
            "type": "string"
          },
          "collector_number": {
            "type": "string"
          },
          "holding_location": {
            "type": "string",
            "description": "Where the claimed stack physically is"
          }
        }
      },
      "description": "Claims sleeved here whose stack is physically elsewhere"
    },
    "total_cards": {
      "type": "number"
    },
    "physically_here": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "quantity",
          "finish",
          "condition",
          "is_proxy",
          "name",
          "set_code",
          "collector_number",
          "scryfall_url",
          "image_uri"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "finish": {
            "enum": [
              "nonfoil",
              "foil",
              "etched"
            ],
            "type": "string"
          },
          "is_proxy": {
            "type": "boolean",
            "description": "True: the stack is proxies, not real cards; always say so"
          },
          "quantity": {
            "type": "number"
          },
          "set_code": {
            "type": "string"
          },
          "condition": {
            "enum": [
              "NM",
              "LP",
              "MP",
              "HP",
              "DMG"
            ],
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "collector_number": {
            "type": "string"
          }
        }
      }
    },
    "sleeved_here_on_paper": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "allocation_id",
          "quantity",
          "status",
          "shared",
          "deck_name",
          "card_name",
          "set_code",
          "collector_number",
          "scryfall_url",
          "image_uri",
          "holding_location"
        ],
        "properties": {
          "shared": {
            "type": "boolean",
            "description": "True: a shared claim, the copies also claimed by another deck; always say so"
          },
          "status": {
            "enum": [
              "staged",
              "sleeved"
            ],
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "set_code": {
            "type": "string"
          },
          "card_name": {
            "type": "string"
          },
          "deck_name": {
            "type": "string"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall: link the card's name to it"
          },
          "allocation_id": {
            "type": "string"
          },
          "collector_number": {
            "type": "string"
          },
          "holding_location": {
            "type": "string",
            "description": "Where the claimed stack physically is"
          }
        }
      },
      "description": "A deck place: the claims sleeved into this deck"
    }
  }
}
audit_location annotations
{
  "title": "Audit location",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
create_share_link — Create share link
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Create (or fetch the existing) public share URL for a wantlist, deck, or tradelist. kind "wantlist": the cards still MISSING from a deck — or from the personal wantlist when no deck is given. kind "deck": the full decklist with prices. By default it is the list alone — card names, any printing. show_printings:true adds the exact printing and finish of the copies in the deck (else the printing the list pins); show_proxies:true adds which copies are proxies. ASK the user which they want before sharing a deck that contains proxies or special printings. Passing either option for a deck that is already shared changes the existing link in place (same URL). kind "tradelist" with a location: every card physically there (typically "Trade Binder"), with condition and prices. kind "tradelist" WITHOUT a location: the user's tradelist by rule, what `rule` picks — unclaimed (every copy no deck claims), spares_card (all but one copy of each card; a claimed copy counts as the one kept) or spares_printing (all but one of each printing). Default spares_card; passing rule on the existing link changes it in place. Explain what the rule publishes and ask before publishing it. keep_open (spares rules only, default false): true keeps one copy of each card even from decks open to trade, so a card the user owns once is never offered; false offers every copy an open deck claims. It applies to every tradelist the user publishes. Every tradelist also carries the claimed copies of decks marked open_to_trade (update_deck) and copies decks borrow as shared, each naming the deck a trade breaks (breaks_decks: the deck names are public on the page). A tradelist never lists a proxy. The URL is PUBLIC — anyone holding it can view the list until it is revoked; tell the user this when sharing something sensitive. Minting is idempotent per target: sharing the same thing again returns the same URL. Only a new kind "deck" link counts toward the plan (PLAN_LIMIT past it); a wantlist or tradelist link never does. Hand the user the full url — pasted into WhatsApp or iMessage it unfurls into a rich preview, and any Reliquary-connected assistant can read it via read_share_link.

create_share_link input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "kind"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name — required for kind \"deck\"; optional for \"wantlist\" (omit to share the personal wantlist)"
    },
    "kind": {
      "enum": [
        "wantlist",
        "deck",
        "tradelist"
      ],
      "type": "string"
    },
    "rule": {
      "enum": [
        "unclaimed",
        "spares_card",
        "spares_printing"
      ],
      "type": "string",
      "description": "kind \"tradelist\" with no location only: what the tradelist by rule offers"
    },
    "location": {
      "type": "string",
      "description": "Location id or name for a place's tradelist, e.g. \"Trade Binder\"; omit for the tradelist by rule"
    },
    "keep_open": {
      "type": "boolean",
      "description": "kind \"tradelist\" with no location only: under a spares rule, keep one copy of each card even from decks open to trade"
    },
    "show_proxies": {
      "type": "boolean",
      "description": "kind \"deck\" only. Show which copies are proxies. Default false on a new link; omitted keeps an existing link's setting."
    },
    "show_printings": {
      "type": "boolean",
      "description": "kind \"deck\" only. Show the exact printings the owner plays. Default false on a new link; omitted keeps an existing link's setting."
    }
  }
}
create_share_link annotations
{
  "title": "Create share link",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": true
}
list_share_links — List share links
Advertised by the server during the last successful anonymous check.
Advertised read-only

List every share link this user has minted — kind, what it points at (deck or location name), public URL, whether it is revoked, and for deck links what they show (show_printings, show_proxies: 1 or 0).

list_share_links input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
list_share_links output schema
{
  "type": "object",
  "required": [
    "links"
  ],
  "properties": {
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "token",
          "kind",
          "deck_id",
          "location_id",
          "revoked",
          "created_at",
          "show_printings",
          "show_proxies",
          "deck_name",
          "location_name",
          "rule",
          "url"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "description": "The public URL: anyone holding it can view the list until it is revoked"
          },
          "kind": {
            "enum": [
              "wantlist",
              "deck",
              "tradelist"
            ],
            "type": "string"
          },
          "rule": {
            "anyOf": [
              {
                "enum": [
                  "unclaimed",
                  "spares_card",
                  "spares_printing"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A tradelist by rule (no place): what it offers. unclaimed every copy no deck claims; spares_card / spares_printing all but one copy of each card / printing. null: not a tradelist by rule"
          },
          "token": {
            "type": "string"
          },
          "deck_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "revoked": {
            "type": "number",
            "description": "1: the link is offline for good"
          },
          "deck_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string"
          },
          "location_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "show_proxies": {
            "type": "number",
            "description": "A deck link: 1 shows which copies are proxies, 0 withholds it"
          },
          "location_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "show_printings": {
            "type": "number",
            "description": "A deck link: 1 shows the exact printings the owner plays, 0 the list alone"
          }
        }
      },
      "description": "Every link the user minted, newest first, revoked ones included"
    }
  }
}
list_share_links annotations
{
  "title": "List share links",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
revoke_share_link — Revoke share link
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Take a share link offline immediately. Accepts the link id, the bare token, or the full /s/ (or legacy /w/) URL. Privacy-restoring, so it needs no confirmation — but the old URL dies permanently; sharing the same list again later mints a NEW URL.

revoke_share_link input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "link"
  ],
  "properties": {
    "link": {
      "type": "string",
      "description": "Share link id, token, or full share URL"
    }
  }
}
revoke_share_link annotations
{
  "title": "Revoke share link",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": true
}
read_share_link — Read share link
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Read someone else's public Reliquary share link — a /s/ or /w/ URL, or the bare token. Returns the list contents with prices plus next_steps for acting on it. This is ANOTHER person's public list: never present it as the current user's own data. A tradelist never lists a proxy: no trade offers one. A deck share carries options {show_printings, show_proxies}: proxy_quantity on a row is how many of the owner's copies are proxies — relay it; proxy_quantity null (show_proxies false) means the owner did NOT say, so never tell the user the deck is proxy-free. With show_printings false, set_code is null and the row means any printing of that card. deck.commanders names who leads a deck share: none, one card, or a pair — name both of a pair. deck.companion names its companion, a sideboard row marked is_companion; null for none.

read_share_link input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "link"
  ],
  "properties": {
    "link": {
      "type": "string",
      "description": "Full share URL or bare token"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency, default USD"
    }
  }
}
read_share_link output schema
{
  "type": "object",
  "required": [
    "kind",
    "rows",
    "next_steps"
  ],
  "properties": {
    "deck": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "name",
            "format"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "format": {
              "type": "string"
            },
            "companion": {
              "anyOf": [
                {
                  "type": "object",
                  "required": [
                    "name",
                    "set_code",
                    "collector_number",
                    "image_uri",
                    "scryfall_url"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "set_code": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "null when the owner does not show printings"
                    },
                    "image_uri": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The printing's page when the owner shows printings, else the card's by name"
                    },
                    "collector_number": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                },
                {
                  "type": "null"
                }
              ],
              "description": "A deck share: the deck's companion, a sideboard row; null for none"
            },
            "commanders": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "set_code",
                  "collector_number",
                  "image_uri",
                  "scryfall_url"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "set_code": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "null when the owner does not show printings"
                  },
                  "image_uri": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                  },
                  "scryfall_url": {
                    "type": "string",
                    "description": "The printing's page when the owner shows printings, else the card's by name"
                  },
                  "collector_number": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              "description": "A deck share: who leads it, none, one or a pair; name both of a pair"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "enum": [
        "wantlist",
        "deck",
        "tradelist"
      ],
      "type": "string",
      "description": "Another person's public list: never present it as the current user's own"
    },
    "rows": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "required": [
              "name",
              "quantity_missing",
              "lang",
              "printing_preference",
              "scryfall_url",
              "current_price",
              "image_uri"
            ],
            "properties": {
              "lang": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The language the owner asks for (Scryfall's code); null any. A preference, not a printing"
              },
              "name": {
                "type": "string"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "scryfall_url": {
                "type": "string",
                "description": "The pinned printing's page on Scryfall, else the card's by name"
              },
              "current_price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "quantity_missing": {
                "type": "number"
              },
              "printing_preference": {
                "type": "string",
                "description": "\"SET #N only\", or \"any printing\""
              }
            }
          },
          {
            "type": "object",
            "required": [
              "name",
              "quantity",
              "set_code",
              "collector_number",
              "scryfall_url",
              "printings",
              "proxy_quantity",
              "is_commander",
              "is_companion",
              "sideboard",
              "unit_price",
              "image_uri"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "quantity": {
                "type": "number"
              },
              "set_code": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "null when the owner does not show printings: the row means any printing"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "printings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "set_code",
                    "collector_number",
                    "scryfall_url",
                    "finish",
                    "quantity"
                  ],
                  "properties": {
                    "finish": {
                      "enum": [
                        "nonfoil",
                        "foil",
                        "etched"
                      ],
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "set_code": {
                      "type": "string"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The card's page on Scryfall: link the card's name to it"
                    },
                    "collector_number": {
                      "type": "string"
                    }
                  }
                },
                "description": "Every printing among the owner's copies of this row; empty unless show_printings"
              },
              "sideboard": {
                "type": "boolean"
              },
              "unit_price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "is_commander": {
                "type": "boolean"
              },
              "is_companion": {
                "type": "boolean",
                "description": "The deck's companion: a sideboard row, outside the 100 in a commander format"
              },
              "scryfall_url": {
                "type": "string",
                "description": "The shown printing's page on Scryfall, else the card's by name: never a printing the owner withholds"
              },
              "proxy_quantity": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "How many of the owner's copies are proxies: relay it. null: the owner did NOT say, so never call the deck proxy-free"
              },
              "collector_number": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "name",
              "set_code",
              "collector_number",
              "scryfall_url",
              "finish",
              "condition",
              "lang",
              "quantity",
              "is_proxy",
              "breaks_decks",
              "unit_price",
              "image_uri"
            ],
            "properties": {
              "lang": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "finish": {
                "enum": [
                  "nonfoil",
                  "foil",
                  "etched"
                ],
                "type": "string"
              },
              "is_proxy": {
                "type": "boolean",
                "description": "A proxy, not a real card: always relay it; excluded from total_value"
              },
              "quantity": {
                "type": "number"
              },
              "set_code": {
                "type": "string"
              },
              "condition": {
                "enum": [
                  "NM",
                  "LP",
                  "MP",
                  "HP",
                  "DMG"
                ],
                "type": "string"
              },
              "image_uri": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
              },
              "unit_price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "breaks_decks": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The owner's decks that claim these copies or play them shared: trading them breaks those decks. Name each"
              },
              "scryfall_url": {
                "type": "string",
                "description": "The card's page on Scryfall: link the card's name to it"
              },
              "collector_number": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "rule": {
      "anyOf": [
        {
          "enum": [
            "unclaimed",
            "spares_card",
            "spares_printing"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "A tradelist by rule: what the owner offers (every copy no deck claims, or all but one of each card / printing); null a place's"
    },
    "title": {
      "type": "string",
      "description": "A wantlist: what it is of. A tradelist: the place it is, or \"Tradelist\" for one by rule"
    },
    "of_deck": {
      "type": "boolean",
      "description": "A wantlist: true when it is a deck's missing cards, false the personal wantlist"
    },
    "options": {
      "type": "object",
      "required": [
        "show_printings",
        "show_proxies"
      ],
      "properties": {
        "show_proxies": {
          "type": "boolean",
          "description": "false: proxy_quantity is null, and the owner did not say which copies are proxies"
        },
        "show_printings": {
          "type": "boolean",
          "description": "false: set_code is null and a row means any printing"
        }
      },
      "description": "A deck share: what the owner chose to show beyond the list"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "card_count": {
      "type": "number"
    },
    "next_steps": {
      "type": "string"
    },
    "proxy_cards": {
      "type": [
        "number",
        "null"
      ],
      "description": "A deck share: proxy copies in the owner's deck; null when the owner chose not to say"
    },
    "total_price": {
      "type": "object",
      "required": [
        "amount",
        "unpriced_cards",
        "currency"
      ],
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        "unpriced_cards": {
          "type": "number",
          "description": "Cards with no known price: the amount leaves them out"
        }
      }
    },
    "total_value": {
      "type": "object",
      "required": [
        "amount",
        "currency",
        "excludes_proxies",
        "proxy_cards"
      ],
      "properties": {
        "amount": {
          "type": "number"
        },
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        "proxy_cards": {
          "type": "number",
          "description": "Proxy copies in the tradelist: say so before any trade talk"
        },
        "excludes_proxies": {
          "type": "boolean",
          "const": true,
          "description": "Proxies count as zero"
        }
      }
    },
    "decklist_text": {
      "type": "string"
    }
  }
}
read_share_link annotations
{
  "title": "Read share link",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
match_wantlist — Match wantlist
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

What the CURRENT user could SEND another player: that player's missing cards against the current user's copies. Takes their shared wantlist or deck link (a /s/ or /w/ URL, or the bare token) or their handle ("@name": every wantlist they published). Free copies come first; where they run out, copies a deck of the user claims are offered too, after them. Each match has copies[]: printing, finish, condition, where it physically is, unit_price in `currency` (default USD; null = no price known, and unpriced_quantity says how many copies a row's value leaves out). A proxy is never offered: the answer holds real cards only, and its proxy fields are always zero. includes_shared / copies[].shared_with name decks of the user that SHARE that stack. copies[].breaks_decks names EVERY deck of the user that claims or shares the copy: for each, say "trading this card breaks your deck <name>" before any trade talk. A row's lang is the language the other player asked for; copies[].other_language marks a copy in another language: say "not the language asked for".

match_wantlist input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "token"
  ],
  "properties": {
    "token": {
      "type": "string",
      "description": "Full share URL, bare token, or a handle written with its @"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
match_wantlist output schema
{
  "type": "object",
  "required": [
    "matches",
    "total"
  ],
  "properties": {
    "total": {
      "type": "object",
      "required": [
        "cards",
        "value",
        "currency",
        "excludes_proxies",
        "proxy_cards",
        "unpriced_cards",
        "cards_breaking_decks"
      ],
      "properties": {
        "cards": {
          "type": "number"
        },
        "value": {
          "type": "number"
        },
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        "proxy_cards": {
          "type": "number",
          "description": "Proxy copies on this side: name them"
        },
        "unpriced_cards": {
          "type": "number",
          "description": "Real copies with no known price: the value leaves them out, so say how many"
        },
        "excludes_proxies": {
          "type": "boolean",
          "const": true,
          "description": "Proxies count as zero"
        },
        "cards_breaking_decks": {
          "type": "number",
          "description": "Copies on this side whose trade breaks a deck, each named on its row"
        }
      }
    },
    "matches": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url",
          "image_uri",
          "printing",
          "lang",
          "quantity",
          "other_language_quantity",
          "breaks_decks",
          "includes_proxies",
          "proxy_quantity",
          "value",
          "unpriced_quantity",
          "they_need",
          "you_can_send",
          "includes_shared",
          "copies"
        ],
        "properties": {
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language the list asks for, Scryfall's code; null any. A preference: other languages are still offered, marked"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "number"
          },
          "copies": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "set_code",
                "collector_number",
                "scryfall_url",
                "finish",
                "condition",
                "lang",
                "other_language",
                "quantity",
                "is_proxy",
                "breaks_decks",
                "image_uri",
                "unit_price",
                "physically_in",
                "shared_with"
              ],
              "properties": {
                "lang": {
                  "type": "string"
                },
                "finish": {
                  "enum": [
                    "nonfoil",
                    "foil",
                    "etched"
                  ],
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A PROXY, not a real card: always say so; it counts as zero in value"
                },
                "quantity": {
                  "type": "number"
                },
                "set_code": {
                  "type": "string"
                },
                "condition": {
                  "enum": [
                    "NM",
                    "LP",
                    "MP",
                    "HP",
                    "DMG"
                  ],
                  "type": "string"
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                },
                "unit_price": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Per copy, in currency; null when no price is known"
                },
                "shared_with": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The user's decks that share this stack: sending the copy takes it from them. Name each"
                },
                "breaks_decks": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The decks of the copy's owner that claim it or play it shared: say \"trading this card breaks <deck>\" for each. Empty: no deck plays it"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall: link the card's name to it"
                },
                "physically_in": {
                  "type": "string",
                  "description": "Where the copy physically is"
                },
                "other_language": {
                  "type": "boolean",
                  "description": "The list asked for another language (row.lang): these copies are offered all the same. Say \"not the language asked for\""
                },
                "collector_number": {
                  "type": "string"
                }
              }
            }
          },
          "printing": {
            "enum": [
              "this printing only",
              "any printing"
            ],
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The wanted card's picture on Scryfall, to show as it is: the printing the list pins, else one printing of the card; null when a deck share withholds its printings or the catalogue has none. Each copy has its own"
          },
          "they_need": {
            "type": "number"
          },
          "breaks_decks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every deck a trade of this row's copies breaks: relay it before any trade talk"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall, by its name"
          },
          "you_can_send": {
            "type": "number"
          },
          "proxy_quantity": {
            "type": "number",
            "description": "How many of the copies are proxies; they count as zero in value"
          },
          "includes_shared": {
            "type": "boolean",
            "description": "A copy is one a deck of the user shares: sending it takes it from that deck. Say which"
          },
          "includes_proxies": {
            "type": "boolean",
            "description": "Some of the copies are PROXIES: say so before any trade talk"
          },
          "unpriced_quantity": {
            "type": "number",
            "description": "Real copies with no known price: the row's value leaves them out"
          },
          "other_language_quantity": {
            "type": "number",
            "description": "Copies not in the language asked for"
          }
        }
      },
      "description": "What the user could send: free copies first, then copies a deck of the user's claims (named in breaks_decks); never a proxy"
    }
  }
}
match_wantlist annotations
{
  "title": "Match wantlist",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
match_tradelist — Match tradelist
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

What the CURRENT user could GET from another player: the cards in that player's tradelist that the user's decks or personal wantlist still miss. Takes their tradelist link (URL or bare token) or their handle ("@name": every tradelist they published). Each match says you_need, they_offer, wanted_by (the user's deck names, or "Personal wantlist") and copies[] with printing, finish, condition, language and unit_price in `currency` (default USD). A want that pins a printing matches that printing only. A proxy is never offered: the answer holds real cards only, and its proxy fields are always zero. copies[].breaks_decks names the other player's decks that claim or share the copy: say "trading this breaks their deck <name>". A row's lang is the language the user's list asks for; copies[].other_language marks a copy in another language: say "not the language asked for".

match_tradelist input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "link"
  ],
  "properties": {
    "link": {
      "type": "string",
      "description": "Full share URL, bare token, or a handle written with its @"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
match_tradelist output schema
{
  "type": "object",
  "required": [
    "matches",
    "total"
  ],
  "properties": {
    "total": {
      "type": "object",
      "required": [
        "cards",
        "value",
        "currency",
        "excludes_proxies",
        "proxy_cards",
        "unpriced_cards",
        "cards_breaking_decks"
      ],
      "properties": {
        "cards": {
          "type": "number"
        },
        "value": {
          "type": "number"
        },
        "currency": {
          "enum": [
            "USD",
            "EUR",
            "CHF"
          ],
          "type": "string"
        },
        "proxy_cards": {
          "type": "number",
          "description": "Proxy copies on this side: name them"
        },
        "unpriced_cards": {
          "type": "number",
          "description": "Real copies with no known price: the value leaves them out, so say how many"
        },
        "excludes_proxies": {
          "type": "boolean",
          "const": true,
          "description": "Proxies count as zero"
        },
        "cards_breaking_decks": {
          "type": "number",
          "description": "Copies on this side whose trade breaks a deck, each named on its row"
        }
      }
    },
    "matches": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "scryfall_url",
          "image_uri",
          "printing",
          "lang",
          "quantity",
          "other_language_quantity",
          "breaks_decks",
          "includes_proxies",
          "proxy_quantity",
          "value",
          "unpriced_quantity",
          "you_need",
          "they_offer",
          "wanted_by",
          "copies"
        ],
        "properties": {
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "The language the list asks for, Scryfall's code; null any. A preference: other languages are still offered, marked"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "number"
          },
          "copies": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "set_code",
                "collector_number",
                "scryfall_url",
                "finish",
                "condition",
                "lang",
                "other_language",
                "quantity",
                "is_proxy",
                "breaks_decks",
                "image_uri",
                "unit_price"
              ],
              "properties": {
                "lang": {
                  "type": "string"
                },
                "finish": {
                  "enum": [
                    "nonfoil",
                    "foil",
                    "etched"
                  ],
                  "type": "string"
                },
                "is_proxy": {
                  "type": "boolean",
                  "description": "A PROXY, not a real card: always say so; it counts as zero in value"
                },
                "quantity": {
                  "type": "number"
                },
                "set_code": {
                  "type": "string"
                },
                "condition": {
                  "enum": [
                    "NM",
                    "LP",
                    "MP",
                    "HP",
                    "DMG"
                  ],
                  "type": "string"
                },
                "image_uri": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                },
                "unit_price": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "description": "Per copy, in currency; null when no price is known"
                },
                "breaks_decks": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "The decks of the copy's owner that claim it or play it shared: say \"trading this card breaks <deck>\" for each. Empty: no deck plays it"
                },
                "scryfall_url": {
                  "type": "string",
                  "description": "The card's page on Scryfall: link the card's name to it"
                },
                "other_language": {
                  "type": "boolean",
                  "description": "The list asked for another language (row.lang): these copies are offered all the same. Say \"not the language asked for\""
                },
                "collector_number": {
                  "type": "string"
                }
              }
            }
          },
          "printing": {
            "enum": [
              "this printing only",
              "any printing"
            ],
            "type": "string"
          },
          "quantity": {
            "type": "number"
          },
          "you_need": {
            "type": "number"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The wanted card's picture on Scryfall, to show as it is: the printing the list pins, else one printing of the card; null when a deck share withholds its printings or the catalogue has none. Each copy has its own"
          },
          "wanted_by": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The user's lists that miss it: deck names, or \"Personal wantlist\""
          },
          "they_offer": {
            "type": "number"
          },
          "breaks_decks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every deck a trade of this row's copies breaks: relay it before any trade talk"
          },
          "scryfall_url": {
            "type": "string",
            "description": "The card's page on Scryfall, by its name"
          },
          "proxy_quantity": {
            "type": "number",
            "description": "How many of the copies are proxies; they count as zero in value"
          },
          "includes_proxies": {
            "type": "boolean",
            "description": "Some of the copies are PROXIES: say so before any trade talk"
          },
          "unpriced_quantity": {
            "type": "number",
            "description": "Real copies with no known price: the row's value leaves them out"
          },
          "other_language_quantity": {
            "type": "number",
            "description": "Copies not in the language asked for"
          }
        }
      },
      "description": "What the user could get from the other player's tradelist"
    }
  }
}
match_tradelist annotations
{
  "title": "Match tradelist",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
compare_trade — Compare a trade
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Read-only: compares, and proposes or changes nothing (offer_swap is the tool that proposes a swap to a friend). Both directions of a trade with one player in ONE call: you_send (as match_wantlist) and you_get (as match_tradelist), each with its rows, card count and value in `currency` (default USD; CHF and EUR are what players at a table use), plus difference {amount, direction: you_send_more | you_get_more | even, unpriced_cards}. When unpriced_cards > 0 the gap leaves those cards out — say so, never call such a trade even. `with` is that player's handle ("@name") or one or two of their share links (their wantlist, their tradelist). A side they have not published is null and listed in not_published. This is everything that matches, NOT advice on which cards to trade and not an evened-out deal: present both lists and the gap, and let the players choose. Same disclosure duties as match_wantlist and match_tradelist: no proxy is ever offered; name every deck a copy breaks (copies[].breaks_decks, either side) and every copy in another language than asked. `with` names the player's handle also when reached by a wantlist or tradelist link.

compare_trade input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "with"
  ],
  "properties": {
    "with": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 2,
      "minItems": 1,
      "description": "One handle (\"@name\"), or one or two share links of the same player"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
compare_trade output schema
{
  "type": "object",
  "required": [
    "with",
    "currency",
    "you_send",
    "you_get",
    "not_published",
    "difference",
    "note"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "with": {
      "type": [
        "string",
        "null"
      ],
      "description": "The other player's handle (\"@name\"), also when reached by a wantlist or tradelist link; null for a deck share or a player without one"
    },
    "you_get": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "cards",
            "value",
            "currency",
            "excludes_proxies",
            "proxy_cards",
            "unpriced_cards",
            "cards_breaking_decks",
            "rows"
          ],
          "properties": {
            "rows": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "scryfall_url",
                  "image_uri",
                  "printing",
                  "lang",
                  "quantity",
                  "other_language_quantity",
                  "breaks_decks",
                  "includes_proxies",
                  "proxy_quantity",
                  "value",
                  "unpriced_quantity",
                  "you_need",
                  "they_offer",
                  "wanted_by",
                  "copies"
                ],
                "properties": {
                  "lang": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The language the list asks for, Scryfall's code; null any. A preference: other languages are still offered, marked"
                  },
                  "name": {
                    "type": "string"
                  },
                  "value": {
                    "type": "number"
                  },
                  "copies": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "set_code",
                        "collector_number",
                        "scryfall_url",
                        "finish",
                        "condition",
                        "lang",
                        "other_language",
                        "quantity",
                        "is_proxy",
                        "breaks_decks",
                        "image_uri",
                        "unit_price"
                      ],
                      "properties": {
                        "lang": {
                          "type": "string"
                        },
                        "finish": {
                          "enum": [
                            "nonfoil",
                            "foil",
                            "etched"
                          ],
                          "type": "string"
                        },
                        "is_proxy": {
                          "type": "boolean",
                          "description": "A PROXY, not a real card: always say so; it counts as zero in value"
                        },
                        "quantity": {
                          "type": "number"
                        },
                        "set_code": {
                          "type": "string"
                        },
                        "condition": {
                          "enum": [
                            "NM",
                            "LP",
                            "MP",
                            "HP",
                            "DMG"
                          ],
                          "type": "string"
                        },
                        "image_uri": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                        },
                        "unit_price": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Per copy, in currency; null when no price is known"
                        },
                        "breaks_decks": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The decks of the copy's owner that claim it or play it shared: say \"trading this card breaks <deck>\" for each. Empty: no deck plays it"
                        },
                        "scryfall_url": {
                          "type": "string",
                          "description": "The card's page on Scryfall: link the card's name to it"
                        },
                        "other_language": {
                          "type": "boolean",
                          "description": "The list asked for another language (row.lang): these copies are offered all the same. Say \"not the language asked for\""
                        },
                        "collector_number": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "printing": {
                    "enum": [
                      "this printing only",
                      "any printing"
                    ],
                    "type": "string"
                  },
                  "quantity": {
                    "type": "number"
                  },
                  "you_need": {
                    "type": "number"
                  },
                  "image_uri": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The wanted card's picture on Scryfall, to show as it is: the printing the list pins, else one printing of the card; null when a deck share withholds its printings or the catalogue has none. Each copy has its own"
                  },
                  "wanted_by": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "The user's lists that miss it: deck names, or \"Personal wantlist\""
                  },
                  "they_offer": {
                    "type": "number"
                  },
                  "breaks_decks": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every deck a trade of this row's copies breaks: relay it before any trade talk"
                  },
                  "scryfall_url": {
                    "type": "string",
                    "description": "The card's page on Scryfall, by its name"
                  },
                  "proxy_quantity": {
                    "type": "number",
                    "description": "How many of the copies are proxies; they count as zero in value"
                  },
                  "includes_proxies": {
                    "type": "boolean",
                    "description": "Some of the copies are PROXIES: say so before any trade talk"
                  },
                  "unpriced_quantity": {
                    "type": "number",
                    "description": "Real copies with no known price: the row's value leaves them out"
                  },
                  "other_language_quantity": {
                    "type": "number",
                    "description": "Copies not in the language asked for"
                  }
                }
              }
            },
            "cards": {
              "type": "number"
            },
            "value": {
              "type": "number"
            },
            "currency": {
              "enum": [
                "USD",
                "EUR",
                "CHF"
              ],
              "type": "string"
            },
            "proxy_cards": {
              "type": "number",
              "description": "Proxy copies on this side: name them"
            },
            "unpriced_cards": {
              "type": "number",
              "description": "Real copies with no known price: the value leaves them out, so say how many"
            },
            "excludes_proxies": {
              "type": "boolean",
              "const": true,
              "description": "Proxies count as zero"
            },
            "cards_breaking_decks": {
              "type": "number",
              "description": "Copies on this side whose trade breaks a deck, each named on its row"
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "null: they published no tradelist"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "you_send": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "cards",
            "value",
            "currency",
            "excludes_proxies",
            "proxy_cards",
            "unpriced_cards",
            "cards_breaking_decks",
            "rows"
          ],
          "properties": {
            "rows": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "name",
                  "scryfall_url",
                  "image_uri",
                  "printing",
                  "lang",
                  "quantity",
                  "other_language_quantity",
                  "breaks_decks",
                  "includes_proxies",
                  "proxy_quantity",
                  "value",
                  "unpriced_quantity",
                  "they_need",
                  "you_can_send",
                  "includes_shared",
                  "copies"
                ],
                "properties": {
                  "lang": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The language the list asks for, Scryfall's code; null any. A preference: other languages are still offered, marked"
                  },
                  "name": {
                    "type": "string"
                  },
                  "value": {
                    "type": "number"
                  },
                  "copies": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "set_code",
                        "collector_number",
                        "scryfall_url",
                        "finish",
                        "condition",
                        "lang",
                        "other_language",
                        "quantity",
                        "is_proxy",
                        "breaks_decks",
                        "image_uri",
                        "unit_price",
                        "physically_in",
                        "shared_with"
                      ],
                      "properties": {
                        "lang": {
                          "type": "string"
                        },
                        "finish": {
                          "enum": [
                            "nonfoil",
                            "foil",
                            "etched"
                          ],
                          "type": "string"
                        },
                        "is_proxy": {
                          "type": "boolean",
                          "description": "A PROXY, not a real card: always say so; it counts as zero in value"
                        },
                        "quantity": {
                          "type": "number"
                        },
                        "set_code": {
                          "type": "string"
                        },
                        "condition": {
                          "enum": [
                            "NM",
                            "LP",
                            "MP",
                            "HP",
                            "DMG"
                          ],
                          "type": "string"
                        },
                        "image_uri": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                        },
                        "unit_price": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "description": "Per copy, in currency; null when no price is known"
                        },
                        "shared_with": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The user's decks that share this stack: sending the copy takes it from them. Name each"
                        },
                        "breaks_decks": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The decks of the copy's owner that claim it or play it shared: say \"trading this card breaks <deck>\" for each. Empty: no deck plays it"
                        },
                        "scryfall_url": {
                          "type": "string",
                          "description": "The card's page on Scryfall: link the card's name to it"
                        },
                        "physically_in": {
                          "type": "string",
                          "description": "Where the copy physically is"
                        },
                        "other_language": {
                          "type": "boolean",
                          "description": "The list asked for another language (row.lang): these copies are offered all the same. Say \"not the language asked for\""
                        },
                        "collector_number": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "printing": {
                    "enum": [
                      "this printing only",
                      "any printing"
                    ],
                    "type": "string"
                  },
                  "quantity": {
                    "type": "number"
                  },
                  "image_uri": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The wanted card's picture on Scryfall, to show as it is: the printing the list pins, else one printing of the card; null when a deck share withholds its printings or the catalogue has none. Each copy has its own"
                  },
                  "they_need": {
                    "type": "number"
                  },
                  "breaks_decks": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Every deck a trade of this row's copies breaks: relay it before any trade talk"
                  },
                  "scryfall_url": {
                    "type": "string",
                    "description": "The card's page on Scryfall, by its name"
                  },
                  "you_can_send": {
                    "type": "number"
                  },
                  "proxy_quantity": {
                    "type": "number",
                    "description": "How many of the copies are proxies; they count as zero in value"
                  },
                  "includes_shared": {
                    "type": "boolean",
                    "description": "A copy is one a deck of the user shares: sending it takes it from that deck. Say which"
                  },
                  "includes_proxies": {
                    "type": "boolean",
                    "description": "Some of the copies are PROXIES: say so before any trade talk"
                  },
                  "unpriced_quantity": {
                    "type": "number",
                    "description": "Real copies with no known price: the row's value leaves them out"
                  },
                  "other_language_quantity": {
                    "type": "number",
                    "description": "Copies not in the language asked for"
                  }
                }
              }
            },
            "cards": {
              "type": "number"
            },
            "value": {
              "type": "number"
            },
            "currency": {
              "enum": [
                "USD",
                "EUR",
                "CHF"
              ],
              "type": "string"
            },
            "proxy_cards": {
              "type": "number",
              "description": "Proxy copies on this side: name them"
            },
            "unpriced_cards": {
              "type": "number",
              "description": "Real copies with no known price: the value leaves them out, so say how many"
            },
            "excludes_proxies": {
              "type": "boolean",
              "const": true,
              "description": "Proxies count as zero"
            },
            "cards_breaking_decks": {
              "type": "number",
              "description": "Copies on this side whose trade breaks a deck, each named on its row"
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "null: they published no wantlist"
    },
    "difference": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "amount",
            "currency",
            "direction",
            "unpriced_cards"
          ],
          "properties": {
            "amount": {
              "type": "number"
            },
            "currency": {
              "enum": [
                "USD",
                "EUR",
                "CHF"
              ],
              "type": "string"
            },
            "direction": {
              "enum": [
                "you_send_more",
                "you_get_more",
                "even"
              ],
              "type": "string"
            },
            "unpriced_cards": {
              "type": "number",
              "description": "Cards on either side with no known price: the gap leaves them out. When > 0, say so and never call the trade even"
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "Everything that matches on both sides, not an evened-out deal; null unless both sides are published"
    },
    "not_published": {
      "type": "array",
      "items": {
        "enum": [
          "wantlist",
          "tradelist"
        ],
        "type": "string"
      }
    }
  }
}
compare_trade annotations
{
  "title": "Compare a trade",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
draft_trade_post — Draft a trade post
Advertised by the server during the last successful anonymous check.
Advertised read-only

Read-only: writes the TEXT of a trade list for the user to copy and post themselves (WhatsApp, Discord, anywhere). It posts nothing, sends nothing and publishes nothing (style: whatsapp | discord | text; default whatsapp): list "deck" (the deck's missing cards, linked by its wantlist link), "wantlist" (the personal wantlist's missing cards) or "tradelist" (what the user's published tradelists offer, linked by their handle). One line a card: count, name, the printing when the list pins one, a flag for a language other than English (one with no flag is written as its name), and on a tradelist each copy a deck of the user claims or plays shared named with that deck (lines[].breaks_decks): relay it. `cards` keeps only those names. Relay `text` as it is, in a code block or ready to copy. This tool NEVER publishes: when url is null no link is live yet — the note says which create_share_link call would publish it; ask the user before calling it, then call this again.

draft_trade_post input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "list"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name, for list \"deck\""
    },
    "list": {
      "enum": [
        "deck",
        "wantlist",
        "tradelist"
      ],
      "type": "string"
    },
    "cards": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 150,
      "description": "Only these card names (English); omit for the whole list"
    },
    "style": {
      "enum": [
        "whatsapp",
        "discord",
        "text"
      ],
      "type": "string"
    }
  }
}
draft_trade_post output schema
{
  "type": "object",
  "required": [
    "text",
    "url",
    "cards",
    "lines",
    "publish",
    "note"
  ],
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The live link the message ends with; null: none is published, and the text has no link"
    },
    "note": {
      "type": "string"
    },
    "text": {
      "type": "string",
      "description": "The message to post, ready to copy: relay it as it is"
    },
    "cards": {
      "type": "number",
      "description": "Copies the message lists"
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "quantity",
          "name"
        ],
        "properties": {
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "Scryfall's language code; not English is flagged in the text"
          },
          "name": {
            "type": "string"
          },
          "finish": {
            "anyOf": [
              {
                "enum": [
                  "nonfoil",
                  "foil",
                  "etched"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "is_proxy": {
            "type": "boolean",
            "description": "A PROXY on a tradelist: the text names it, and so must you"
          },
          "quantity": {
            "type": "number"
          },
          "set_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The printing, when pinned (a want) or offered (a tradelist)"
          },
          "image_uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
          },
          "breaks_decks": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A tradelist's copies a deck of the user's claims or plays shared: the text names the deck, and so must you"
          },
          "collector_number": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "publish": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "kind",
            "deck_id"
          ],
          "properties": {
            "kind": {
              "enum": [
                "wantlist",
                "tradelist"
              ],
              "type": "string"
            },
            "rule": {
              "enum": [
                "unclaimed",
                "spares_card",
                "spares_printing"
              ],
              "type": "string",
              "description": "A tradelist: the rule to pass create_share_link"
            },
            "deck_id": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "With no live link: what create_share_link would publish to carry this post. Ask the user first"
    }
  }
}
draft_trade_post annotations
{
  "title": "Draft a trade post",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
set_handle — Set handle
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Take, change or give up the current user's handle: the name other players type ("@name") to find the wantlists and tradelists this user has PUBLISHED with create_share_link. 3–20 characters: letters, digits, "-" and "_". handle null gives it up. Tell the user what a handle exposes: anyone who knows it — signed in or not, at /@name — sees every wantlist and tradelist link that is not revoked, never a deck share, the collection, a name or an email. Revoking a link removes it from the handle at once. Giving up the handle also leaves the trade circle: every friend and request goes. Changing it keeps the circle.

set_handle input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "handle"
  ],
  "properties": {
    "handle": {
      "type": [
        "string",
        "null"
      ],
      "description": "The handle to take, with or without the @; null to give it up"
    }
  }
}
set_handle annotations
{
  "title": "Set handle",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": true
}
read_handle — Read handle
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Without `handle`: the current user's own handle (null when they have none) and its public URL. With `handle` ("@name"): the wantlists and tradelists that player published, each with its share URL — read one with read_share_link, or go straight to compare_trade with the handle. Exact match only: there is no search and no list of handles, and an unknown handle answers the same as one with nothing published. This is ANOTHER player's public data: never present it as the current user's own.

read_handle input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "handle": {
      "type": "string",
      "description": "Another player's handle; omit for the current user's own"
    }
  }
}
read_handle output schema
{
  "type": "object",
  "required": [
    "handle"
  ],
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "The user's own handle page"
    },
    "lists": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "kind",
          "title",
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "description": "The share URL: read it with read_share_link"
          },
          "kind": {
            "enum": [
              "wantlist",
              "tradelist"
            ],
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "description": "Another player's published lists: never present them as the current user's own"
    },
    "handle": {
      "type": [
        "string",
        "null"
      ],
      "description": "Without a handle asked: the user's own, null when they have none"
    }
  }
}
read_handle annotations
{
  "title": "Read handle",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
add_friend — Add friend
Advertised by the server during the last successful anonymous check.
Open-world

Ask another player into the current user's trade circle by their handle ("@name"). Friends are matched against each other in one call (match_circle). A request reaches only a handle that has a wantlist or tradelist published; any other handle answers "Nothing is published under @name", the same as a lookup, so this never tells whether a player exists. The user needs a handle of their own (set_handle): it is the only thing the friend sees of them. status "pending" waits for the friend to accept; a request they already sent is accepted at once ("accepted"). What a friend can see: exactly what the handle publishes (wantlists and tradelists), never the collection, a deck share, a name or an email. The account's plan holds a number of friends, requests sent included: past it the answer is a plan limit naming the page that describes plans.

add_friend input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "handle"
  ],
  "properties": {
    "handle": {
      "type": "string",
      "description": "The friend's handle, written with its @"
    }
  }
}
add_friend annotations
{
  "title": "Add friend",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
accept_friend — Accept friend
Advertised by the server during the last successful anonymous check.
Open-world

Accept a circle request another player sent the current user (my_circle lists them under requests_received). Both become friends at once: each sees what the other's handle publishes, in match_circle. Counts against the friends the account's plan holds.

accept_friend input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "handle"
  ],
  "properties": {
    "handle": {
      "type": "string",
      "description": "The handle of the player who sent the request, with its @"
    }
  }
}
accept_friend annotations
{
  "title": "Accept friend",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
remove_friend — Remove friend
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Remove a friend from the current user's trade circle, decline a request they received, or cancel one they sent — by the other player's handle. `was` says which it was. Both sides stop seeing each other's match; nothing in either collection changes. Asking again needs a new request.

remove_friend input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "handle"
  ],
  "properties": {
    "handle": {
      "type": "string",
      "description": "The friend's handle, with its @"
    }
  }
}
remove_friend annotations
{
  "title": "Remove friend",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": true
}
my_circle — My circle
Advertised by the server during the last successful anonymous check.
Advertised read-only

The current user's trade circle: friends, requests_received (waiting for the user: accept_friend or remove_friend), requests_sent (waiting for the friend), each by handle with the date. places_taken counts friends and requests sent against cap (null = no limit). handle is the user's own, null when they have none. invites: the invite links the user made (invite_friend), each for one player, with its state: open, waiting (a newcomer signed up and has not accepted yet: they have no handle, so they are told here, not under requests_sent), accepted, closed or expired. An open or waiting link takes a place against cap; cancel_invite gives it back.

my_circle input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
my_circle output schema
{
  "type": "object",
  "required": [
    "handle",
    "friends",
    "requests_received",
    "requests_sent",
    "places_taken",
    "cap",
    "invites"
  ],
  "properties": {
    "cap": {
      "type": [
        "number",
        "null"
      ],
      "description": "Friends the account's plan holds, requests sent included; null = no limit"
    },
    "handle": {
      "type": [
        "string",
        "null"
      ],
      "description": "The user's own handle; null when they have none (they need one to add friends)"
    },
    "friends": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "handle",
          "since"
        ],
        "properties": {
          "since": {
            "type": "string",
            "description": "When the request was sent, or the friendship began"
          },
          "handle": {
            "type": "string",
            "description": "\"@name\""
          }
        }
      }
    },
    "invites": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code",
          "url",
          "created_at",
          "expires_at",
          "state"
        ],
        "properties": {
          "url": {
            "type": "string",
            "description": "The invite link to send again while open"
          },
          "code": {
            "type": "string",
            "description": "For cancel_invite"
          },
          "state": {
            "enum": [
              "open",
              "waiting",
              "accepted",
              "closed",
              "expired"
            ],
            "type": "string",
            "description": "open: can bring someone in; waiting: a newcomer signed up and has not accepted; accepted; closed: used, request withdrawn or declined; expired"
          },
          "created_at": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          }
        }
      },
      "description": "Invite links the user made (invite_friend), newest first: the last 30 days, and any still waiting. Open and waiting ones take a place against cap"
    },
    "places_taken": {
      "type": "number",
      "description": "Friends, requests sent and open invite links, counted together against cap"
    },
    "requests_sent": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "handle",
          "since"
        ],
        "properties": {
          "since": {
            "type": "string",
            "description": "When the request was sent, or the friendship began"
          },
          "handle": {
            "type": "string",
            "description": "\"@name\""
          }
        }
      },
      "description": "Waiting for the friend to accept"
    },
    "requests_received": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "handle",
          "since"
        ],
        "properties": {
          "since": {
            "type": "string",
            "description": "When the request was sent, or the friendship began"
          },
          "handle": {
            "type": "string",
            "description": "\"@name\""
          }
        }
      },
      "description": "Waiting for the user: accept_friend or remove_friend"
    }
  }
}
my_circle annotations
{
  "title": "My circle",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
match_circle — Match circle
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Every friend in the current user's trade circle at once, both directions: for each friend, you_send (their published wantlists' missing cards against the user's copies, free ones first, as match_wantlist) and you_get (their published tradelists against what the user's decks and wantlist miss, as match_tradelist), with values in `currency` (default USD) and the difference, as compare_trade. A side the friend has not published is null and in not_published. Each row has `new`: not there at the user's last recorded look; new_cards counts them per friend — lead with those. Once you have shown the user the matches, call mark_circle_seen so the next look marks only what came after (this tool itself never records a look). Each friend is matched alone, so one copy can show against several friends: say so when it does. Disclosure duties, as match_wantlist and match_tradelist (no proxy is ever offered): name every deck a copy breaks (copies[].breaks_decks: "trading this card breaks <deck>"), and every copy not in the language asked for (copies[].other_language). This is everything that matches, not advice on what to trade.

match_circle input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
match_circle output schema
{
  "type": "object",
  "required": [
    "currency",
    "friends",
    "totals",
    "note"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "totals": {
      "type": "object",
      "required": [
        "friends",
        "with_matches",
        "new_cards"
      ],
      "properties": {
        "friends": {
          "type": "number"
        },
        "new_cards": {
          "type": "number"
        },
        "with_matches": {
          "type": "number",
          "description": "Friends with at least one card either way"
        }
      }
    },
    "friends": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "friend",
          "new_cards",
          "you_send",
          "you_get",
          "not_published",
          "difference"
        ],
        "properties": {
          "friend": {
            "type": "string",
            "description": "The friend's handle (\"@name\"): the only thing named of them"
          },
          "you_get": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "cards",
                  "value",
                  "currency",
                  "excludes_proxies",
                  "proxy_cards",
                  "unpriced_cards",
                  "cards_breaking_decks",
                  "rows"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "scryfall_url",
                        "image_uri",
                        "printing",
                        "lang",
                        "quantity",
                        "other_language_quantity",
                        "breaks_decks",
                        "includes_proxies",
                        "proxy_quantity",
                        "value",
                        "unpriced_quantity",
                        "you_need",
                        "they_offer",
                        "wanted_by",
                        "copies",
                        "new"
                      ],
                      "properties": {
                        "new": {
                          "type": "boolean",
                          "description": "Not there when the user last looked at this friend: say it is new"
                        },
                        "lang": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The language the list asks for, Scryfall's code; null any. A preference: other languages are still offered, marked"
                        },
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "number"
                        },
                        "copies": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "set_code",
                              "collector_number",
                              "scryfall_url",
                              "finish",
                              "condition",
                              "lang",
                              "other_language",
                              "quantity",
                              "is_proxy",
                              "breaks_decks",
                              "image_uri",
                              "unit_price"
                            ],
                            "properties": {
                              "lang": {
                                "type": "string"
                              },
                              "finish": {
                                "enum": [
                                  "nonfoil",
                                  "foil",
                                  "etched"
                                ],
                                "type": "string"
                              },
                              "is_proxy": {
                                "type": "boolean",
                                "description": "A PROXY, not a real card: always say so; it counts as zero in value"
                              },
                              "quantity": {
                                "type": "number"
                              },
                              "set_code": {
                                "type": "string"
                              },
                              "condition": {
                                "enum": [
                                  "NM",
                                  "LP",
                                  "MP",
                                  "HP",
                                  "DMG"
                                ],
                                "type": "string"
                              },
                              "image_uri": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                              },
                              "unit_price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Per copy, in currency; null when no price is known"
                              },
                              "breaks_decks": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The decks of the copy's owner that claim it or play it shared: say \"trading this card breaks <deck>\" for each. Empty: no deck plays it"
                              },
                              "scryfall_url": {
                                "type": "string",
                                "description": "The card's page on Scryfall: link the card's name to it"
                              },
                              "other_language": {
                                "type": "boolean",
                                "description": "The list asked for another language (row.lang): these copies are offered all the same. Say \"not the language asked for\""
                              },
                              "collector_number": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "printing": {
                          "enum": [
                            "this printing only",
                            "any printing"
                          ],
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        },
                        "you_need": {
                          "type": "number"
                        },
                        "image_uri": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The wanted card's picture on Scryfall, to show as it is: the printing the list pins, else one printing of the card; null when a deck share withholds its printings or the catalogue has none. Each copy has its own"
                        },
                        "wanted_by": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The user's lists that miss it: deck names, or \"Personal wantlist\""
                        },
                        "they_offer": {
                          "type": "number"
                        },
                        "breaks_decks": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Every deck a trade of this row's copies breaks: relay it before any trade talk"
                        },
                        "scryfall_url": {
                          "type": "string",
                          "description": "The card's page on Scryfall, by its name"
                        },
                        "proxy_quantity": {
                          "type": "number",
                          "description": "How many of the copies are proxies; they count as zero in value"
                        },
                        "includes_proxies": {
                          "type": "boolean",
                          "description": "Some of the copies are PROXIES: say so before any trade talk"
                        },
                        "unpriced_quantity": {
                          "type": "number",
                          "description": "Real copies with no known price: the row's value leaves them out"
                        },
                        "other_language_quantity": {
                          "type": "number",
                          "description": "Copies not in the language asked for"
                        }
                      }
                    }
                  },
                  "cards": {
                    "type": "number"
                  },
                  "value": {
                    "type": "number"
                  },
                  "currency": {
                    "enum": [
                      "USD",
                      "EUR",
                      "CHF"
                    ],
                    "type": "string"
                  },
                  "proxy_cards": {
                    "type": "number",
                    "description": "Proxy copies on this side: name them"
                  },
                  "unpriced_cards": {
                    "type": "number",
                    "description": "Real copies with no known price: the value leaves them out, so say how many"
                  },
                  "excludes_proxies": {
                    "type": "boolean",
                    "const": true,
                    "description": "Proxies count as zero"
                  },
                  "cards_breaking_decks": {
                    "type": "number",
                    "description": "Copies on this side whose trade breaks a deck, each named on its row"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "null: they published no tradelist"
          },
          "you_send": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "cards",
                  "value",
                  "currency",
                  "excludes_proxies",
                  "proxy_cards",
                  "unpriced_cards",
                  "cards_breaking_decks",
                  "rows"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "scryfall_url",
                        "image_uri",
                        "printing",
                        "lang",
                        "quantity",
                        "other_language_quantity",
                        "breaks_decks",
                        "includes_proxies",
                        "proxy_quantity",
                        "value",
                        "unpriced_quantity",
                        "they_need",
                        "you_can_send",
                        "includes_shared",
                        "copies",
                        "new"
                      ],
                      "properties": {
                        "new": {
                          "type": "boolean",
                          "description": "Not there when the user last looked at this friend: say it is new"
                        },
                        "lang": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The language the list asks for, Scryfall's code; null any. A preference: other languages are still offered, marked"
                        },
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "number"
                        },
                        "copies": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "set_code",
                              "collector_number",
                              "scryfall_url",
                              "finish",
                              "condition",
                              "lang",
                              "other_language",
                              "quantity",
                              "is_proxy",
                              "breaks_decks",
                              "image_uri",
                              "unit_price",
                              "physically_in",
                              "shared_with"
                            ],
                            "properties": {
                              "lang": {
                                "type": "string"
                              },
                              "finish": {
                                "enum": [
                                  "nonfoil",
                                  "foil",
                                  "etched"
                                ],
                                "type": "string"
                              },
                              "is_proxy": {
                                "type": "boolean",
                                "description": "A PROXY, not a real card: always say so; it counts as zero in value"
                              },
                              "quantity": {
                                "type": "number"
                              },
                              "set_code": {
                                "type": "string"
                              },
                              "condition": {
                                "enum": [
                                  "NM",
                                  "LP",
                                  "MP",
                                  "HP",
                                  "DMG"
                                ],
                                "type": "string"
                              },
                              "image_uri": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                              },
                              "unit_price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Per copy, in currency; null when no price is known"
                              },
                              "shared_with": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The user's decks that share this stack: sending the copy takes it from them. Name each"
                              },
                              "breaks_decks": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "The decks of the copy's owner that claim it or play it shared: say \"trading this card breaks <deck>\" for each. Empty: no deck plays it"
                              },
                              "scryfall_url": {
                                "type": "string",
                                "description": "The card's page on Scryfall: link the card's name to it"
                              },
                              "physically_in": {
                                "type": "string",
                                "description": "Where the copy physically is"
                              },
                              "other_language": {
                                "type": "boolean",
                                "description": "The list asked for another language (row.lang): these copies are offered all the same. Say \"not the language asked for\""
                              },
                              "collector_number": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "printing": {
                          "enum": [
                            "this printing only",
                            "any printing"
                          ],
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        },
                        "image_uri": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The wanted card's picture on Scryfall, to show as it is: the printing the list pins, else one printing of the card; null when a deck share withholds its printings or the catalogue has none. Each copy has its own"
                        },
                        "they_need": {
                          "type": "number"
                        },
                        "breaks_decks": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Every deck a trade of this row's copies breaks: relay it before any trade talk"
                        },
                        "scryfall_url": {
                          "type": "string",
                          "description": "The card's page on Scryfall, by its name"
                        },
                        "you_can_send": {
                          "type": "number"
                        },
                        "proxy_quantity": {
                          "type": "number",
                          "description": "How many of the copies are proxies; they count as zero in value"
                        },
                        "includes_shared": {
                          "type": "boolean",
                          "description": "A copy is one a deck of the user shares: sending it takes it from that deck. Say which"
                        },
                        "includes_proxies": {
                          "type": "boolean",
                          "description": "Some of the copies are PROXIES: say so before any trade talk"
                        },
                        "unpriced_quantity": {
                          "type": "number",
                          "description": "Real copies with no known price: the row's value leaves them out"
                        },
                        "other_language_quantity": {
                          "type": "number",
                          "description": "Copies not in the language asked for"
                        }
                      }
                    }
                  },
                  "cards": {
                    "type": "number"
                  },
                  "value": {
                    "type": "number"
                  },
                  "currency": {
                    "enum": [
                      "USD",
                      "EUR",
                      "CHF"
                    ],
                    "type": "string"
                  },
                  "proxy_cards": {
                    "type": "number",
                    "description": "Proxy copies on this side: name them"
                  },
                  "unpriced_cards": {
                    "type": "number",
                    "description": "Real copies with no known price: the value leaves them out, so say how many"
                  },
                  "excludes_proxies": {
                    "type": "boolean",
                    "const": true,
                    "description": "Proxies count as zero"
                  },
                  "cards_breaking_decks": {
                    "type": "number",
                    "description": "Copies on this side whose trade breaks a deck, each named on its row"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "null: they published no wantlist"
          },
          "new_cards": {
            "type": "number",
            "description": "Rows not there when the user last looked: lead with these"
          },
          "difference": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "amount",
                  "currency",
                  "direction",
                  "unpriced_cards"
                ],
                "properties": {
                  "amount": {
                    "type": "number"
                  },
                  "currency": {
                    "enum": [
                      "USD",
                      "EUR",
                      "CHF"
                    ],
                    "type": "string"
                  },
                  "direction": {
                    "enum": [
                      "you_send_more",
                      "you_get_more",
                      "even"
                    ],
                    "type": "string"
                  },
                  "unpriced_cards": {
                    "type": "number",
                    "description": "Cards on either side with no known price: the gap leaves them out. When > 0, say so and never call the trade even"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "Everything that matches on both sides, not an evened-out deal; null unless both sides are published"
          },
          "not_published": {
            "type": "array",
            "items": {
              "enum": [
                "wantlist",
                "tradelist"
              ],
              "type": "string"
            }
          }
        }
      }
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    }
  }
}
match_circle annotations
{
  "title": "Match circle",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
mark_circle_seen — Mark circle seen
Advertised by the server during the last successful anonymous check.

Record that the current user has seen their trade circle's matches: the next match_circle (here or on the Trade page) marks as `new` only what came after. Call it once after showing the user match_circle's answer, never before and never in the background. marked_friends counts the friends whose match changed.

mark_circle_seen input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
mark_circle_seen annotations
{
  "title": "Mark circle seen",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
invite_friend — Invite friend
Advertised by the server during the last successful anonymous check.
Open-world

An invite link for ONE player who is not on Reliquary yet, to bring them into the current user's trade circle. Relay `url` and `sentence` for the user to send (WhatsApp, a message): the sentence counts the cards the user's handle publishes and never names one. The link is single use and lasts 30 days: the first account made through it gets a circle request from the user waiting, which the new player accepts. A player already on Reliquary is added by handle (add_friend) instead. Needs the user's own handle (set_handle) and a free place in the plan's circle; a few links a day.

invite_friend input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {}
}
invite_friend annotations
{
  "title": "Invite friend",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
cancel_invite — Cancel invite
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Take back an invite link the current user made (my_circle lists them, with their code): an open link stops bringing anyone in, and a link a newcomer used has its circle request withdrawn. Either way its place in the plan's circle is free again. A link whose player accepted is a friend now: remove_friend instead.

cancel_invite input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "code"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "The link's code, the part after /i/ (or the whole link)"
    }
  }
}
cancel_invite annotations
{
  "title": "Cancel invite",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": true
}
offer_swap — Offer swap
Advertised by the server during the last successful anonymous check.
Open-world

Propose a swap to a FRIEND in the trade circle, from match_circle's rows with that friend: `send` picks rows of you_send and `get` rows of you_get, each by card name and count (a card with several rows: narrow with printing and lang, as the row shows them). Copies go as the match deals them: free ones first, then a deck's copy, never a proxy. Nothing outside the match can be added. `add_to` names, for a card the user GETS, the deck of theirs that claims it once the swap is approved: only on the user's say-so, never by default. Nothing moves until the friend approves; it expires after 14 days, and the user can withdraw it (answer_swap). Before calling, show the user both sides, their values, and every deck of theirs a copy they send breaks (breaks_decks in match_circle), and ask. The answer is the swap as my_swaps shows it.

offer_swap input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "with"
  ],
  "properties": {
    "get": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "card",
          "quantity"
        ],
        "properties": {
          "card": {
            "type": "string",
            "description": "The card's English name, as the match row names it"
          },
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "Narrows to the row asking for this language (null: any)"
          },
          "printing": {
            "enum": [
              "any printing",
              "this printing only"
            ],
            "type": "string",
            "description": "Narrows to the row with this printing"
          },
          "quantity": {
            "type": "integer",
            "maximum": 9007199254740991,
            "minimum": 1
          },
          "set_code": {
            "type": "string",
            "maxLength": 10,
            "description": "Narrows to the row pinned to this printing, as its copies' set_code show it, when two rows pin the same card"
          },
          "collector_number": {
            "type": "string",
            "maxLength": 10,
            "description": "With set_code: the pinned printing's collector_number"
          }
        }
      },
      "maxItems": 100,
      "description": "Rows of you_get to receive, with counts"
    },
    "send": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "card",
          "quantity"
        ],
        "properties": {
          "card": {
            "type": "string",
            "description": "The card's English name, as the match row names it"
          },
          "lang": {
            "type": [
              "string",
              "null"
            ],
            "description": "Narrows to the row asking for this language (null: any)"
          },
          "printing": {
            "enum": [
              "any printing",
              "this printing only"
            ],
            "type": "string",
            "description": "Narrows to the row with this printing"
          },
          "quantity": {
            "type": "integer",
            "maximum": 9007199254740991,
            "minimum": 1
          },
          "set_code": {
            "type": "string",
            "maxLength": 10,
            "description": "Narrows to the row pinned to this printing, as its copies' set_code show it, when two rows pin the same card"
          },
          "collector_number": {
            "type": "string",
            "maxLength": 10,
            "description": "With set_code: the pinned printing's collector_number"
          }
        }
      },
      "maxItems": 100,
      "description": "Rows of you_send to send, with counts"
    },
    "with": {
      "type": "string",
      "description": "The friend's handle, with its @"
    },
    "add_to": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "card",
          "deck"
        ],
        "properties": {
          "card": {
            "type": "string"
          },
          "deck": {
            "type": "string",
            "description": "Deck id or name: one of the decks that miss the card"
          }
        }
      },
      "maxItems": 100,
      "description": "Cards the user gets that a deck of theirs claims on the yes, as the user ticked them"
    }
  }
}
offer_swap annotations
{
  "title": "Offer swap",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
my_swaps — My swaps
Advertised by the server during the last successful anonymous check.
Advertised read-only

The current user's swaps with friends: waiting_for_you (proposed to the user: approve or decline with answer_swap), waiting_for_friend (proposed by the user: they may withdraw it), and answered in the last 30 days. Each swap: you_give and you_receive with cards, value in `currency` (default USD) and lines. Disclosure duties: name every deck of the user's a copy they give breaks (lines[].breaks_decks), and on an open swap every claim the yes would release (lines[].would_release). The friend's deck names are never shown. An open swap past expires_at reads expired.

my_swaps input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string",
      "description": "Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price."
    }
  }
}
my_swaps output schema
{
  "type": "object",
  "required": [
    "currency",
    "waiting_for_you",
    "waiting_for_friend",
    "answered",
    "note"
  ],
  "properties": {
    "note": {
      "type": "string"
    },
    "answered": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "with",
          "direction",
          "status",
          "created_at",
          "expires_at",
          "answered_at",
          "currency",
          "you_give",
          "you_receive",
          "result"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "swap_id for answer_swap"
          },
          "with": {
            "type": [
              "string",
              "null"
            ],
            "description": "The friend's handle (\"@name\"); null when they have since given it up"
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "released",
                  "claimed",
                  "not_claimed"
                ],
                "properties": {
                  "claimed": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "quantity"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        }
                      }
                    },
                    "description": "Received copies the user's ticked decks claimed"
                  },
                  "released": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "quantity"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        }
                      }
                    },
                    "description": "Claims the yes released from the user's decks"
                  },
                  "not_claimed": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "reason"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "A tick that could not be kept at the yes: the deck no longer missed the card, or is past the plan"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "What an approved swap did to the user's side; null until approved"
          },
          "status": {
            "enum": [
              "open",
              "approved",
              "declined",
              "withdrawn",
              "expired"
            ],
            "type": "string"
          },
          "currency": {
            "enum": [
              "USD",
              "EUR",
              "CHF"
            ],
            "type": "string"
          },
          "you_give": {
            "type": "object",
            "required": [
              "cards",
              "value",
              "unpriced_cards",
              "lines"
            ],
            "properties": {
              "cards": {
                "type": "number"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "set_code",
                    "collector_number",
                    "scryfall_url",
                    "image_uri",
                    "finish",
                    "condition",
                    "lang",
                    "quantity",
                    "is_signed",
                    "is_altered",
                    "unit_price",
                    "breaks_decks"
                  ],
                  "properties": {
                    "lang": {
                      "type": "string",
                      "description": "Scryfall's language code of these copies"
                    },
                    "name": {
                      "type": "string",
                      "description": "The English name"
                    },
                    "add_to": {
                      "type": "string",
                      "description": "The user's own tick: the deck of theirs that claims these copies on the yes"
                    },
                    "finish": {
                      "enum": [
                        "nonfoil",
                        "foil",
                        "etched"
                      ],
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "set_code": {
                      "type": "string"
                    },
                    "condition": {
                      "enum": [
                        "NM",
                        "LP",
                        "MP",
                        "HP",
                        "DMG"
                      ],
                      "type": "string"
                    },
                    "image_uri": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                    },
                    "is_signed": {
                      "type": "boolean",
                      "description": "Signed copies: say so, the receiver gets them as they are"
                    },
                    "is_altered": {
                      "type": "boolean",
                      "description": "Altered copies: say so, the receiver gets them as they are"
                    },
                    "unit_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Per copy in `currency`; null when no price is known (counted as zero)"
                    },
                    "breaks_decks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The user's own decks this copy's trade breaks: name each one. Always empty on the friend's copies, whose decks stay theirs"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The card's page on Scryfall: link the card's name to it"
                    },
                    "decks_missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "A swap waiting for the user's yes: the user's decks that miss this card, which answer_swap's add_to may name. Ask; never tick one for them"
                    },
                    "would_release": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "deck",
                          "quantity"
                        ],
                        "properties": {
                          "deck": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "Open swaps, the user's own copies: the claims the yes releases now, by deck. Name each one before the user approves"
                    },
                    "collector_number": {
                      "type": "string"
                    }
                  }
                }
              },
              "value": {
                "type": "number",
                "description": "Sum of priced copies in `currency`"
              },
              "unpriced_cards": {
                "type": "number",
                "description": "Copies with no known price, left out of value: say so"
              }
            }
          },
          "direction": {
            "enum": [
              "proposed",
              "received"
            ],
            "type": "string",
            "description": "proposed: the user proposed it; received: it waits for the user's answer"
          },
          "created_at": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "description": "An open swap after this reads expired and can no longer be approved"
          },
          "answered_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "you_receive": {
            "type": "object",
            "required": [
              "cards",
              "value",
              "unpriced_cards",
              "lines"
            ],
            "properties": {
              "cards": {
                "type": "number"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "set_code",
                    "collector_number",
                    "scryfall_url",
                    "image_uri",
                    "finish",
                    "condition",
                    "lang",
                    "quantity",
                    "is_signed",
                    "is_altered",
                    "unit_price",
                    "breaks_decks"
                  ],
                  "properties": {
                    "lang": {
                      "type": "string",
                      "description": "Scryfall's language code of these copies"
                    },
                    "name": {
                      "type": "string",
                      "description": "The English name"
                    },
                    "add_to": {
                      "type": "string",
                      "description": "The user's own tick: the deck of theirs that claims these copies on the yes"
                    },
                    "finish": {
                      "enum": [
                        "nonfoil",
                        "foil",
                        "etched"
                      ],
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "set_code": {
                      "type": "string"
                    },
                    "condition": {
                      "enum": [
                        "NM",
                        "LP",
                        "MP",
                        "HP",
                        "DMG"
                      ],
                      "type": "string"
                    },
                    "image_uri": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                    },
                    "is_signed": {
                      "type": "boolean",
                      "description": "Signed copies: say so, the receiver gets them as they are"
                    },
                    "is_altered": {
                      "type": "boolean",
                      "description": "Altered copies: say so, the receiver gets them as they are"
                    },
                    "unit_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Per copy in `currency`; null when no price is known (counted as zero)"
                    },
                    "breaks_decks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The user's own decks this copy's trade breaks: name each one. Always empty on the friend's copies, whose decks stay theirs"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The card's page on Scryfall: link the card's name to it"
                    },
                    "decks_missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "A swap waiting for the user's yes: the user's decks that miss this card, which answer_swap's add_to may name. Ask; never tick one for them"
                    },
                    "would_release": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "deck",
                          "quantity"
                        ],
                        "properties": {
                          "deck": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "Open swaps, the user's own copies: the claims the yes releases now, by deck. Name each one before the user approves"
                    },
                    "collector_number": {
                      "type": "string"
                    }
                  }
                }
              },
              "value": {
                "type": "number",
                "description": "Sum of priced copies in `currency`"
              },
              "unpriced_cards": {
                "type": "number",
                "description": "Copies with no known price, left out of value: say so"
              }
            }
          }
        }
      },
      "description": "Approved, declined, withdrawn or expired, the last 30 days"
    },
    "currency": {
      "enum": [
        "USD",
        "EUR",
        "CHF"
      ],
      "type": "string"
    },
    "waiting_for_you": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "with",
          "direction",
          "status",
          "created_at",
          "expires_at",
          "answered_at",
          "currency",
          "you_give",
          "you_receive",
          "result"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "swap_id for answer_swap"
          },
          "with": {
            "type": [
              "string",
              "null"
            ],
            "description": "The friend's handle (\"@name\"); null when they have since given it up"
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "released",
                  "claimed",
                  "not_claimed"
                ],
                "properties": {
                  "claimed": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "quantity"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        }
                      }
                    },
                    "description": "Received copies the user's ticked decks claimed"
                  },
                  "released": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "quantity"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        }
                      }
                    },
                    "description": "Claims the yes released from the user's decks"
                  },
                  "not_claimed": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "reason"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "A tick that could not be kept at the yes: the deck no longer missed the card, or is past the plan"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "What an approved swap did to the user's side; null until approved"
          },
          "status": {
            "enum": [
              "open",
              "approved",
              "declined",
              "withdrawn",
              "expired"
            ],
            "type": "string"
          },
          "currency": {
            "enum": [
              "USD",
              "EUR",
              "CHF"
            ],
            "type": "string"
          },
          "you_give": {
            "type": "object",
            "required": [
              "cards",
              "value",
              "unpriced_cards",
              "lines"
            ],
            "properties": {
              "cards": {
                "type": "number"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "set_code",
                    "collector_number",
                    "scryfall_url",
                    "image_uri",
                    "finish",
                    "condition",
                    "lang",
                    "quantity",
                    "is_signed",
                    "is_altered",
                    "unit_price",
                    "breaks_decks"
                  ],
                  "properties": {
                    "lang": {
                      "type": "string",
                      "description": "Scryfall's language code of these copies"
                    },
                    "name": {
                      "type": "string",
                      "description": "The English name"
                    },
                    "add_to": {
                      "type": "string",
                      "description": "The user's own tick: the deck of theirs that claims these copies on the yes"
                    },
                    "finish": {
                      "enum": [
                        "nonfoil",
                        "foil",
                        "etched"
                      ],
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "set_code": {
                      "type": "string"
                    },
                    "condition": {
                      "enum": [
                        "NM",
                        "LP",
                        "MP",
                        "HP",
                        "DMG"
                      ],
                      "type": "string"
                    },
                    "image_uri": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                    },
                    "is_signed": {
                      "type": "boolean",
                      "description": "Signed copies: say so, the receiver gets them as they are"
                    },
                    "is_altered": {
                      "type": "boolean",
                      "description": "Altered copies: say so, the receiver gets them as they are"
                    },
                    "unit_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Per copy in `currency`; null when no price is known (counted as zero)"
                    },
                    "breaks_decks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The user's own decks this copy's trade breaks: name each one. Always empty on the friend's copies, whose decks stay theirs"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The card's page on Scryfall: link the card's name to it"
                    },
                    "decks_missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "A swap waiting for the user's yes: the user's decks that miss this card, which answer_swap's add_to may name. Ask; never tick one for them"
                    },
                    "would_release": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "deck",
                          "quantity"
                        ],
                        "properties": {
                          "deck": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "Open swaps, the user's own copies: the claims the yes releases now, by deck. Name each one before the user approves"
                    },
                    "collector_number": {
                      "type": "string"
                    }
                  }
                }
              },
              "value": {
                "type": "number",
                "description": "Sum of priced copies in `currency`"
              },
              "unpriced_cards": {
                "type": "number",
                "description": "Copies with no known price, left out of value: say so"
              }
            }
          },
          "direction": {
            "enum": [
              "proposed",
              "received"
            ],
            "type": "string",
            "description": "proposed: the user proposed it; received: it waits for the user's answer"
          },
          "created_at": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "description": "An open swap after this reads expired and can no longer be approved"
          },
          "answered_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "you_receive": {
            "type": "object",
            "required": [
              "cards",
              "value",
              "unpriced_cards",
              "lines"
            ],
            "properties": {
              "cards": {
                "type": "number"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "set_code",
                    "collector_number",
                    "scryfall_url",
                    "image_uri",
                    "finish",
                    "condition",
                    "lang",
                    "quantity",
                    "is_signed",
                    "is_altered",
                    "unit_price",
                    "breaks_decks"
                  ],
                  "properties": {
                    "lang": {
                      "type": "string",
                      "description": "Scryfall's language code of these copies"
                    },
                    "name": {
                      "type": "string",
                      "description": "The English name"
                    },
                    "add_to": {
                      "type": "string",
                      "description": "The user's own tick: the deck of theirs that claims these copies on the yes"
                    },
                    "finish": {
                      "enum": [
                        "nonfoil",
                        "foil",
                        "etched"
                      ],
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "set_code": {
                      "type": "string"
                    },
                    "condition": {
                      "enum": [
                        "NM",
                        "LP",
                        "MP",
                        "HP",
                        "DMG"
                      ],
                      "type": "string"
                    },
                    "image_uri": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                    },
                    "is_signed": {
                      "type": "boolean",
                      "description": "Signed copies: say so, the receiver gets them as they are"
                    },
                    "is_altered": {
                      "type": "boolean",
                      "description": "Altered copies: say so, the receiver gets them as they are"
                    },
                    "unit_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Per copy in `currency`; null when no price is known (counted as zero)"
                    },
                    "breaks_decks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The user's own decks this copy's trade breaks: name each one. Always empty on the friend's copies, whose decks stay theirs"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The card's page on Scryfall: link the card's name to it"
                    },
                    "decks_missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "A swap waiting for the user's yes: the user's decks that miss this card, which answer_swap's add_to may name. Ask; never tick one for them"
                    },
                    "would_release": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "deck",
                          "quantity"
                        ],
                        "properties": {
                          "deck": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "Open swaps, the user's own copies: the claims the yes releases now, by deck. Name each one before the user approves"
                    },
                    "collector_number": {
                      "type": "string"
                    }
                  }
                }
              },
              "value": {
                "type": "number",
                "description": "Sum of priced copies in `currency`"
              },
              "unpriced_cards": {
                "type": "number",
                "description": "Copies with no known price, left out of value: say so"
              }
            }
          }
        }
      },
      "description": "Proposed to the user: approve or decline (answer_swap)"
    },
    "waiting_for_friend": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "with",
          "direction",
          "status",
          "created_at",
          "expires_at",
          "answered_at",
          "currency",
          "you_give",
          "you_receive",
          "result"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "swap_id for answer_swap"
          },
          "with": {
            "type": [
              "string",
              "null"
            ],
            "description": "The friend's handle (\"@name\"); null when they have since given it up"
          },
          "result": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "released",
                  "claimed",
                  "not_claimed"
                ],
                "properties": {
                  "claimed": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "quantity"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        }
                      }
                    },
                    "description": "Received copies the user's ticked decks claimed"
                  },
                  "released": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "quantity"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        }
                      }
                    },
                    "description": "Claims the yes released from the user's decks"
                  },
                  "not_claimed": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "deck",
                        "name",
                        "reason"
                      ],
                      "properties": {
                        "deck": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        }
                      }
                    },
                    "description": "A tick that could not be kept at the yes: the deck no longer missed the card, or is past the plan"
                  }
                }
              },
              {
                "type": "null"
              }
            ],
            "description": "What an approved swap did to the user's side; null until approved"
          },
          "status": {
            "enum": [
              "open",
              "approved",
              "declined",
              "withdrawn",
              "expired"
            ],
            "type": "string"
          },
          "currency": {
            "enum": [
              "USD",
              "EUR",
              "CHF"
            ],
            "type": "string"
          },
          "you_give": {
            "type": "object",
            "required": [
              "cards",
              "value",
              "unpriced_cards",
              "lines"
            ],
            "properties": {
              "cards": {
                "type": "number"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "set_code",
                    "collector_number",
                    "scryfall_url",
                    "image_uri",
                    "finish",
                    "condition",
                    "lang",
                    "quantity",
                    "is_signed",
                    "is_altered",
                    "unit_price",
                    "breaks_decks"
                  ],
                  "properties": {
                    "lang": {
                      "type": "string",
                      "description": "Scryfall's language code of these copies"
                    },
                    "name": {
                      "type": "string",
                      "description": "The English name"
                    },
                    "add_to": {
                      "type": "string",
                      "description": "The user's own tick: the deck of theirs that claims these copies on the yes"
                    },
                    "finish": {
                      "enum": [
                        "nonfoil",
                        "foil",
                        "etched"
                      ],
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "set_code": {
                      "type": "string"
                    },
                    "condition": {
                      "enum": [
                        "NM",
                        "LP",
                        "MP",
                        "HP",
                        "DMG"
                      ],
                      "type": "string"
                    },
                    "image_uri": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                    },
                    "is_signed": {
                      "type": "boolean",
                      "description": "Signed copies: say so, the receiver gets them as they are"
                    },
                    "is_altered": {
                      "type": "boolean",
                      "description": "Altered copies: say so, the receiver gets them as they are"
                    },
                    "unit_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Per copy in `currency`; null when no price is known (counted as zero)"
                    },
                    "breaks_decks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The user's own decks this copy's trade breaks: name each one. Always empty on the friend's copies, whose decks stay theirs"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The card's page on Scryfall: link the card's name to it"
                    },
                    "decks_missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "A swap waiting for the user's yes: the user's decks that miss this card, which answer_swap's add_to may name. Ask; never tick one for them"
                    },
                    "would_release": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "deck",
                          "quantity"
                        ],
                        "properties": {
                          "deck": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "Open swaps, the user's own copies: the claims the yes releases now, by deck. Name each one before the user approves"
                    },
                    "collector_number": {
                      "type": "string"
                    }
                  }
                }
              },
              "value": {
                "type": "number",
                "description": "Sum of priced copies in `currency`"
              },
              "unpriced_cards": {
                "type": "number",
                "description": "Copies with no known price, left out of value: say so"
              }
            }
          },
          "direction": {
            "enum": [
              "proposed",
              "received"
            ],
            "type": "string",
            "description": "proposed: the user proposed it; received: it waits for the user's answer"
          },
          "created_at": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "description": "An open swap after this reads expired and can no longer be approved"
          },
          "answered_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "you_receive": {
            "type": "object",
            "required": [
              "cards",
              "value",
              "unpriced_cards",
              "lines"
            ],
            "properties": {
              "cards": {
                "type": "number"
              },
              "lines": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "set_code",
                    "collector_number",
                    "scryfall_url",
                    "image_uri",
                    "finish",
                    "condition",
                    "lang",
                    "quantity",
                    "is_signed",
                    "is_altered",
                    "unit_price",
                    "breaks_decks"
                  ],
                  "properties": {
                    "lang": {
                      "type": "string",
                      "description": "Scryfall's language code of these copies"
                    },
                    "name": {
                      "type": "string",
                      "description": "The English name"
                    },
                    "add_to": {
                      "type": "string",
                      "description": "The user's own tick: the deck of theirs that claims these copies on the yes"
                    },
                    "finish": {
                      "enum": [
                        "nonfoil",
                        "foil",
                        "etched"
                      ],
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "set_code": {
                      "type": "string"
                    },
                    "condition": {
                      "enum": [
                        "NM",
                        "LP",
                        "MP",
                        "HP",
                        "DMG"
                      ],
                      "type": "string"
                    },
                    "image_uri": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The card's picture on Scryfall, to show as it is; null when the catalogue has none"
                    },
                    "is_signed": {
                      "type": "boolean",
                      "description": "Signed copies: say so, the receiver gets them as they are"
                    },
                    "is_altered": {
                      "type": "boolean",
                      "description": "Altered copies: say so, the receiver gets them as they are"
                    },
                    "unit_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Per copy in `currency`; null when no price is known (counted as zero)"
                    },
                    "breaks_decks": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "The user's own decks this copy's trade breaks: name each one. Always empty on the friend's copies, whose decks stay theirs"
                    },
                    "scryfall_url": {
                      "type": "string",
                      "description": "The card's page on Scryfall: link the card's name to it"
                    },
                    "decks_missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "A swap waiting for the user's yes: the user's decks that miss this card, which answer_swap's add_to may name. Ask; never tick one for them"
                    },
                    "would_release": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "deck",
                          "quantity"
                        ],
                        "properties": {
                          "deck": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "number"
                          }
                        }
                      },
                      "description": "Open swaps, the user's own copies: the claims the yes releases now, by deck. Name each one before the user approves"
                    },
                    "collector_number": {
                      "type": "string"
                    }
                  }
                }
              },
              "value": {
                "type": "number",
                "description": "Sum of priced copies in `currency`"
              },
              "unpriced_cards": {
                "type": "number",
                "description": "Copies with no known price, left out of value: say so"
              }
            }
          }
        }
      },
      "description": "Proposed by the user: the friend answers; the user may withdraw"
    }
  }
}
my_swaps annotations
{
  "title": "My swaps",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
answer_swap — Answer swap
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Answer a swap: approve or decline one proposed to the current user, or withdraw one they proposed. Approve moves cards in both collections at once: each copy given leaves its owner (the claims it no longer fits released, and named), each copy received lands in Unsorted as a trade. Without confirm: true, approve is a dry run: show the user what they give, receive and what would_release names, and ask before confirming. `add_to` ticks, for a card the user receives, the deck of theirs that claims it: only on the user's say-so. Refused, with nothing moved, when a copy is gone or changed since the proposal. Decline and withdraw move nothing.

answer_swap input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "swap_id",
    "answer"
  ],
  "properties": {
    "add_to": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "card",
          "deck"
        ],
        "properties": {
          "card": {
            "type": "string"
          },
          "deck": {
            "type": "string",
            "description": "Deck id or name: one of the decks that miss the card"
          }
        }
      },
      "maxItems": 100
    },
    "answer": {
      "enum": [
        "approve",
        "decline",
        "withdraw"
      ],
      "type": "string"
    },
    "confirm": {
      "type": "boolean",
      "description": "approve only: true to move the cards; without it nothing moves"
    },
    "swap_id": {
      "type": "string"
    }
  }
}
answer_swap annotations
{
  "title": "Answer swap",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": true
}
import_deck — Import deck
Advertised by the server during the last successful anonymous check.
Open-world

Create a deck from pasted decklist text — the reliable path, ask for it first ("4 Lightning Bolt (2XM) 123" per line; Commander/Sideboard sections, "SB:" lines and *F* foil markers understood; any site's text export works: Moxfield, Archidekt, MTGGoldfish, MTGO, Arena). The link of a public Moxfield deck (moxfield.com/decks/…) is also accepted: it is asked for once, as a browser would. When Moxfield does not answer, the error says so — ask the user to open the deck on Moxfield → More → Export, copy the text, and retry with decklist_text. Sideboard cards land in the sideboard section; up to two commanders are kept as a pair. A companion (a Companion section, Moxfield's companion, *CMPN*) becomes the deck's companion, in the sideboard. Wants are stored oracle-level (any printing satisfies them). Card names may be in any language Scryfall prints ("4 Blitzschlag", "1 Foudre"): read_as lists each with the English card it was read as — tell the user. A foreign name several cards share is left unresolved with those cards named: ask which. Returns the deck, unresolved card names, ignored_lines (lines that were not a card: show them to the user, never guess) and notes to relay — e.g. a Commander list that came with a sideboard keeps it, and legality will flag it. Never refused for the plan: a deck past the decks the user's plan keeps editable is imported whole and answers editable:false and plan_limit, which names the decks that take edits: relay it. Typical next step: claim_from_collection to pull owned cards and report what is missing.

import_deck input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "url": {
      "type": "string",
      "description": "Public Moxfield deck URL (alternative to decklist_text; Moxfield may block it)"
    },
    "name": {
      "type": "string",
      "description": "Deck name override"
    },
    "format": {
      "enum": [
        "commander",
        "pdh",
        "dc",
        "standard",
        "pioneer",
        "modern",
        "premodern",
        "legacy",
        "vintage",
        "pauper",
        "casual"
      ],
      "type": "string"
    },
    "commander": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      },
      "description": "Commander override (else detected from the source)"
    },
    "companion": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      },
      "description": "Companion override (else detected from the source)"
    },
    "decklist_text": {
      "type": "string",
      "description": "Plain decklist text — preferred"
    }
  }
}
import_deck annotations
{
  "title": "Import deck",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
import_batch — Import batch
Advertised by the server during the last successful anonymous check.
Open-world

Bulk-import collection rows that were parsed client-side from a CSV export: rows = the CSV rows as objects keyed by the file's own column headers. format: auto (default) recognises the app from the headers — ManaBox, Deckbox (also Delver Lens's Deckbox preset), Moxfield, Dragon Shield, Sorted, Archidekt, TCGplayer app, MTGGoldfish, TopDecked, Helvault, Deckstats, MTGStocks, CardCastle — and reads any other file by its column names (Name / Card Name, Set Code, Set Name, Collector Number, Quantity, Foil / Finish, Condition, Language, Scryfall ID, Purchase Price, Reg Qty + Foil Qty). Pass a format id only to overrule the detection; decklist (or decklist_text with no rows) reads plain decklist text into the collection. The response names the format it read (detected_format) and sets unchecked_layout when that layout was written without a real export file to test it: tell the user, and suggest they look over the first cards once the job is done. A Cardmarket export cannot be imported (it names cards only by Cardmarket's product number) and is refused with that reason. A card named in another language is read as its English card (fix_unresolved with job_id lists them as read_as). A set given by name only is matched to its set when the name is the one Scryfall uses; otherwise the card's newest regular printing is taken. Max 500 rows per call — pass the returned job_id in follow-up calls to continue the same job, then processing runs in the background in resumable chunks. ManaBox binders / Dragon Shield folders become locations automatically. Returns job status; when it finishes as needs_review, use fix_unresolved. A name matching no card exactly is looked up on Scryfall, at most 200 an import and 500 a day per player: a row past that is left for fix_unresolved, saying why.

import_batch input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      },
      "maxItems": 500
    },
    "start": {
      "type": "boolean",
      "description": "Begin background processing (default true)"
    },
    "format": {
      "enum": [
        "auto",
        "generic",
        "manabox",
        "cardmarket",
        "topdecked",
        "helvault",
        "tcgplayer",
        "mtggoldfish",
        "deckstats",
        "moxfield",
        "deckbox",
        "dragonshield",
        "sorted",
        "archidekt",
        "mtgstocks",
        "cardcastle",
        "decklist"
      ],
      "type": "string"
    },
    "job_id": {
      "type": "string",
      "description": "Continue a previously created job"
    },
    "decklist_text": {
      "type": "string"
    }
  }
}
import_batch annotations
{
  "title": "Import batch",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
fix_unresolved — Fix unresolved
Advertised by the server during the last successful anonymous check.
Open-world

Review imports that need attention. Without row_id: list unresolved rows (optionally for one job_id). With job_id, read_as also lists rows that named their card otherwise, each with the English card it was read as ("Blitzschlag" → Lightning Bolt): tell the user. With row_id + printing (scryfall_id, or name/set_code/collector_number): resolve that row to the given printing and import it with the original quantity/condition/price attributes.

fix_unresolved input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "job_id": {
      "type": "string"
    },
    "row_id": {
      "type": "string"
    },
    "printing": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall"
        },
        "set_code": {
          "type": "string",
          "description": "Set code, e.g. \"2xm\""
        },
        "scryfall_id": {
          "type": "string",
          "description": "Exact Scryfall printing id, if known"
        },
        "collector_number": {
          "type": "string",
          "description": "Collector number within the set"
        }
      }
    }
  }
}
fix_unresolved annotations
{
  "title": "Fix unresolved",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
export_collection — Export collection
Advertised by the server during the last successful anonymous check.
Advertised read-only

Export the whole collection as CSV text. format moxfield_csv (re-importable into Moxfield) or deckbox_csv. Large collections produce large text — offer the REST endpoint /api/v1/export/collection for downloads.

export_collection input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "format"
  ],
  "properties": {
    "format": {
      "enum": [
        "moxfield_csv",
        "deckbox_csv"
      ],
      "type": "string"
    }
  }
}
export_collection output schema
{
  "type": "object",
  "required": [
    "csv"
  ],
  "properties": {
    "csv": {
      "type": "string"
    }
  }
}
export_collection annotations
{
  "title": "Export collection",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
export_deck — Export deck
Advertised by the server during the last successful anonymous check.
Advertised read-only

Export a deck (id or name) as plain decklist text: Commander section first when set (both of a pair), then a Companion section when the deck names one, then the "N Card Name" lines of the main deck, then a Sideboard section when there is one, the companion repeated there as Arena writes it (pinned printings keep their set/collector number). import_deck reads it back whole.

export_deck input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "deck"
  ],
  "properties": {
    "deck": {
      "type": "string",
      "description": "Deck id or name"
    }
  }
}
export_deck output schema
{
  "type": "object",
  "required": [
    "decklist"
  ],
  "properties": {
    "decklist": {
      "type": "string"
    }
  }
}
export_deck annotations
{
  "title": "Export deck",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

5 advertised

add-my-cards — Add my cards

Advertised by the server during the last successful anonymous check.

Add cards to the collection from a photo of them or a pasted list, and say what could not be read.

cards
The cards as text, one "1 Card Name" per line
where-is-my-card — Where's my card?

Advertised by the server during the last successful anonymous check.

Find a card: which box, binder or deck it is physically in, and which decks claim it.

card
The card to look for (required)
what-to-buy — What do I need to buy for this list?

Advertised by the server during the last successful anonymous check.

Import a decklist, claim what the collection already has, and list what is missing with prices.

decklist
The decklist as text, one "1 Card Name" per line
what-can-i-build — What can I build tonight?

Advertised by the server during the last successful anonymous check.

Rank the decks already in Reliquary by how complete they are from cards on hand.

No arguments advertised.

whats-new-in-my-circle — What's new with my trade circle?

Advertised by the server during the last successful anonymous check.

Circle requests and swaps waiting for an answer, and what changed in the matches with friends.

No arguments advertised.

Resources

2 advertised

reliquary-views — Reliquary views

Advertised by the server during the last successful anonymous check.

Draws a card, a card's place, a buylist, a deck and the decks that can be built.

reliquary-views URI
ui://reliquary/views-v2.html

MIME type: text/html;profile=mcp-app

reliquary-views-v1 — Reliquary views

Advertised by the server during the last successful anonymous check.

Draws a card, a card's place, a buylist, a deck and the decks that can be built.

reliquary-views-v1 URI
ui://reliquary/views-v1.html

MIME type: text/html;profile=mcp-app

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (37 of 37 checks answered)

  1. 2026-11-14: 1 of 1 checks answered
  2. 2026-11-15: 2 of 2 checks answered
  3. 2026-11-16: 4 of 4 checks answered
  4. 2026-11-17: 5 of 5 checks answered
  5. 2026-11-18: 5 of 5 checks answered
  6. 2026-11-19: 4 of 4 checks answered
  7. 2026-11-20: 3 of 3 checks answered
  8. 2026-11-21: 4 of 4 checks answered
  9. 2026-11-22: 4 of 4 checks answered
  10. 2026-11-23: 3 of 3 checks answered
  11. 2026-11-24: 2 of 2 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
3 of 3 (100%)
Average latency
1473 ms
95th percentile latency
2196 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 2300 ms · metadata changed · 74 tool(s), 2 resource(s), 0 resource template(s), 5 prompt(s); protected-resource metadata advertises OAuth
  • · probe · passed · 1257 ms · metadata changed · 74 tool(s), 2 resource(s), 0 resource template(s), 5 prompt(s); protected-resource metadata advertises OAuth
  • · probe · passed · 862 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http reliquary-mcp https://reliquary.gg/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add reliquary-mcp --url https://reliquary.gg/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable reliquary-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "reliquary-mcp": {
      "url": "https://reliquary.gg/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "reliquary-mcp": {
      "type": "streamableHttp",
      "url": "https://reliquary.gg/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start reliquary-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "reliquary-mcp": {
      "type": "http",
      "url": "https://reliquary.gg/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http reliquary-mcp https://reliquary.gg/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://reliquary.gg/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "reliquary-mcp": {
      "serverUrl": "https://reliquary.gg/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Reliquary MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run Reliquary MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing