Search cards
atcg_search_cardsFind trading cards by name prefix or collector number in one or all supported games; returns IDs, sets, numbers and rarities to use for card details or prices.
Instructions
Search trading cards by name or collector number, in one game or across every game the API serves. Returns one row per card with its id, game, set, number and rarity; pass the id to atcg_get_card or atcg_get_prices. name matches the START of the card name, ignoring case: "charizard" finds "Charizard ex" but not "Dark Charizard", and spelling, accents and punctuation must match the printed name. If nothing comes back, retry with a shorter prefix (the first word) before concluding the card is missing. Rows come back in id order, not by release date or relevance: narrow with game, set or number rather than paging through a common name. 1 credit per call (up to 50 rows). If a call is refused with TRIAL_EXPIRED or QUOTA_EXCEEDED, tell the user as written and do not retry; RATE_LIMITED says how many seconds to wait.
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": "atcg_search_cards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | Set code or set id from atcg_list_sets, e.g. "OP11". | |
| game | No | Game id. Leave it out to read across every game. | |
| name | No | The start of the card name, e.g. "charizard", "monkey.d", "elsa". | |
| limit | No | Rows, capped at 50. Default 20. | |
| cursor | No | Opaque cursor from a previous call with the same filters. Never construct one. | |
| number | No | Collector number exactly as the catalogue writes it, e.g. "OP11-095" for One Piece. Read the format off a search row rather than guessing. |