deck_validate
Validate a Magic: The Gathering decklist against format rules, checking legality, deck size, copy limits, color identity, singleton, and pauper rarity. Returns valid or invalid with error details.
Instructions
Validate a decklist against a format's construction rules.
Checks legality, deck size, copy limits, color identity (Commander), singleton rules, and Pauper rarity. Returns VALID or INVALID with actionable error messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Format to validate against (e.g. 'commander', 'modern', 'standard', 'legacy') | |
| decklist | Yes | Card names, optionally prefixed with quantity (e.g. '4x Lightning Bolt' or 'Lightning Bolt') | |
| commander | No | Commander card name (required for Commander format) | |
| sideboard | No | Sideboard card names, same format as decklist | |
| response_format | No | Output verbosity: 'detailed' (default) or 'concise' | detailed |