Skip to main content
Glama
matthewdtowles

iwantmymtg-mcp

search_cards

Read-only

Search Magic: The Gathering cards by name, set, type, rarity, or format legality. Returns paginated results with prices and 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.
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?

Annotations declare readOnlyHint=true, and the description states it returns a paginated list with prices and metadata, which is consistent. The description adds context about pagination and return content, which is helpful beyond the annotations.

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 sentences, front-loaded with the primary purpose and filters, followed by a clear usage guideline. Every word is informative and there is no redundancy.

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 the 8 parameters with full schema coverage and no output schema, the description adequately explains the return type (paginated list, prices, metadata). It could mention that the response includes basic metadata and pagination details, but it is 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?

All 8 parameters have descriptions in the input schema (100% coverage). The tool description does not add significant new meaning beyond what the schema already provides, so the 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?

The description clearly states the tool searches Magic: The Gathering cards by various criteria (name, set, rarity, type, format legality) and returns a paginated list with prices and metadata. It also distinguishes itself from the sibling 'get_card' tool by noting that for a specific printing, 'get_card' with set and number is preferred.

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?

The description explicitly guides when to use this tool ('for catalog lookups') and when to use an alternative ('for a specific printing prefer get_card with set+number'), providing clear context for decision-making.

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