Skip to main content
Glama

search_cards

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

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.
setCodeNo3-5 character set code (e.g. 'lea', 'mh3').
rarityNoFilter by rarity.
typeNoSubstring match against card type line (e.g. 'Goblin', 'Instant').
formatNoFilter to cards with a legality entry in this format (e.g. 'modern', 'commander').
legalityNoUsed with 'format'. Defaults to 'legal' when format is set.
pageNo1-based page index.
limitNoPage size (max 100).
Behavior3/5

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

No annotations provided. Description mentions it returns a paginated list with prices and basic metadata, implying a read operation. However, it does not explicitly state side effects (none expected) or provide additional behavioral context like rate limits or exact return structure.

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?

Two comprehensive sentences with no wasted words. Purpose and usage are front-loaded.

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?

Given 8 parameters and no output schema, the description adequately explains what the tool does and what it returns (prices and basic metadata). It omits pagination details, but the schema covers page/limit. Slightly vague on return structure, but sufficient for a search tool.

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 100% with each parameter already described. The description summarizes parameters (name, set code, rarity, type, format legality) but adds no new semantics 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?

The description clearly states the tool searches MTG cards by multiple criteria (name, set, rarity, type, format) and returns a paginated list with prices and metadata. It also distinguishes from get_card by recommending it for specific printings.

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?

Explicit guidance: 'Use this for catalog lookups; for a specific printing prefer get_card with set+number.' This tells when and when not to use the tool.

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