Skip to main content
Glama

Search cards

search_cards
Read-onlyIdempotent

Find 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

NameRequiredDescriptionDefault
limitNo
queryYesName start, name words (in English or another language), or "SET NUMBER"

Output Schema

NameRequiredDescriptionDefault
hitsYesCatalogue hits, best first, not limited to what the user owns

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / hits / items / properties / free / description
      Previous value: -"Of the real copies, those no deck claims exclusively"New value: +"Of the real copies, those no deck claims exclusively. Absent before sign-in"
    • changedOutput schema / properties / hits / items / properties / owned / description
      Previous value: -"Real copies held, any printing. Proxies are never counted here"New value: +"Real copies held, any printing. Proxies are never counted here. Absent before sign-in: never say the user owns none"
    • changedOutput schema / properties / hits / items / properties / proxies / description
      Previous value: -"Proxy copies held, counted apart from owned: say \"you hold N proxies\" separately"New value: +"Proxy copies held, counted apart from owned: say \"you hold N proxies\" separately. Absent before sign-in"
    • changedOutput schema / properties / hits / items / required
      Previous value: -[
      -  "scryfall_id",
      -  "name",
      -  "set_code",
      -  "collector_number",
      -  "scryfall_url",
      -  "oracle_id",
      -  "type_line",
      -  "mana_cost",
      -  "cmc",
      -  "color_identity",
      -  "rarity",
      -  "image_uri",
      -  "match",
      -  "owned",
      -  "free",
      -  "proxies"
      -]New value: +[
      +  "scryfall_id",
      +  "name",
      +  "set_code",
      +  "collector_number",
      +  "scryfall_url",
      +  "oracle_id",
      +  "type_line",
      +  "mana_cost",
      +  "cmc",
      +  "color_identity",
      +  "rarity",
      +  "image_uri",
      +  "match"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), but the description adds substantial context beyond them: no Scryfall call is made, results come from a local catalogue that can be stale, and before sign-in hits carry no owned/free/proxies fields. The one weak spot is that pagination/offset behavior is only implied by the 12-default/30-max note.

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

Conciseness3/5

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

Front-loaded and information-dense with essentially no filler, and the DISCLOSURE marker usefully flags the proxy rule. However it is a single run-on block whose tangled clauses ("match 'printing'; otherwise match 'name' and scryfall_id is the printing a bare name means") force re-reading, and it restates the max of 30 already present in the schema.

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

Completeness5/5

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

Covers everything an agent needs for a two-parameter search: query grammar, result caps, staleness risk with a fallback path, pre-sign-in degraded output, and the proxy disclosure rule. Since an output schema exists, the description correctly spends its words on behavior rather than enumerating return fields in full.

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

Parameters4/5

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

Schema coverage is only 50% (limit is undocumented in the schema), but the description compensates by explaining every accepted query form — name start, unordered name words, "SET NUMBER" for an exact printing, and foreign-language names — plus the default of 12 and max of 30 hits. It does not explain what happens if limit is omitted versus set high, but the added meaning is well beyond the schema.

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

Purpose5/5

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

States a specific verb and resource ("Find cards in the catalogue of every paper printing") and immediately distinguishes itself from the nearest sibling by naming search_collection as the owned-only variant. An agent knows exactly what this tool returns without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit routing: use search_collection for the user's own cards, and use card_detail by name for cards released after the last catalogue load. It also supplies operational guidance for degenerate queries (a very common word alone reads only the first few hundred names, so add another word or a name start).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources