Skip to main content
Glama
tonypan2
by tonypan2

click

Interact with the Minesweeper board by selecting specific cells using row and column coordinates to reveal or flag tiles.

Instructions

Click at a cell on the Minesweeper board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colYes
rowYes

Implementation Reference

  • Handler logic for the 'click' tool: sets the URL parameters to reveal the cell at the specified row and column by appending 'reveal=1' and 'pos=row,col' to the game API endpoint.
    } else if (request.params.name === "click") { url.searchParams.set("reveal", "1"); url.searchParams.set("pos", `${row},${col}`);
  • Input schema for the 'click' tool, defining 'row' and 'col' as required number properties.
    inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], },
  • src/index.ts:35-46 (registration)
    Registration of the 'click' tool in the ListToolsRequestSchema handler, including name, description, and input schema.
    { name: "click", description: "Click at a cell on the Minesweeper board", inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], }, },

Other Tools

Related Tools

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

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