Skip to main content
Glama

search_cards

Search Magic: The Gathering cards by name, set, rarity, type, or format legality. Returns paginated results with prices and metadata for catalog lookups.

Instructions

Search Magic: The Gathering cards by name (substring), set code, rarity, type, or format legality. Returns a paginated list with prices and basic metadata. Use this for catalog lookups; for a specific printing prefer get_card with set+number.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qNoSubstring to search card name + flavor name. Optional; omit to filter purely by setCode/rarity/type/format.
pageNo1-based page index.
typeNoSubstring match against card type line (e.g. 'Goblin', 'Instant').
limitNoPage size (max 100).
formatNoFilter to cards with a legality entry in this format (e.g. 'modern', 'commander').
rarityNoFilter by rarity.
setCodeNo3-5 character set code (e.g. 'lea', 'mh3').
legalityNoUsed with 'format'. Defaults to 'legal' when format is set.
Behavior4/5

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

With no annotations, the description carries the burden. It discloses that the tool returns a paginated list with prices and metadata, and that it searches by various fields. It does not mention potential rate limits or authentication needs, but for a read-only search tool, the description is adequate and transparent about behavior.

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?

The description is two concise sentences with no fluff. It is front-loaded with the core action and quickly provides key details.

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?

Given the absence of an output schema, the description sufficiently explains the return type (paginated list with prices and basic metadata). It also provides comparative context with a sibling tool. All crucial aspects are covered for an agent to understand usage.

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?

Input schema has 100% coverage with parameter descriptions. The description adds context by listing the searchable criteria (name substring, set code, rarity, type, format legality) but does not provide additional semantics beyond what the schema already offers. Baseline score of 3 is appropriate.

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?

Description clearly states the tool searches MTG cards by multiple criteria and returns a paginated list with prices and metadata. It distinguishes itself from the sibling 'get_card' by noting that for a specific printing, 'get_card' should be used.

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?

Explicitly says 'Use this for catalog lookups; for a specific printing prefer get_card with set+number.' This provides clear context on when to use this tool versus an alternative.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matthewdtowles/iwantmymtg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server