validate_deck
Check if a Lorcana deck meets tournament rules: at least 60 cards, no more than 4 copies of a card, and at most 2 ink colors. Returns legal status, total cards, inks, and any violations.
Instructions
Validate a Lorcana deck against the format rules: at least 60 cards (no maximum — 60 is just the floor), max 4 copies of any card, max 2 distinct ink colors across the deck. Each entry is {name: str, count: int} where name is the card's full_name (e.g. 'Mickey Mouse - Brave Little Tailor'). Returns {legal: bool, total_cards, inks, violations: [...]}. Violation types: deck_size (under 60 — total below minimum), max_copies (>4 of one card), ink_limit (>2 distinct colors — also catches dual-ink cards adding a forbidden third color), unknown_card (name didn't resolve to a known card). If you have the output of import_deck, build the input as [{name: card.full_name, count: count}] for each parsed entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||