{"uid":"cap_o8u3wUfu2RWyQBVWK9oZu","slug":"fen-chess-position-analyzer-de662ec2","name":"FEN Chess Position Analyzer","description":"Analyze a chess FEN string: turn to move, complete legal-move list, and terminal-state detection including checkmate, stalemate, and draw by insufficient material or repetition. Malformed FEN comes back as a structured validity report an agent can act on rather than a bare failure.","url":"https://x402.forgemesh.io/fen-analyzer","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fen":{"type":"string","description":"FEN position string, or 'start' for the initial position"},"move":{"type":"string","description":"Optional move to validate/apply, SAN (Nf3) or UCI (g1f3)"}}},"responseSchema":{"type":"json","example":{"turn":"white","state":{"in_check":false,"game_over":false},"valid_fen":true,"legal_moves":["a3","a4","Nf3"],"move_applied":{"san":"e4","legal":true,"fen_after":"rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q-8D0MBEwt2CQDmtM8NqZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a chess FEN string to return whose turn it is, all legal moves, and terminal state detection (checkmate, stalemate, draw by insufficient material or repetition), with structured validity reporting for malformed FEN.","exampleAgentPrompt":"Analyze this chess position for me — FEN 'r1bqkbnr/pppp1ppp/2n5/4p3/2B1P3/5N2/PPPP1PPP/RNBQK2R w KQkq - 4 4' — tell me whose turn it is, list all legal moves, and let me know if it's checkmate, stalemate, or any kind of draw.","exampleUseCases":null,"resultDescription":"Returns whose turn it is to move, a complete list of all legal moves in the position, and a terminal-state breakdown covering checkmate, stalemate, draw by insufficient material, and draw by repetition. If the FEN is malformed, returns a structured validity report describing what went wrong so the agent can act on it rather than receiving a bare error.","failureModes":["Malformed FEN returns a structured validity report rather than a hard error","Invalid or ambiguous move in optional move field returns a move-validation failure","Completely missing FEN field returns a schema validation error","Network or payment failure returns HTTP 402 or 5xx"],"whenToPreferThis":"Use this endpoint when you need programmatic chess position analysis from FEN notation, especially for legal move enumeration, terminal-state detection (checkmate/stalemate/draw), or FEN validation with actionable structured error output. Prefer over generic chess engines when you need a lightweight, per-call paid API with structured JSON output rather than a full UCI engine integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:05:38.619Z","isFirstParty":false}