R

react-chess

Chess game with exposed tools for board state, moves, and game management

2read
3action
https://matipojo.github.io/WebMCP-React-Chess/

demo · Playgrounds & Games · JSON · API for agents

Tools 5 tools

get-board-stateread

Retrieves the current state of the chess board including piece positions, current turn, total moves, and game status.

View tool JSON
{
  "name": "get-board-state",
  "kind": "read",
  "impl": "imperative",
  "description": "Retrieves the current state of the chess board including piece positions, current turn, total moves, and game status.",
  "inputSchema": {
    "type": "object",
    "properties": {}
  }
}
make-moveaction

Makes a chess move. Provide the move as "from:to" (e.g., "e2:e4").

View tool JSON
{
  "name": "make-move",
  "kind": "action",
  "impl": "imperative",
  "description": "Makes a chess move. Provide the move as \"from:to\" (e.g., \"e2:e4\").",
  "inputSchema": {
    "type": "object",
    "properties": {
      "move": {
        "type": "string",
        "description": "Move in format \"from:to\" (e.g., \"e2:e4\")",
        "default": "e2:e4"
      }
    },
    "required": [
      "move"
    ]
  }
}
get-possible-movesread

Gets all legal moves for a piece at a position (x: 0-7, y: 0-7).

View tool JSON
{
  "name": "get-possible-moves",
  "kind": "read",
  "impl": "imperative",
  "description": "Gets all legal moves for a piece at a position (x: 0-7, y: 0-7).",
  "inputSchema": {
    "type": "object",
    "properties": {
      "position": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number",
            "minimum": 0,
            "maximum": 7,
            "description": "X coordinate (0=a, 7=h)"
          },
          "y": {
            "type": "number",
            "minimum": 0,
            "maximum": 7,
            "description": "Y coordinate (0=rank 1, 7=rank 8)"
          }
        },
        "required": [
          "x",
          "y"
        ]
      }
    },
    "required": [
      "position"
    ]
  }
}
restart-gameaction

Restarts the chess game to initial position.

View tool JSON
{
  "name": "restart-game",
  "kind": "action",
  "impl": "imperative",
  "description": "Restarts the chess game to initial position.",
  "inputSchema": {
    "type": "object",
    "properties": {}
  }
}
promote-pawnaction

Promotes a pawn to queen, rook, bishop, or knight.

View tool JSON
{
  "name": "promote-pawn",
  "kind": "action",
  "impl": "imperative",
  "description": "Promotes a pawn to queen, rook, bishop, or knight.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "pieceType": {
        "type": "string",
        "enum": [
          "queen",
          "rook",
          "bishop",
          "knight"
        ],
        "description": "Piece type to promote to."
      }
    },
    "required": [
      "pieceType"
    ]
  }
}