Skip to main content
Glama
Scryfall MCP Server

Scryfall MCP Server

by andreapede

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

NameRequiredDescriptionDefault
limitNoMaximum number of cards to return (default: all)
orderNoSort order for resultsname
queryYesScryfall search query (e.g., 'c:red t:legendary', 'set:dom', 'o:flying cmc<=3')
fieldsNoList of fields to include (e.g., ['name', 'set', 'mana_cost', 'prices.usd']). Use a preset name or custom fields.
formatNoOutput formattable
presetNoUse a predefined field preset instead of custom fields
uniqueNoStrategy for omitting similar cardscards

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries full behavioral burden. It discloses only the bare result shape ('returns cards matching the query with specified fields') and says nothing about result volume, rate limiting (relevant for the Scryfall API), pagination, or error behavior when a query is malformed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with the core purpose front-loaded and no filler. The second sentence is mildly redundant with the first but does add that results are limited to requested fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a seven-parameter search tool with no annotations and no output schema, the description is thin but the schema does heavy lifting on inputs. The missing piece is output behavior — how results are shaped across format, fields, and preset — which nothing else documents.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all seven parameters, including four enums and defaults, are documented in the schema. The description adds nothing parameter-specific beyond the phrase 'specified fields', so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search for Magic: The Gathering cards') and names the query dialect (Scryfall syntax), which clearly separates it from a single-card lookup like get_card. It stops short of explicitly naming siblings or the boundary case (searching for one known card vs. many).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the mention of 'Scryfall search syntax' signals this is the multi-result query tool, but there is no statement of when to prefer it over get_card or autocomplete, and no exclusions or prerequisites. An agent must infer the routing itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools