Skip to main content
Glama

best_move

Find the optimal backgammon move for any board position and dice roll using neural network evaluation. Configure player, ply depth, match score, and cube state.

Instructions

Find the best move for a position and dice roll using neural network evaluation.

Args: board_input: Board in any supported format. dice: Dice roll as [die1, die2], each 1-6. player: Who is on roll ("x" or "o"). Default "x". ply: Evaluation depth (0, 1, or 2). Higher is stronger but slower. score: Match score as [x_away, o_away]. Omit for money game. cube: Cube state as {"owner": "C"/"X"/"O", "value": 1, "centered": true}. seed: RNG seed for reproducibility.

Returns: Dict with best_move notation, alternatives with probabilities, and board after move.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
plyNo
cubeNo
diceYes
seedNo
scoreNo
playerNox
board_inputYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It mentions the neural network evaluation method, the trade-off for ply depth, seed for reproducibility (implying potential randomness), and outlines the return structure including alternatives with probabilities. This adds meaningful context beyond the schema, though it doesn't explicitly state side-effect-free behavior or error conditions.

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 efficiently structured: a one-sentence purpose, a clean Args list, and a Returns line. Every sentence adds value, and the front-loaded first sentence immediately tells the agent what the tool does. The format is easy to parse and not padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 7 parameters, no annotations, but an output schema, the description is complete. It covers purpose, all parameter semantics, and a high-level return description (leaving detailed return parsing to the output schema). The only gap is explicit sibling differentiation, but that is a minor omission given the clear purpose and parameter detail.

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 description coverage is 0%, so the description must fully compensate. The Args section explains each of the 7 parameters: board_input accepts any supported format, dice format, player default, ply meaning, match score context, cube state structure, and seed purpose. This adds rich semantic meaning beyond the plain schema types and defaults.

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 action and resource: 'Find the best move for a position and dice roll using neural network evaluation.' This precisely states what the tool does and distinguishes it from siblings like pub_best_move or moves by focusing on the best-move computation. The 'Returns' section further clarifies the output, reinforcing purpose clarity.

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 provides context for parameter choices (e.g., 'ply: Higher is stronger but slower', 'score: Omit for money game') but does not explicitly state when to use this tool over siblings like pub_best_move or when to avoid it. The usage is implied through the tool's purpose rather than explicitly differentiated.

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/hbomze/bb-gnubg-api-mcp'

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