Skip to main content
Glama

Validate and describe a FEN

validate_fen
Read-onlyIdempotent

Check a chess FEN string for errors (board shape, kings, pawns on back ranks, castling rights, en passant square, side not to move in check) and describe the position: board diagram, side to move, material count and piece list.

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": "validate_fen"
  }
}

Input Schema

NameRequiredDescriptionDefault
fenYesFEN, e.g. rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuine value beyond that by enumerating which validation rules are applied and what the response contains (diagram, side to move, material, piece list) — especially important since there is no output schema. It does not say what happens when the FEN is invalid (error list vs. thrown error), which is the one behavioral ambiguity left.

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

Conciseness5/5

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

A single sentence with zero filler: the validation capability is front-loaded, the enumerated rule list is compact, and the return contents follow immediately. Every clause carries information an agent needs.

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?

With no output schema, the description carries the burden of describing results, and it does so adequately by naming the diagram, side to move, and material/piece list. The gap is the failure mode: an agent cannot tell whether an invalid FEN yields a structured error report or a hard error, which matters for a validator.

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?

There is a single parameter at 100% schema coverage, and the schema already names it, describes it as a FEN, and supplies a concrete example. The description mentions 'a chess FEN string' and implies which parts of the string get inspected, but adds no format or syntax detail 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.

Purpose5/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 ('Check a chess FEN string for errors') and then states the second capability ('describe the position: board diagram, side to move, material count and piece list'). The enumerated error classes (board shape, kings, back-rank pawns, castling, en passant, side not to move in check) make the scope unmistakable and clearly distinct from the sibling ELO/move-explanation tools.

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

Usage Guidelines4/5

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

Usage is clear from the phrasing — this is the tool for validating/parsing a FEN before or alongside other chess operations, and no sibling performs that job. However, there is no explicit statement of when not to use it, nor any mention of prerequisites or follow-on tools, so it falls short of a full when/when-not/alternatives statement.

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.