Search collection
search_collectionSearch the user's owned cards (holdings) with rich filters. Returns holdings with printing data, physical location, per-deck allocations, free (unallocated) quantity, and unit/total price in the requested currency (default USD). color_identity means: card identity must be a SUBSET of the given colors (["G","W"] finds Selesnya-legal cards incl. colorless). allocation filter: allocated | unallocated (free copies exist) | staged | sleeved | shared. name may be in any language Scryfall prints: a holding found by its name in another language carries matched (the name as printed, "Foudre"); tell the user it is the English card (Lightning Bolt). Always disclose proxy status (is_proxy) and shared allocations in your summaries. Paginate with limit/offset (default 50, max 200).
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_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| name | No | Substring match on card name | |
| sort | No | ||
| type | No | Substring of the type line, e.g. "Creature" or "Land" | |
| limit | No | ||
| finish | No | ||
| offset | No | ||
| origin | No | How the card was acquired (mutually exclusive). printed_proxy/bought_proxy force is_proxy=true. is_proxy/is_signed/is_altered are independent flags that combine freely with any origin (a gift proxy = origin "gift" + is_proxy=true). | |
| rarity | No | ||
| cmc_max | No | ||
| cmc_min | No | ||
| currency | No | Display currency. USD/EUR come from Scryfall; CHF is always EUR × the stored ECB rate. A response that carries `rate_missing` could not price in CHF at all: tell the user that, not that the cards have no price. | |
| is_proxy | No | ||
| location | No | Location id or name | |
| set_code | No | ||
| condition | No | ||
| is_signed | No | ||
| price_max | No | Unit price upper bound in `currency` | |
| price_min | No | Unit price lower bound in `currency` | |
| allocation | No | ||
| is_altered | No | ||
| oracle_text | No | Substring of rules text, e.g. "Search your library" | |
| color_identity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| limit | Yes | ||
| offset | Yes | ||
| currency | Yes | ||
| total_cards | Yes | Copies in those stacks, all pages | |
| total_holdings | Yes | Stacks matching the filters, all pages |