Skip to main content
Glama

Blackjack basic strategy

blackjack_basic_strategy
Read-onlyIdempotent

The mathematically correct blackjack decision for a given player hand against a given dealer upcard, with the expected value of every available action and the cost of choosing wrong. Covers all 340 hand-versus-upcard situations: hard totals, soft totals and pairs. Multi-deck, dealer stands on soft 17. Figures are computed from published game rules, not estimated.

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>",
      "dealer_upcard": "<dealer_upcard>"
    },
    "name": "blackjack_basic_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
handYesThe player hand. A hard total ("16"), a soft total ("soft 18" or "A,7"), or a pair ("pair of 8s", "8 8", "A A").
dealer_upcardYesThe dealer's visible card: 2-10, J, Q, K, or A.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds genuinely new behavioral context: the underlying rule set (multi-deck, S17) and the provenance claim that figures come from published rules rather than estimation, which tells the agent how much to trust the numbers. It stops short of describing output shape or tie-breaking between equal-EV actions.

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?

Four tight sentences, front-loaded with what the caller gets back and then the coverage scope and rule set. Every sentence carries information; the only slight redundancy is restating the hard/soft/pair taxonomy that the schema already enumerates.

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?

There is no output schema, so the description must explain returns — and it does, naming three return elements: the decision, per-action EV, and the cost of a wrong choice. Combined with stated game rules and full 340-hand coverage, an agent has enough to call this correctly; only output formatting details are missing.

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 carry their own format examples ('soft 18', 'pair of 8s', '2-10, J, Q, K, or A'), so the schema does the heavy lifting. The description's mention of hard/soft/pair hands echoes the schema rather than extending it — for instance, it does not clarify how ambiguous inputs like 'A,7' versus 'soft 18' are normalized. Baseline 3 is appropriate.

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?

States a specific verb-and-resource: the mathematically correct decision for a player hand against a dealer upcard, plus the EV of every action and the cost of an error. Also scopes the resource precisely — all 340 hand-versus-upcard situations across hard, soft, and pair hands — so an agent knows exactly what domain it queries and that it is not one of the unrelated slot/roulette siblings.

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?

Usage is implied rather than stated: an agent infers it should call this when a blackjack decision is needed. The description does supply a real precondition — multi-deck, dealer stands on soft 17 — which tells the agent the answer only applies under that rule set, but there is no explicit when-not guidance (e.g., what to do for single-deck or hit-soft-17 games).

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