Skip to main content
Glama

fair commit

fair_commit
Read-only

Use this before any draw other players must trust (a game between agents, a raffle, a giveaway): the server picks a secret seed and publishes its SHA-256 hash now, so it cannot change the seed later. Returns a commitment_id and the server_seed_hash to share with the players. Then call fair_draw.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteNotrue: return the price of this call without running or paying for it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations cover safety (readOnlyHint=false destructive risk) and open-world scope; the description adds the trust mechanism itself – the server cannot change the seed after publishing the hash – plus the returned fields to share. It omits persistence/lifetime of the commitment and whether the seed is later disclosed only via fair_draw/fair_verify, but the added context is substantial.

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?

Three tight sentences: purpose/trigger first, mechanism second, required next call last. No filler and the sequencing is front-loaded.

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?

There is no output schema, yet the description names the exact return values (commitment_id, server_seed_hash) and tells the caller to share them, which is what an agent needs to proceed correctly. The lone parameter is covered by the schema, so nothing material is 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 description coverage is 100% and there is a single parameter (quote), which the schema fully documents. The description contributes nothing about quote, so the baseline of 3 applies.

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 concrete action (publish a SHA-256 hash of a server-chosen secret seed before a draw) and what it produces (commitment_id, server_seed_hash). It clearly separates itself from the sibling fair_draw (which it defers to) and fair_verify by naming its role in the commit-reveal sequence.

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

Usage Guidelines5/5

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

Opens with an explicit trigger condition – 'Use this before any draw other players must trust (a game between agents, a raffle, a giveaway)' – and ends by routing the agent to the next step, 'Then call fair_draw.' Both when-to-use and the follow-up alternative are named.

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