Skip to main content
Glama

WritersLogic business agents

chess-move

Chess move legality, SAN/UCI conversion and next FEN — Checks whether a move (or a sequence of moves) is legal from a FEN position under the FIDE Laws of Chess, for agents that play, annotate or verify chess games. Accepts UCI or SAN, returns the normalized move, the new FEN, check / checkmate / stalemate / insufficient-material flags and, if asked, every legal move; an illegal move names the reason (castling_through_check, ep_exposes_king, moves_into

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": {
      "items": "<items>"
    },
    "name": "chess-move"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1 to 50 positions, at most 400 moves in total.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose the return payload (normalized move, new FEN, check/checkmate/stalemate/insufficient-material flags) and that illegal moves return a named reason such as castling_through_check or ep_exposes_king. However, the closing reason list is cut off mid-token ("moves_into"), and nothing is said about statelessness, batch limits, or cost, leaving gaps for a tool with zero annotation coverage.

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?

Purpose and inputs are front-loaded and every clause carries information, but the whole definition is a single long run-on sentence that ends truncated ("moves_into"), which undercuts readability and looks unpolished.

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 does the necessary work of explaining the response shape and the error-reason model for a moderately complex batch tool. It is only slightly short of complete because the reason enumeration is truncated and batch-level behavior is left entirely to the schema.

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%, so the schema already defines fen, move, moves, list and expectFen in detail, including that only one of move/moves should be used. The description's mention of accepting UCI or SAN and of returning every legal move "if asked" only echoes that, adding no format or edge-case detail beyond the schema.

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 concrete verb and resource: legality checking from a FEN position, SAN/UCI conversion, and the resulting FEN. It also scopes the audience (agents that play, annotate or verify games), so the tool's role is unambiguous even without a direct sibling.

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?

Gives clear context for use: validating a single move or a sequence from a FEN, converting between UCI and SAN, and optionally enumerating all legal moves when a list is requested. It does not state exclusions or when a caller should avoid it, but the listed sibling tools are unrelated, so no alternative routing is needed.

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