Skip to main content
Glama

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

Analyze a chess PGN game

analyze_pgn_game
Read-onlyIdempotent

Parse and validate a standard chess PGN game with chess.js, detect the ECO code and opening name, count moves, captures, checks, promotions, and castling, and return the final FEN, material balance, static evaluation, and game outcome.

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": {
      "pgn": "<pgn>"
    },
    "name": "analyze_pgn_game"
  }
}

Input Schema

NameRequiredDescriptionDefault
pgnYesStandard chess PGN text (with optional tag headers and SAN moves), e.g. '1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5'.
includeMovesNoOptional flag to include the parsed ply-by-ply move list (up to 200 plies). Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered elsewhere. The description adds meaningful context by naming the underlying library (chess.js) and the full set of computed metrics, but it omits what happens when validation fails and does not note that move-list inclusion is capped, both of which affect how the agent should interpret a call.

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 front-loaded sentence with the action first and the output inventory after; nothing is padding. It reads as a long comma-list, but every item corresponds to real returned data, so the density is earned rather than wasteful.

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

Completeness4/5

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

There is no output schema, so the description must carry the return contract, and it does by naming FEN, material balance, static evaluation, outcome, ECO code, and counters. The main gap is failure behavior for invalid PGN, which an agent needs to decide how to handle errors.

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 description coverage is 100%, with both pgn and includeMoves fully documented including format examples, defaults, and the 200-ply cap. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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

Purpose4/5

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

The description opens with a specific verb+resource pair ('Parse and validate a standard chess PGN game') and then enumerates exactly what is computed and returned, so an agent knows precisely what the tool does. It does not, however, differentiate itself from the sibling inspect_fen_position, leaving the agent to infer that this one takes PGN while the sibling takes FEN.

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 by the input type: use this when you have PGN text. There is no explicit statement of when to prefer this over inspect_fen_position, no mention of prerequisites, and no guidance on error handling for malformed PGN.

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