Skip to main content
Glama
Vic563
by Vic563

delete_board

Remove a custom Minesweeper board by specifying its unique ID. This tool enables users to manage and delete boards efficiently within the Minesweeper MCP Server.

Instructions

Delete a Minesweeper board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYesID of the board to delete

Implementation Reference

  • The handler logic for the 'delete_board' tool, which calls the game's deleteBoard method and returns a success or not-found message.
    case 'delete_board': { const { boardId } = args as { boardId: string }; const deleted = this.game.deleteBoard(boardId); return { content: [ { type: 'text', text: deleted ? `Successfully deleted board '${boardId}'.` : `Board '${boardId}' not found.`, }, ], }; }
  • Input schema definition for the 'delete_board' tool, specifying the required boardId parameter.
    inputSchema: { type: 'object', properties: { boardId: { type: 'string', description: 'ID of the board to delete', }, }, required: ['boardId'], },
  • src/index.ts:150-163 (registration)
    Registration of the 'delete_board' tool in the tools list returned by ListToolsRequest handler, including name, description, and schema.
    { name: 'delete_board', description: 'Delete a Minesweeper board', inputSchema: { type: 'object', properties: { boardId: { type: 'string', description: 'ID of the board to delete', }, }, required: ['boardId'], }, },
  • Implementation of the deleteBoard method in MinesweeperGame class, which removes the board from the internal boards Map using its ID.
    deleteBoard(boardId: string): boolean { return this.boards.delete(boardId); }

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/Vic563/mindsweeper-mcp'

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