Skip to main content
Glama

DeckCosmos

Search cards

search_cards
Read-onlyIdempotent

Find cards with a plain-words query, the same as the website's card finder. Words are read as creature types ("rat"), keywords ("deathtouch", "first strike"), card types ("artifact", "legendary"), colors ("black") or rules-text words ("sacrifice", "draw"); e.g. "elf lord", "black rat deathtouch", "artifact sacrifice draw". Optionally filter by role (what the card does, see reference/roles), format, color identity and price. Sorted by popularity unless asked otherwise.

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_cards"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoOnly cards with this role key, e.g. sac_outlet, token_payoff, landfall (see reference what=roles).
sortNoDefault popularity (most-played first).
limitNoDefault 20.
queryNoPlain words, e.g. "goblin haste" or "enchantment draw a card".
colorsNoOnly cards within this color identity, e.g. "BG". Empty = any.
formatNoFormat whose legal cards are considered. Default: any.
offsetNoFor paging. Default 0.
max_priceNoOnly cards at or under this USD price.

Output Schema

NameRequiredDescriptionDefault
roleNoRole filter applied.
cardsYesMatching cards.
queryYesThe query as given.
totalYesMatching cards in all.
formatNoFormat filter applied.
offsetNoOffset of the first card returned.
understood_asNoHow the query words were read: creature_types, keywords, card_types, colors, text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds genuinely behavioral detail about how words are matched (creature types, keywords, types, colors, rules text) and the default popularity ordering, but says nothing about result volume beyond the schema defaults or what popularity actually measures.

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?

A single dense paragraph that front-loads the core search behavior, then examples, then optional filters and default sort. Every sentence carries information, though the phrase "the same as the website's card finder" is a small non-portable flourish.

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?

For an 8-parameter search tool with full schema coverage, full annotations and an output schema, the description covers query interpretation, filter options and default ordering. The remaining gap, what 'popularity' means and how paging interacts with sorting, is minor given the structured fields.

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 baseline is 3. The description earns above that by documenting the query grammar with worked examples ("elf lord", "black rat deathtouch") and by pointing to reference/roles for the role key, which the schema alone only gestures at.

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?

Uses a specific verb and resource ("find cards") and goes further by explaining that the query is a plain-words expression interpreted through the site's card finder. This makes the tool's role unmistakable, but it never distinguishes itself from siblings like get_card or get_synergies, so an agent must infer the boundary.

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

Usage Guidelines4/5

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

Gives clear context for when this tool fits: free-text descriptive queries with optional narrowing by role, format, color identity and price. It does not name an alternative for exact-name lookups or state exclusions, so the when-not guidance is absent.

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