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
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No |
Implementation Reference
- src/tools/sets.ts:12-13 (handler)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> }), - src/tools/sets.ts:8-11 (schema)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(), }), - src/tools/index.ts:54-57 (registration)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,