Skip to main content
Glama
slothingaway

stockfish-mcp

by slothingaway

analyze

Analyze any chess position using Stockfish to get the best move, evaluation, and turn. Optionally include the engine's predicted best line.

Instructions

Analyze a chess position with the Stockfish engine and return the best move.

Accepts a position as FEN or PGN (or omit it for the starting position). Returns the best move (in both UCI and human-readable SAN), the engine's evaluation, and whose turn it is. Optionally include the engine's predicted best line.

Use this whenever you need the strongest move or an evaluation for a chess position. You do NOT need to set up the position and search separately — one call does both.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNoSearch depth in plies. Higher = stronger but slower. Default 18.
movetimeNoIf given, search for this many milliseconds instead of using a fixed depth.
positionNoThe position to analyze, as a FEN string or a PGN (move list). Omit for the starting position.
includeLineNoInclude the engine's predicted best line (principal variation) in SAN. Default false.
Behavior4/5

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

No annotations provided, but the description discloses key behaviors: returns best move, evaluation, turn, optional best line; uses Stockfish; accepts FEN/PGN; and explains depth and movetime parameters. It does not mention destructive or auth concerns, but these are likely irrelevant.

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?

The description is two sentences in the first paragraph plus a usage note. It is front-loaded with the core action, every sentence adds value, and there is no waste.

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?

Given 4 parameters, no required ones, and no output schema, the description covers input formats, output items, and usage. It could mention evaluation format (centipawns or mate) but overall comprehensive for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the description adds meaning by explaining defaults (depth 18 plies), usage of movetime to override depth, and that position can be omitted for starting position. This enhances standalone schema descriptions.

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 clearly states the tool analyzes a chess position with Stockfish and returns the best move, evaluation, and turn. It specifies input formats (FEN, PGN, or omitted for start position), making the purpose specific and unambiguous.

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?

The description advises using this tool when the strongest move or evaluation is needed, and clarifies that separate setup/search is unnecessary, providing clear context for when to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/slothingaway/stockfish-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server