Skip to main content
Glama

verify_fair

Verify a provably fair result locally, with no network call and no key. Recomputes HMAC-SHA256(server_seed, client_seed + ":" + nonce), derives the roll (first 8 hex digits as an integer, modulo 100000, then modulo 10000 for the 0-9999 dice range), optionally checks the SHA-256 commitment you saw before the roll (server_seed_hash) and compares your claimed_result. Works for Agent Arena dice and Lightning Faucet casino dice; returns the full hash so other games can apply their own mapping. Use the nonce the roll consumed, not the next one.

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": {
      "server_seed": "<server_seed>",
      "client_seed": "<client_seed>",
      "nonce": "<nonce>"
    },
    "name": "verify_fair"
  }
}

Input Schema

NameRequiredDescriptionDefault
nonceYesNonce the roll consumed
client_seedYes
result_typeNoMapping claimed_result uses: dice (0-9999) or roll (0-99999)dice
server_seedYesRevealed server seed
claimed_resultNoOptional reported roll to compare
server_seed_hashNoOptional SHA-256 commitment to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the operation is purely local with no network call and no key, details the exact hash-to-roll derivation, and notes it returns the full hash for external mapping. It leaves error/edge-case behavior (e.g., how a mismatched claimed_result is reported) unstated, keeping it below 5.

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?

Front-loaded with the core 'verify locally, no network, no key' claim, then the algorithm, then caveats. Dense but each sentence adds information; minor length is justified by the cryptographic detail needed to call it correctly.

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?

No output schema exists, and the description compensates by stating it returns the full hash for other games' mappings. Combined with the derivation and optional-check semantics, an agent has enough to invoke and interpret results, though it doesn't describe the response object's shape or mismatch reporting.

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 already 83%, so baseline is 3, but the description adds real meaning: it explains that server_seed_hash and claimed_result are optional checks, clarifies the dice (0-9999) vs roll (0-99999) mapping behind result_type, and stresses passing the consumed nonce. That goes beyond the schema's field-level descriptions.

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 (verify) and resource (a provably fair result) and immediately scopes it as local, offline verification with no key. The algorithm described (HMAC-SHA256 of server_seed, client_seed, nonce) is concrete enough that an agent knows exactly what the tool computes and can distinguish it from the arena_reveal_seed / arena_fairness siblings that handle seeds rather than verification.

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?

Gives clear operating context: use the nonce the roll consumed rather than the next one, and it names the two games it directly serves (Agent Arena dice, Lightning Faucet casino dice). It does not explicitly say when to prefer it over a sibling or when not to use it, so it falls short of 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.