Skip to main content
Glama
tonypan2
by tonypan2

unflag

Remove a flag from a specified cell on the Minesweeper board. Requires row and column inputs to identify the target cell for action.

Instructions

Remove the flag at a cell on the Minesweeper board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colYes
rowYes

Implementation Reference

  • Handler logic for the 'unflag' tool: sets URL parameters 'unflag=1' and 'pos=row,col' before fetching the updated game board image from the external game server.
    } else if (request.params.name === "unflag") { url.searchParams.set("unflag", "1"); url.searchParams.set("pos", `${row},${col}`);
  • Input schema definition for the 'unflag' tool, specifying required numeric 'row' and 'col' parameters.
    inputSchema: { type: "object", properties: { row: { type: "number" }, col: { type: "number" }, }, required: ["row", "col"], },
  • src/index.ts:59-70 (registration)
    Registration of the 'unflag' tool in the ListTools response, including name, description, and input schema.
    { name: "unflag", description: "Remove the flag 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