Skip to main content
Glama

Analyze a heads-up PLO4 hand

analyze_hu_plo_hand
Read-onlyIdempotent

One heads-up PLO4 hand, as played, against the flop blueprint in one call: every flop decision mapped onto the blueprint tree (sizes to the nearest blueprint size), and for each of the hero's decisions the best action, every action's EV for the exact hand, the loss of the action played (bb and % of pot), whether it counts as a mistake, the hand's percentile in its range and the opponent's response to each action. Pass hand exactly as pokerstudy.ai's get_hand returns it in raw.hand (players with startingStack and cards; actions with street, actionType and amount, raises as "raise to") and hero (raw.hero). The stack is matched to the nearest blueprint depth. When this exact turn spot has been solved, turnDecisions gives the same answers for every turn decision; otherwise pass solve_turn: true to queue a GPU solve of it (about 2 to 4 minutes) and call again. Rivers work the same way: when the turn is solved and the hand reached the river, riverDecisions gives every river decision from an exact river solve that starts from the turn solve's own river ranges, and solve_turn: true queues that solve when it is missing.

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": {
      "hand": "<hand>",
      "hero": "<hero>"
    },
    "name": "analyze_hu_plo_hand"
  }
}

Input Schema

NameRequiredDescriptionDefault
handYesParsed hand: { bigBlind, players: [{ playerName, startingStack, cards }], actions: [{ playerName, actionType, amount, street }], communityCards }.
heroYesHero's player name in the hand.
mistake_bbNoLoss in bb above which a decision counts as a mistake (default 0.1).
solve_turnNoWhen the hand's turn (or, once the turn is solved, river) spot is not solved yet, queue a solve for it (about 2 to 4 minutes; call again for the decisions).

Output Schema

NameRequiredDescriptionDefault
flopNoFlop in spaced form.
gameNo"plo4hu".
heroNoHero's player name.
turnNoWhen the hand saw a turn: the spot (stack, preflop, flopLine, board, potBb, behindBb, turn sizes), spotId, whether it is solved, and `solve` when a solve was queued.
errorNoPresent instead of a payload when the request named something that does not exist. No figure is estimated in its place.
notesNoMapping notes.
riverNoWhen the turn is solved and the hand saw a river: the river spot (turnSpot, turnLine, card, potBb, behindBb, riverBets), spotId, whether it is solved, and `solve` when a solve was queued.
stackNoBlueprint depth used (nearest to the effective stack).
unitsNoWhat the EV numbers mean.
handIdNoHand id when the input had one.
heroPosNo"SB" or "BB".
preflopNoPreflop line in blueprint names, e.g. "SB_Open_BB_Call".
decisionsNoFlop decisions in order.
heroCardsNoHero's four cards.
turnDecisionsNoTurn decisions in order, when the spot is solved.
riverDecisionsNoRiver decisions in order, when the river spot is solved.
effectiveStackBbNoEffective stack in the hand, in big blinds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / solve_turn / description
      Previous value: -"When the hand's turn spot is not solved yet, queue a GPU turn solve for it (about 2 to 4 minutes; call again for the turn decisions)."New value: +"When the hand's turn (or, once the turn is solved, river) spot is not solved yet, queue a solve for it (about 2 to 4 minutes; call again for the decisions)."
    • addedOutput schema / properties / river
      Added value: +{
      +  "description": "When the turn is solved and the hand saw a river: the river spot (turnSpot, turnLine, card, potBb, behindBb, riverBets), spotId, whether it is solved, and `solve` when a solve was queued.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / riverDecisions
      Added value: +{
      +  "description": "River decisions in order, when the river spot is solved.",
      +  "items": {
      +    "description": "One river decision from the exact river solve, in the same shape as a flop decision.",
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / solve_turn
      Added value: +{
      +  "description": "When the hand's turn spot is not solved yet, queue a GPU turn solve for it (about 2 to 4 minutes; call again for the turn decisions).",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / turn / description
      Previous value: -"When the hand saw a turn: potBb, behindBb, board and flopLine for a turn solve."New value: +"When the hand saw a turn: the spot (stack, preflop, flopLine, board, potBb, behindBb, turn sizes), spotId, whether it is solved, and `solve` when a solve was queued."
    • addedOutput schema / properties / turnDecisions
      Added value: +{
      +  "description": "Turn decisions in order, when the spot is solved.",
      +  "items": {
      +    "description": "One turn decision from the solve of this spot, in the same shape as a flop decision.",
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  3. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: sizes snap to the nearest blueprint size, stacks are matched to the nearest blueprint depth, unsolved turn/river spots return nothing until a solve is queued, and solve_turn triggers a 2-4 minute GPU job. That queuing side effect sits slightly at odds with readOnlyHint but is disclosed explicitly rather than contradicted, so it is a note rather than a contradiction.

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?

It is front-loaded with what the tool returns, then moves to input and solve workflow, with no filler sentences. The single dense paragraph mixes output description, input format and solve mechanics, so bullet-style separation would have made it easier to scan.

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?

Despite nested inputs and a conditional solve workflow, the description covers the input contract, the nearest-depth/nearest-size matching rules, the turn/river decision fields and the latency of queued solves. An output schema exists, so restating return fields is supplementary rather than necessary, and nothing an agent needs to invoke it correctly is missing.

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?

Schema coverage is 100%, so the baseline is 3; the description earns more by constraining `hand` to the exact get_hand shape (startingStack and cards, actions with street/actionType/amount, raises as 'raise to') and by explaining solve_turn's queue-and-recall workflow. `mistake_bb` is left entirely to the schema, which is acceptable given full coverage.

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 opening states a specific resource and scope: one heads-up PLO4 hand as played, analyzed against the flop blueprint, covering every flop decision plus EV, loss, mistake flags and percentiles. 'In one call' implicitly separates it from per-spot siblings like get_hu_plo_flop, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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

Usage Guidelines4/5

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

Strong operational guidance: pass `hand` exactly as pokerstudy.ai's get_hand returns it in `raw.hand`, and `hero` from `raw.hero`. It also explains the solve_turn fallback (queue a 2-4 minute GPU solve, then call again) and that turn/river decisions only appear once the spot is solved. It does not explicitly say when to prefer this over other analysis tools, which keeps it below a 5.

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.