Skip to main content
Glama

game_minimax

Computes minimax and expectiminimax values for game trees from nested leaf utilities or chance-node probabilities, helping evaluate optimal and expected outcomes.

Instructions

Minimax / expectiminimax values for a game tree. tree: nested lists of leaf utilities (levels alternate MAX, MIN) or {"children": {...}, "values": {...}, "types": {"B": "chance"}, "probabilities": {"B": [0.5, 0.5]}}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tree": "<tree>"
    },
    "name": "game_minimax"
  }
}

Input Schema

NameRequiredDescriptionDefault
treeYes
root_typeNomax

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It usefully explains alternating MAX/MIN levels and chance-node probabilities, but it omits root_type semantics, tie-breaking, validation behavior, and other operational details.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and followed by a compact format specification with no filler. The nested notation is dense, but it earns its place by documenting the non-obvious tree input shape.

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?

An output schema exists, so return values need not be explained. The description is partially complete for invocation because it explains the tree argument but leaves root_type undocumented and gives only a terse example of the dict-based tree format.

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 0%, and the description substantially compensates for the tree parameter by showing both nested-list and dict formats, including chance metadata. However, the root_type parameter is never mentioned, so one of the two parameters has no semantic explanation in either schema or description.

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 states a specific computation, minimax/expectiminimax values, for a specific resource, a game tree. It is clear enough to identify the core operation, but it does not explicitly distinguish it from the sibling game_alphabeta tool.

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?

Use is implied: compute game-tree values, including chance nodes. The description does not state when to use this tool versus game_alphabeta or other game/search tools, nor does it give preconditions or exclusions.

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