Skip to main content
Glama

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
NameRequiredDescriptionDefault
categoryNoOptional category to filter products (e.g., "cards", "boards", "boxes"). Omit to list all.

Implementation Reference

  • 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),
            },
          ],
        };
      };
    }
  • 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)));

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/alex-gon/thegamecrafter-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server