Skip to main content
Glama

Online Chess Analyzer — PGN Parser, Opening Detector & FEN Inspector

Inspect and validate a chess FEN position

inspect_fen_position
Read-onlyIdempotent

Validate a Forsyth-Edwards Notation (FEN) chess position and return side to move, castling rights, en passant square, material counts and balance, legal move statistics, check/checkmate/stalemate/draw status, static evaluation, and optional legal moves.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fen": "<fen>"
    },
    "name": "inspect_fen_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
fenYesStandard 6-field chess FEN string, e.g. 'rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1'.
includeLegalMovesNoOptional flag to include all legal SAN moves plus capturing and checking move subsets. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the enumeration of computed outputs and the cost-related note that legal moves are 'optional'. However, it never says what happens when the FEN is invalid — whether it errors, returns a validity flag, or silently normalizes — which is the central behavior for a tool named 'validate'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with the action front-loaded and no filler; the long output enumeration is dense but every item is genuinely returned information. It could be broken into two sentences (action vs returns) for scannability, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does the work of listing return fields, which is helpful. But the shape of the result (single object? nested material counts? SAN list container) and failure behavior on malformed FEN are left unspecified, which matters for a tool whose declared purpose is validation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the schema already documents the 6-field FEN format with an example and the exact contents of includeLegalMoves. The description's 'optional legal moves' merely echoes that flag without adding format or cost guidance, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb ('Validate') and a specific resource ('a Forsyth-Edwards Notation (FEN) chess position'), then enumerates the computed outputs. This distinguishes it cleanly from the only sibling, analyze_pgn_game, since the input format (FEN vs PGN) is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the tool for a single already-existing FEN string, but the description never states when to prefer it over analyze_pgn_game or any other path. No prerequisites (e.g., that FEN must be structurally valid before calling) are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources