Skip to main content
Glama
receipt-gate

receipt-gate

Verify the ledger chain

verify_ledger
Read-only

Walk the hash chain to confirm it is intact and report any break as a sequence gap, broken link, or edited record.

Instructions

Walk the hash chain and report whether it is intact. A break names which of the three it is: a gap in the sequence, a broken link, or an edited record.

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_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
headNo
intactYes
reasonNo
recordsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered, and the description adds real behavior beyond them: the tool traverses the hash chain and classifies a break into a sequence gap, a broken link, or an edited record. It stops short of describing cost or behavior on an empty or truncated ledger.

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?

Two short sentences, front-loaded with the core action and then the diagnostic detail. Every clause carries information; there is no filler or repetition of the title.

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?

An output schema exists and the annotations cover the read-only, closed-world profile, so return shape and safety need not be restated. The description is nearly complete for this simple tool, with only minor omissions such as expected scope or cost of a full chain walk.

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?

There are zero input parameters, so there is nothing for the description to disambiguate; the baseline for a parameterless schema applies. The input schema is empty with additionalProperties false, which is fully consistent with the description.

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 states a specific verb and resource ('walk the hash chain and report whether it is intact') and even enumerates the three failure modes it can report. Nothing among the sibling tools (cancel, claim, hand_over, settle, etc.) overlaps with chain verification, so an agent can route to 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 Guidelines3/5

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

Usage is only implied: an agent infers it should call this when ledger integrity is in question. There is no explicit when-to-use or when-not-to-use statement and no named alternative, though with a zero-parameter verification tool there is little routing ambiguity to resolve.

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