Skip to main content
Glama

user_games

Retrieve public Minesweeper games for a specific user by providing their user slug to view game history and current status.

Instructions

List public games for a user slug.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_slugNo

Implementation Reference

  • The handler function for the user_games tool, which validates the user_slug and calls rails.listGames.
    async (input) => {
      const userSlug = requireStringOrEnv(
        (input as { user_slug?: unknown })?.user_slug,
        "user_slug",
        process.env.MINESWEEPER_USER_SLUG,
        "MINESWEEPER_USER_SLUG"
      );
      return rails.listGames(userSlug);
    }
  • The tool definition for user_games, including the name, description, and input schema.
    {
      name: "user_games",
      description: "List public games for a user slug.",
      inputSchema: {
        type: "object",
        properties: {
          user_slug: { type: "string" },
        },
      },
  • The registration of the user_games tool within the createTools function.
    addTool(
      {
        name: "user_games",
        description: "List public games for a user slug.",
        inputSchema: {
          type: "object",
          properties: {
            user_slug: { type: "string" },
          },
        },
      },
      async (input) => {
        const userSlug = requireStringOrEnv(
          (input as { user_slug?: unknown })?.user_slug,
          "user_slug",
          process.env.MINESWEEPER_USER_SLUG,
          "MINESWEEPER_USER_SLUG"
        );
        return rails.listGames(userSlug);
      }
    ),

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/geeknees/minesweeper-mcp'

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