search_cards
Search Magic: The Gathering cards using Scryfall syntax, returning matches with selected fields, sorting, limits, uniqueness filters, and JSON, CSV, or table output.
Instructions
Search for Magic: The Gathering cards using Scryfall search syntax. Returns cards matching the query with specified fields.
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 | Maximum number of cards to return (default: all) | |
| order | No | Sort order for results | name |
| query | Yes | Scryfall search query (e.g., 'c:red t:legendary', 'set:dom', 'o:flying cmc<=3') | |
| fields | No | List of fields to include (e.g., ['name', 'set', 'mana_cost', 'prices.usd']). Use a preset name or custom fields. | |
| format | No | Output format | table |
| preset | No | Use a predefined field preset instead of custom fields | |
| unique | No | Strategy for omitting similar cards | cards |