check_deck_legality
Validate a decklist against a constructed format's rules (banned cards, deck size, copy limits, and in Commander the color-identity rule). Use this rather than recalling ban lists from memory: bans changed four times in 2026 alone, and a model's training cutoff makes stale ban data one of the most common wrong answers in Magic. Pass commander for Commander decks: it counts toward the 100, and it is what makes the color-identity check possible (without it the response says color identity went unchecked).
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": {
"format": "<format>",
"cards": "<cards>"
},
"name": "check_deck_legality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes | ||
| format | Yes | ||
| commander | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| legal | Yes | ||
| notes | No | ||
| violations | No |