Skip to main content
Glama

game_flag

Mark potential mine locations on the Minesweeper board to prevent accidental detonation and track suspected bombs during gameplay.

Instructions

Toggle a flag on a cell.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
public_idYes
xYes
yYes

Implementation Reference

  • Handler function for the 'game_flag' tool, which processes input and calls rails.flagCell.
    async (input) => {
      const publicId = requireString(
        (input as { public_id?: unknown })?.public_id,
        "public_id"
      );
      const { x, y } = requireCoordinates(input);
      return rails.flagCell(publicId, x, y);
    }
  • Definition and registration of the 'game_flag' tool.
    {
      name: "game_flag",
      description: "Toggle a flag on a cell.",
      inputSchema: {
        type: "object",
        properties: {
          public_id: { type: "string" },
          x: { type: "integer" },
          y: { type: "integer" },
        },
        required: ["public_id", "x", "y"],
      },
    },

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