Skip to main content
Glama

BetterChess

What a piece attacks

chess_attacks
Read-only

Returns the exact list of squares attacked by the piece standing on a given square in a chess position, together with that piece's type and colour. Returns an empty list when the square is unoccupied. Accepts a FEN, a PGN, or a list of SAN moves from the starting position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fenNoFEN of the position.
pgnNoPGN; the position after the final move is used.
movesNoSAN moves from the start, e.g. ["e4","e5"].
squareYesThe square, e.g. "d5".

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark readOnlyHint=true, and the description adds meaningful behavioral detail: unoccupied squares return an empty list, output includes piece type and colour, and the accepted position formats are disclosed. No contradiction with the read-only annotation exists.

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?

Two tightly written sentences front-load the core result and the key edge case, then list accepted input formats. Every sentence earns its place and there is no filler or redundant restatement of the tool name.

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?

The description is complete for a simple computation tool: it explains the return value and the empty-list case, which is especially important because there is no output schema. It names all three position input types, though it does not specify what happens if multiple position arguments are supplied or what the default starting position is.

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 baseline is 3. The description adds context by naming FEN, PGN, and SAN moves as the position inputs and noting that SAN moves begin from the starting position. However, 'square' semantics are left to the schema's example, and the description does not significantly deepen parameter understanding.

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—'Returns the exact list of squares attacked'—and names the resource: the piece standing on a given square. It also includes return details (piece type and colour) and edge-case behavior, making its purpose unmistakable and distinct from the broader chess_analyse and chess_review siblings.

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

Usage Guidelines3/5

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

The description implies usage: use this when you need the squares a particular piece attacks. It also states the accepted input formats (FEN, PGN, or SAN moves), which helps with input preparation. However, it never explicitly compares this tool to chess_analyse or chess_review, nor gives when-not-to-use guidance.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: chess_analyse evaluates a single position, chess_attacks reports attacked squares for one piece, and chess_review identifies engine-evaluation swings across a game. The overlap between position analysis and game review is minimal because one is a snapshot and the other is a temporal replay.

Naming Consistency5/5

All three tool names follow the same chess_ prefix plus a descriptive verb/noun pattern: chess_analyse, chess_attacks, chess_review. The naming is uniform and predictable.

Tool Count5/5

Three tools is at the lower bound of the ideal range but fits the server's focused chess-analysis scope. Each tool provides a distinct, non-redundant capability and there is no bloat.

Completeness4/5

The toolset covers the core analysis workflows: evaluating a position, inspecting tactical attack relationships, and reviewing a full game for turning points. Minor gaps exist, such as no direct move-generation or board-state query, but agents can generally accomplish the stated purpose without dead ends.

Resources