Search cards
search_cardsFind cards with a plain-words query, the same as the website's card finder. Words are read as creature types ("rat"), keywords ("deathtouch", "first strike"), card types ("artifact", "legendary"), colors ("black") or rules-text words ("sacrifice", "draw"); e.g. "elf lord", "black rat deathtouch", "artifact sacrifice draw". Optionally filter by role (what the card does, see reference/roles), format, color identity and price. Sorted by popularity unless asked otherwise.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Only cards with this role key, e.g. sac_outlet, token_payoff, landfall (see reference what=roles). | |
| sort | No | Default popularity (most-played first). | |
| limit | No | Default 20. | |
| query | No | Plain words, e.g. "goblin haste" or "enchantment draw a card". | |
| colors | No | Only cards within this color identity, e.g. "BG". Empty = any. | |
| format | No | Format whose legal cards are considered. Default: any. | |
| offset | No | For paging. Default 0. | |
| max_price | No | Only cards at or under this USD price. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role filter applied. | |
| cards | Yes | Matching cards. | |
| query | Yes | The query as given. | |
| total | Yes | Matching cards in all. | |
| format | No | Format filter applied. | |
| offset | No | Offset of the first card returned. | |
| understood_as | No | How the query words were read: creature_types, keywords, card_types, colors, text. |