Skip to main content
Glama

get_my_games

Retrieve a paginated list of your tabletop game projects from The Game Crafter, showing name, ID, and current status for each design.

Instructions

List all games for a designer with name, ID, and status. Returns paginated results. Requires a designer_id from get_my_designers. Requires authentication.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
designer_idYesThe designer ID to list games for. Get this from the get_my_designers tool.
page_numberNoPage number for pagination (default: 1).

Implementation Reference

  • The `handleGetMyGames` function implements the tool's execution logic by calling the `client.getGames` method.
    export function handleGetMyGames(client: TgcClient) {
      return async (args: {
        designer_id: string;
        page_number?: number;
      }): Promise<CallToolResult> => {
        const games = await client.getGames(args.designer_id, args.page_number);
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(games, null, 2),
            },
          ],
        };
      };
    }
  • The `getMyGamesInput` schema defines the `designer_id` (required) and `page_number` (optional) for the tool.
    export const getMyGamesInput = {
      designer_id: safeId.describe(
        "The designer ID to list games for. Get this from the get_my_designers tool.",
      ),
      page_number: z
        .number()
        .int()
        .positive()
        .optional()
        .describe("Page number for pagination (default: 1)."),
    };
  • src/index.ts:93-98 (registration)
    The `get_my_games` tool is registered in `src/index.ts` using `server.registerTool`, linking it to the handler and schema.
    server.registerTool("get_my_games", {
      description:
        "List all games for a designer with name, ID, and status. Returns paginated results. Requires a designer_id from get_my_designers. Requires authentication.",
      inputSchema: schemas.getMyGamesInput,
      annotations: { readOnlyHint: true },
    }, withErrorHandling(handleGetMyGames(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