Skip to main content
Glama
@alltcgapi/mcp

@alltcgapi/mcp

Official

Search cards

atcg_search_cards
Read-onlyIdempotent

Find trading cards by name prefix or collector number in one or all supported games; returns IDs, sets, numbers and rarities to use for card details or prices.

Instructions

Search trading cards by name or collector number, in one game or across every game the API serves. Returns one row per card with its id, game, set, number and rarity; pass the id to atcg_get_card or atcg_get_prices. name matches the START of the card name, ignoring case: "charizard" finds "Charizard ex" but not "Dark Charizard", and spelling, accents and punctuation must match the printed name. If nothing comes back, retry with a shorter prefix (the first word) before concluding the card is missing. Rows come back in id order, not by release date or relevance: narrow with game, set or number rather than paging through a common name. 1 credit per call (up to 50 rows). If a call is refused with TRIAL_EXPIRED or QUOTA_EXCEEDED, tell the user as written and do not retry; RATE_LIMITED says how many seconds to wait.

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": "atcg_search_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
setNoSet code or set id from atcg_list_sets, e.g. "OP11".
gameNoGame id. Leave it out to read across every game.
nameNoThe start of the card name, e.g. "charizard", "monkey.d", "elsa".
limitNoRows, capped at 50. Default 20.
cursorNoOpaque cursor from a previous call with the same filters. Never construct one.
numberNoCollector number exactly as the catalogue writes it, e.g. "OP11-095" for One Piece. Read the format off a search row rather than guessing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, yet the description adds substantive behavior the annotations cannot convey: prefix-only case-insensitive matching with accent/punctuation sensitivity, id-order rather than relevance ordering, a 1-credit cost, a 50-row cap, and per-error-code handling instructions. That is unusually complete disclosure for a read tool.

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

Conciseness5/5

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

Purpose and return shape are front-loaded in the first sentence, then matching semantics, fallback strategy, ordering caveat, cost, and error handling follow in a logical order. The description is dense but every sentence carries actionable information, with no filler or restatement of the name.

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?

There is no output schema, but the description names the returned fields and their ordering, so an agent knows what comes back. Combined with the matching rules, cost, row cap, and error-code behavior, nothing needed to call this six-parameter search correctly is missing.

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 100%, so the schema already documents each parameter, but the description adds real semantics on top: the name parameter is a start-of-string match ignoring case (with a worked charizard example showing what fails), and number must match the catalogue format exactly. It does not elaborate on cursor or limit beyond the schema, which keeps it below a 5.

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 (search trading cards) plus scope (by name or collector number, one game or all games) and the return shape (one row per card with id, game, set, number, rarity). It also routes to the follow-up siblings atcg_get_card and atcg_get_prices, so an agent can place it in the workflow without opening another 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 when-to-use and when-to-adjust guidance: retry with a shorter prefix before concluding a card is missing, and narrow with game/set/number rather than paging through a common name. It also names the alternative path for card detail and pricing, and states the no-retry rule for TRIAL_EXPIRED/QUOTA_EXCEEDED versus the wait rule for RATE_LIMITED.

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