deck_stats
Compute Lorcana deck summary stats: ink curve, color split, inkable/uninkable, type breakdown, keyword/subtype counts, and per-card keyword tags to answer archetype questions without extra lookups.
Instructions
Compute summary stats for a Lorcana deck: ink curve (copies at each cost), color split (copies per color — dual-ink contributes to BOTH buckets, so the sum may exceed total_cards), inkable/uninkable counts, type breakdown (Character/Action/Item/Song/Location), keyword_counts (copies per keyword — Evasive, Ward, Bodyguard, Shift, Singer, ...), subtype_counts (copies per subtype — Floodborn, Hero, Puppy, ...), and card_keywords (per-card keyword tags, so archetype questions like 'how many Evasive bodies does this run?' are answerable without a follow-up search_cards call). Each entry is {name: str, count: int} where name is the card's full_name. Names that don't resolve are listed under unresolved and excluded from the per-card stats (but still counted in total_cards).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||