get_sealed_products
List sealed Magic: The Gathering products for a set, including booster boxes, bundles, and commander decks, with TCGPlayer purchase links.
Instructions
List sealed products (booster boxes, bundles, commander decks, etc.) for a set. Each entry includes a TCGPlayer purchase URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Implementation Reference
- src/tools/sets.ts:44-51 (handler)Tool definition and handler for get_sealed_products. It takes a set 'code' and fetches sealed products via TCGPlayer API.
export const getSealedProductsTool = { name: "get_sealed_products", description: "List sealed products (booster boxes, bundles, commander decks, etc.) for a set. Each entry includes a TCGPlayer purchase URL.", inputSchema: z.object({ code: z.string() }), handler: ({ code }: { code: string }) => apiFetch({ path: `/api/v1/sets/${encodeURIComponent(code)}/sealed-products` }), }; - src/tools/sets.ts:48-48 (schema)Input schema: expects a single string property 'code' for the set code.
inputSchema: z.object({ code: z.string() }), - src/tools/index.ts:57-57 (registration)Registration of getSealedProductsTool in the tools array.
getSealedProductsTool, - src/tools/index.ts:4-4 (registration)Import of getSealedProductsTool from sets.ts into the tool registry.
import { searchSetsTool, getSetTool, listSetCardsTool, getSealedProductsTool } from "./sets.js";