Skip to main content
Glama

Search collection

search_collection
Read-onlyIdempotent

Search 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

NameRequiredDescriptionDefault
langNo
nameNoSubstring match on card name
sortNo
typeNoSubstring of the type line, e.g. "Creature" or "Land"
limitNo
finishNo
offsetNo
originNoHow 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).
rarityNo
cmc_maxNo
cmc_minNo
currencyNoDisplay 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_proxyNo
locationNoLocation id or name
set_codeNo
conditionNo
is_signedNo
price_maxNoUnit price upper bound in `currency`
price_minNoUnit price lower bound in `currency`
allocationNo
is_alteredNo
oracle_textNoSubstring of rules text, e.g. "Search your library"
color_identityNo

Output Schema

NameRequiredDescriptionDefault
itemsYes
limitYes
offsetYes
currencyYes
total_cardsYesCopies in those stacks, all pages
total_holdingsYesStacks matching the filters, all pages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish this as a safe, idempotent read, and the description adds real behavior beyond them: what each result carries (printing data, location, per-deck allocations, free quantity, unit/total price), the CHF conversion rule via the ECB rate, and the `rate_missing` failure mode with guidance not to report it as 'no price'.

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?

Purpose is front-loaded in the first sentence, then dense parameter semantics follow with no filler. The closing 'Always disclose proxy status…' sentence is operational instruction rather than description, but it is short and materially useful, so the cost is low.

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

Completeness4/5

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

An output schema exists, yet the description still usefully names the notable response fields and the language-mismatch `matched` field, which an agent would otherwise miss. Combined with the currency and pagination notes, it is complete enough to call correctly, with only the minor filter parameters left undocumented.

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 coverage is only 35% across 23 parameters, so the description must compensate. It does add genuine meaning for the two hardest parameters — color_identity as a subset test (with a worked Selesnya example) and the five allocation states — plus pagination defaults and limits. But roughly a dozen parameters (sort, finish, rarity, cmc_min/max, condition, is_signed, is_altered, set_code, lang) get no treatment in either place, leaving a real gap.

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?

Opens with a specific verb and a scoped resource: "Search the user's owned cards (holdings)". The parenthetical "holdings" plus "owned" separates it from the catalog-wide search_cards sibling, though that sibling is never named as a contrast.

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 context is implied by "user's owned cards (holdings)" and by the explanation of when each allocation filter applies (allocated vs unallocated vs staged/sleeved/shared). There is no explicit statement of when to prefer this over search_cards or card_detail, so the agent must infer routing from the scope wording alone.

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