Skip to main content
Glama
matthewdtowles

iwantmymtg-mcp

search_sets

List Magic: The Gathering sets with details including set code, name, release date, type, and aggregate prices. Supports pagination for efficient browsing.

Instructions

List Magic: The Gathering sets, optionally paginated. Returns set code, name, release date, type, and aggregate prices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
limitNo

Implementation Reference

  • The handler function that executes the 'search_sets' tool logic. It calls apiFetch with path '/api/v1/sets' and passes the input query params (page, limit).
    handler: (input: Record<string, unknown>) =>
      apiFetch({ path: "/api/v1/sets", query: input as Record<string, string | number | undefined> }),
  • Input schema for 'search_sets' using Zod. Accepts optional 'page' (int, min 1) and 'limit' (int, min 1, max 100).
    inputSchema: z.object({
      page: z.number().int().min(1).optional(),
      limit: z.number().int().min(1).max(100).optional(),
    }),
  • The 'search_sets' tool is registered in the tools array alongside other tools. It is listed as 'searchSetsTool' in the exported 'tools' array.
    searchSetsTool,
    getSetTool,
    listSetCardsTool,
    getSealedProductsTool,
Behavior2/5

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

No annotations provided, so description carries full burden. It only states return fields but doesn't disclose behavioral traits like read-only nature, rate limits, or ordering. Implies reading but not explicit.

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?

Single concise sentence with no extraneous words. Front-loaded with purpose and returns.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema, so description explains return fields adequately. However, lacks details on sorting, default pagination values, or other contextual info that could be useful.

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 has 0% description coverage, so description must compensate. Mentions optional pagination which hints at page and limit parameters, but doesn't explicitly describe them; parameter names are self-explanatory.

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 lists Magic: The Gathering sets with specific fields, and distinguishes from sibling tools like get_set (single set) and search_cards (cards).

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs alternatives like get_set, or when not to use it. Only mentions optional pagination but lacks explicit usage context.

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