Check a decklist's legality
check_legalityWhether 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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"decklist": "<decklist>"
},
"name": "check_legality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | One format to judge; omitted, every format but casual. commander | pdh (Pauper Commander) | dc (Duel Commander) | standard | pioneer | modern | legacy | vintage | pauper | casual | |
| decklist | Yes | The decklist as text, at most 250 different cards |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| read_as | Yes | Names read in another language, each with its card: "Foudre → Lightning Bolt" | |
| verdicts | Yes | One a format: the format asked, or every format but casual | |
| companion | Yes | The companion the list names, or null | |
| not_found | Yes | Names the catalogue does not know, as typed: they were not checked, so say so | |
| commanders | Yes | The commanders the list names, by their English names | |
| main_cards | Yes | Cards read in the main deck, the commanders among them | |
| shared_names | Yes | Names in another language several cards share: not checked; ask which card is meant | |
| ignored_lines | Yes | Lines that were not read as cards (a maybeboard, a stray line) | |
| sideboard_cards | Yes | Cards read in the sideboard, the companion among them |