count_cards
Count Disney Lorcana cards by applying filters such as color, cost, stats, keyword, and card type to answer queries like how many ruby cards or evasive characters exist.
Instructions
Count cards matching the given filters. Use this for questions like 'how many ruby cards are there?' or 'how many evasive characters?'. Supports stat ranges: min_attack/max_attack, min_defence/max_defence, min_cost/max_cost. Use keyword to filter by Lorcana keyword (Bodyguard, Challenger, Evasive, Reckless, Resist, Rush, Shift, Singer, Sing Together, Support, Vanish, Voiceless, Ward, etc.) — matches against the structured ability list. Use body_text for value-specific keyword queries like 'Singer 5' or 'Resist +2', or for non-keyword phrases like 'gain 2 lore'. Use lore/min_lore/max_lore to filter by lore value. Use card_type to filter by card type: Character, Action, Item, Song, or Location. Use set_code to filter by set number (e.g. '1' for The First Chapter). Use set_name to filter by set name as a case-insensitive substring (e.g. 'Wilds Unknown', 'frozen') — preferred when the user names a set in plain English. Color must be one of: ruby, sapphire, emerald, amber, amethyst, steel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| lore | No | ||
| name | No | ||
| color | No | ||
| trait | No | ||
| rarity | No | ||
| inkwell | No | ||
| keyword | No | ||
| max_cost | No | ||
| max_lore | No | ||
| min_cost | No | ||
| min_lore | No | ||
| set_code | No | ||
| set_name | No | ||
| body_text | No | ||
| card_type | No | ||
| max_attack | No | ||
| min_attack | No | ||
| max_defence | No | ||
| min_defence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |