Skip to main content
Glama
NEW_FEATURES.md•5.79 kB
# New Chess MCP Features ## šŸŽ‰ Two New Functions Added! ### 1. `chess_status` - Game Status & Player Info Get detailed information about the current game including who's playing, whose turn it is, and the game state. #### Usage In ChatGPT, ask: ``` What's the current game status? Show me the game status Who's turn is it? ``` Or call directly: ``` chess_status ``` #### What It Shows - **Game State**: Ongoing, Check, Checkmate, Stalemate, or Draw - **Current Turn**: Which player (White/Black) needs to move - **Players**: Names of White and Black players - **Move Count**: Current move number and total moves made - **Recent Moves**: Last few moves for context - **Legal Moves**: How many legal moves are available #### Example Output ``` ā™Ÿļø Game in Progress šŸŽÆ Player (White) to move šŸ“Š Move 5 šŸ‘„ Players: White: Player Black: AI/Opponent šŸ“ Last 3 moves: e4, e5, Nf3, Nc6, Bc4, Bc5 ``` **After Checkmate:** ``` šŸ Game Over - Checkmate! šŸ‘‘ Winner: AI/Opponent šŸ“Š Total moves: 10 šŸ‘„ Players: White: Player Black: AI/Opponent ``` **During Check:** ``` āš ļø Check! šŸŽÆ Player (White) to move šŸ“Š Move 15 šŸ‘„ Players: White: Player Black: AI/Opponent ``` --- ### 2. `chess_puzzle` - Mate in 1 Puzzles Load a tactical puzzle where White has checkmate in one move! Great for training pattern recognition and tactical skills. #### Usage In ChatGPT, ask: ``` Show me a chess puzzle Give me an easy puzzle Load a hard mate in 1 puzzle I want to solve a chess puzzle ``` Or call directly: ``` chess_puzzle chess_puzzle easy chess_puzzle medium chess_puzzle hard ``` #### Difficulty Levels **Easy** - Basic patterns: - Back rank mates - Queen and king mates - Simple rook mates **Medium** - Intermediate tactics: - Discovery attacks - Knight forks with checkmate - Smothered mates **Hard** - Complex positions: - Multi-piece coordination - Less obvious mate patterns - Advanced tactical themes #### Example Puzzle Session ``` User: Show me an easy chess puzzle Bot: 🧩 Mate in 1 Puzzle (Easy) White to move and checkmate in one move! šŸ’” Hint: The black king has no escape on the back rank! Try to find the winning move! [Interactive board displays puzzle position] User: Ra8 Bot: Checkmate! Well done! That's the solution. ``` #### Puzzle Features - **10+ Different Puzzles**: Mix of classic mate patterns - **Hints Provided**: Each puzzle comes with a helpful hint - **Visual Board**: See the position on the interactive board - **Three Difficulty Levels**: Progress from easy to hard - **Randomized**: Different puzzle each time at same difficulty --- ## šŸ“Š Structured Data Both functions return rich structured data that ChatGPT can use: ### chess_status Returns: ```json { "status": "ongoing|check|checkmate|stalemate|draw", "turn": "white|black", "turn_player": "Player name", "players": { "white": "Player", "black": "AI/Opponent" }, "move_number": 5, "total_moves": 9, "fen": "position string", "is_check": false, "is_game_over": false } ``` ### chess_puzzle Returns: ```json { "fen": "puzzle position", "puzzle_type": "mate_in_1", "difficulty": "easy|medium|hard", "turn": "white", "status": "puzzle" } ``` Plus hidden metadata with solution (not shown to user until they solve it). --- ## šŸŽ® Combined Usage Examples ### Example 1: Training Session ``` User: Show me an easy puzzle [Puzzle loads] User: Ra8 Bot: Checkmate! Excellent! User: Give me a medium one now [Next puzzle loads] ``` ### Example 2: Game Monitoring ``` User: e4 User: What's the status? Bot: White to move, Move 1... User: e5 User: Status? Bot: Black to move, Move 2... ``` ### Example 3: Teaching ``` User: Show me a hard puzzle [Puzzle loads] User: I'm stuck, what's the hint? Bot: The hint says: Look for the queen sacrifice! User: Qe8 Bot: Checkmate! The queen couldn't be taken! ``` --- ## šŸ”§ Technical Details ### Implementation **chess_status:** - Read-only tool (doesn't modify game state) - Always returns current position - Shows emojis for visual appeal - Tracks both players **chess_puzzle:** - Loads from curated puzzle collection - Resets game state to puzzle position - Sets players as "You" vs "Computer" - Includes solution in metadata for verification - Uses actual FEN positions from tactical training ### Player Names Default player names: - White: "Player" - Black: "AI/Opponent" When puzzle loads: - White: "You" - Black: "Computer" These can be customized in future versions for multiplayer support. --- ## šŸ“š Use Cases ### For Learning: - Practice tactical patterns - Improve pattern recognition - Learn checkmate patterns - Build chess intuition ### For Playing: - Monitor game progress - Track whose turn it is - See move history at a glance - Verify game state ### For Fun: - Challenge yourself with puzzles - Race against time (future feature) - Track solving accuracy (future feature) - Compete with friends (future feature) --- ## šŸš€ What's Next? Future enhancements could include: - [ ] Mate in 2, 3, N puzzles - [ ] Puzzle rating system - [ ] Timer for puzzle solving - [ ] Puzzle of the day - [ ] Custom puzzle upload - [ ] Puzzle statistics tracking - [ ] Multiplayer puzzle races - [ ] Opening puzzles - [ ] Endgame puzzles --- ## šŸŽÆ Quick Reference | Command | Purpose | Example | |---------|---------|---------| | `chess_status` | Get game info | "What's the status?" | | `chess_puzzle` | Load easy puzzle | "Show me a puzzle" | | `chess_puzzle medium` | Load medium puzzle | "Medium puzzle please" | | `chess_puzzle hard` | Load hard puzzle | "Give me a hard one" | --- **Enjoy the new features!** Practice puzzles to improve your tactical vision, and use status checks to stay informed during games! ā™ŸļøšŸŽÆ

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/GeneralJerel/ChessMCP'

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