Skip to main content
Glama

Chess Move Finder

List legal chess moves

legal_moves
Read-onlyIdempotent

Lists every legal move in a position, in standard notation (SAN) and UCI, optionally only for the piece on one square. Use it to check whether a move is legal.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "legal_moves"
  }
}

Input Schema

NameRequiredDescriptionDefault
fenNoPosition in FEN notation, e.g. "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - 0 1". Omit for the starting position.
squareNoOnly list moves for the piece on this square, e.g. "g1".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world behavior, and the description adds genuinely new information by naming the two output encodings, which matters because there is no output schema. It does not say what happens with an invalid FEN or whether an empty result means checkmate/stalemate, but the core behavior is disclosed.

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 sentences, front-loaded with the operation and its output formats, followed by the filtering detail and a use case. No redundant or filler wording.

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 only two optional, fully documented parameters and annotations covering the safety profile, the definition is nearly sufficient; the main residual gap is that the description does not explain edge-case returns such as an empty move list.

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 coverage is 100% and both parameters already carry descriptions with concrete examples, so the schema does the heavy lifting. The description restates the square-filter semantics and says nothing new about FEN handling, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('lists every legal move in a position') plus the output notations (SAN and UCI) and optional square scoping. It is fully clear what the tool does, though it never contrasts itself with siblings like apply_moves or describe_position.

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 single clause 'Use it to check whether a move is legal' gives one concrete use case, but there is no when-not guidance and no routing to alternatives such as describe_position when position facts rather than move lists are wanted.

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