Skip to main content
Glama

Verify the settlement chain

verify_settlement_chain
Read-onlyIdempotent

Recompute the settlement log's SHA-256 hash chain locally from genesis to confirm integrity, count checked records, and flag the first broken link or mismatched hash without trusting server hashes.

Instructions

Download the settlement log in order from the genesis value and recompute every SHA-256 hash locally, exactly as the INFERVA app does. Nothing trusts the server's hash column. Reports how many records were checked, whether the chain is intact, and the first broken record (wrong link or hash that does not match its contents) if any.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "verify_settlement_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_recordsNoStop after this many records (default: the whole chain).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the verification mechanism (local SHA-256 recomputation, no trust in server output), the report contents (record count, chain integrity, first broken record), and distinguishes the two failure modes (wrong link vs. hash not matching contents). It also implies network access, consistent with openWorldHint=true.

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 with the mechanism front-loaded, followed by the trust rationale and the report contents. Every sentence contributes distinct information and nothing is repeated from the title or annotations.

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?

For a single-parameter read-only tool with no output schema, the description covers the return values well (count, intact flag, first broken record) and the computation method. What it omits — cost/time of full-chain verification and how partial vs. full runs differ in confidence — is minor but not nothing.

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?

There is a single optional parameter with 100% schema description coverage, including its bounds and default, so the schema already carries the semantics. The description adds the phrase 'in order from the genesis value', which implies partial verification still starts at genesis, but never mentions max_records directly. Baseline 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?

The description names a specific verb and resource — download the settlement log and recompute every SHA-256 hash locally — plus the exact algorithm (chained from genesis) and what is reported. No sibling tool (get_receipt, get_stats, get_leaderboard) overlaps this verification behavior, so an agent can select it unambiguously.

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?

The line 'Nothing trusts the server's hash column' clearly establishes the use case: independent verification rather than reading server-reported hashes via get_receipt or get_stats. It stops short of an explicit when-not statement or naming those read-only siblings as alternatives, so it is clear context without formal exclusions.

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