# WritersLogic Chess Move Legality Validator

> WritersLogic Chess Move Legality Validator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Validates whether a chess move or sequence of moves is legal from a given FEN position, returning the resulting FEN, game-state flags, and optional list of all legal moves

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/chess-move?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-chess-move-legality-validator-e7f0f331
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QuiJfbzCVAmP8zUSNSIt1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-chess-move-legality-validator-e7f0f331 -d '<json body>'
```

Example prompt: Is 1.e4 e5 2.Nf3 legal starting from startpos? If so, give me the resulting FEN and also list all legal moves from that final position.

## When to prefer this

Use this endpoint when you need deterministic, rule-based chess move legality checking under standard FIDE rules — not evaluation or suggestions. Ideal for game annotation pipelines, chess puzzle validators, move-by-move game replay verification, or any agent that needs to confirm move legality and board state without an embedded chess engine. Prefer this over general-purpose chess engines when you need explicit illegality reason codes and do not need position evaluation or move recommendations.

## Known failure modes

- Invalid or malformed FEN returns a parse error
- Ambiguous SAN move that cannot be resolved returns an error
- Chess960 positions are explicitly reported as unsupported
- More than 50 positions or 400 total moves per request returns a validation error
- Threefold repetition cannot be detected (no game history is tracked)
- Dead positions other than insufficient material are not flagged

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

Returns per-position results including: whether each move is legal, the normalized move in UCI and SAN, the resulting FEN after the move(s), boolean flags for check/checkmate/stalemate/insufficient material, the reason code if a move is illegal (e.g. castling_through_check, ep_exposes_king, moves_into_check, blocked, bad_promotion), and optionally the full list of legal moves in UCI and SAN from the final position.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "fen"
    ],
    "properties": {
     "fen": {
      "type": "string",
      "maxLength": 100,
      "description": "Position as a 6-field FEN, or \"startpos\"."
     },
     "list": {
      "type": "boolean",
      "description": "Also return every legal move (UCI and SAN) in the final position. At most 20 items per call."
     },
     "move": {
      "type": "string",
      "maxLength": 16,
      "description": "One move to check from the position, UCI (e2e4, e7e8q, e1g1) or SAN (Nf3, exd5, e8=Q, O-O)."
     },
     "moves": {
      "type": "array",
      "items": {
       "type": "string",
       "maxLength": 16,
       "description": "UCI or SAN move."
      },
      "maxItems": 200,
      "description": "Moves played one after another from the position; stops at the first that is not legal. Use either move or moves."
     },
     "expectFen": {
      "type": "string",
      "maxLength": 100,
      "description": "Optional claim: the FEN you expect after the move(s). Compared on placement, side, castling and capturable en passant (4 or 6 fields)."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 50,
   "minItems": 1,
   "description": "1 to 50 positions, at most 400 moves in total."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-chess-move-legality-validator-e7f0f331/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
