Skip to main content
Glama

probabilities

Compute win, gammon, and backgammon probabilities for a backgammon position to evaluate your chances and guide decisions.

Instructions

Calculate win/gammon/backgammon probabilities for a position.

Args: board_input: Board in any supported format. evaluation_mode: Evaluation strategy. One of: "prune", "race", "osr", "bearoff", "0plus1", "1sbear", "1srace". player: Who is on roll ("x" or "o"). Required if board_input is a boardState dict. nr: Number of rollouts for OSR mode (default 1296). 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 win, win_gammon, win_backgammon, lose_gammon, lose_backgammon probabilities.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nrNo
cubeNo
seedNo
scoreNo
playerNo
board_inputYes
evaluation_modeNoprune

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does not state whether the operation is read-only, mention any side effects, or disclose limitations such as stochastic behavior. While the presence of a 'seed' parameter hints at reproducibility, the description does not explicitly explain that results may vary across rollouts or that different evaluation modes have different determinism.

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 well-structured with a clear purpose line, followed by Args and Returns sections. It is concise, with no redundant sentences. Every line adds value, and the docstring format is easy to scan.

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

Completeness3/5

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

The description covers all parameters and returns, but it leaves gaps. The 'evaluation_mode' options are listed without any explanation of trade-offs or suitability. Phrases like 'any supported format' for board_input are vague, and the description does not clarify the meaning of the output probabilities. Given the tool's complexity (7 params) and lack of annotations, more context is needed for full completeness.

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

Parameters4/5

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

The schema has 0% coverage, so the description must compensate. It does so by providing a brief explanation for each of the 7 parameters, including conditions (e.g., 'player required if board_input is a boardState dict'), defaults (nr=1296, evaluation_mode='prune'), and the structure for 'score' and 'cube'. This adds meaning well beyond the bare type definitions.

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 starts with a specific verb and resource: 'Calculate win/gammon/backgammon probabilities for a position.' This clearly states what the tool does. It does not explicitly distinguish from sibling tools like 'bearoff_probabilities', but the general scope is clear from the phrase 'for a position'.

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

Usage Guidelines2/5

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

No explicit guidance is provided on when to use this tool versus alternatives. The description lacks any 'when to use' or 'use this instead of X' statements. The evaluation_mode list gives options but does not explain when each is appropriate, leaving the agent to infer usage from the tool name and sibling context.

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