get_game_catalog
Browse printable game component types from The Game Crafter's catalog, including cards, boards, and boxes, to select materials for tabletop game manufacturing projects.
Instructions
Browse TGC printable component types (cards, boards, boxes, etc.). No authentication required.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Optional category to filter products (e.g., "cards", "boards", "boxes"). Omit to list all. |
Implementation Reference
- src/tools/catalog.ts:4-16 (handler)The handler function `handleGetGameCatalog` retrieves product catalog data from the TGC client.
export function handleGetGameCatalog(client: TgcClient) { return async (args: { category?: string }): Promise<CallToolResult> => { const products = await client.getProducts(args.category); return { content: [ { type: "text", text: JSON.stringify(products, null, 2), }, ], }; }; } - src/schemas/tool-inputs.ts:11-19 (schema)Input schema definition for the `get_game_catalog` tool.
export const getGameCatalogInput = { category: z .string() .max(100) .optional() .describe( 'Optional category to filter products (e.g., "cards", "boards", "boxes"). Omit to list all.', ), }; - src/index.ts:69-74 (registration)Registration of the `get_game_catalog` tool in the MCP server.
server.registerTool("get_game_catalog", { description: "Browse TGC printable component types (cards, boards, boxes, etc.). No authentication required.", inputSchema: schemas.getGameCatalogInput, annotations: { readOnlyHint: true }, }, withErrorHandling(handleGetGameCatalog(client)));