Search cards
search_cardsFind cards in the catalogue of every paper printing — NOT limited to what the user owns (search_collection is that). query is the start of a name ("lightn"), any words of a name in any order ("bolt", "harvest hand"), or a set code and collector number ("FDN 120") for one exact printing (match "printing"; otherwise match "name" and scryfall_id is the printing a bare name means). A name in another language is found too, by its start or in full, and by any word for languages written with spaces: the hit is the card under its English name, with matched the name that found it ("Foudre" → Lightning Bolt): tell the user which card it is. Each hit carries owned (real copies of any printing), free (real copies no deck claims exclusively) and proxies. DISCLOSURE: proxies are never counted as owned — say "you hold N proxies" separately. Served from the local catalogue with no Scryfall call; a card released after the last catalogue load may be missing — card_detail by name still finds it once the user is signed in (before sign-in it reads the same catalogue, so ask them to sign in first). A very common word alone ("dragon", "of") reads only the first few hundred names: add another word or the start of the name. Default 12 hits, max 30. Before the user signs in, hits carry no owned, free or proxies: say nothing about what they own.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | Name start, name words (in English or another language), or "SET NUMBER" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hits | Yes | Catalogue hits, best first, not limited to what the user owns |