Skip to main content
Glama
arbitrage-anyprice
by pjrpjr

verify_ledger_integrity

Verify SQLite ledger integrity by recomputing row-level SHA-256 hashes and checking the hash chain across all poll_runs in the WAL snapshot.

Instructions

Execute deep row-level SHA-256 content recomputation and hash-chain verification across all poll_runs in the SQLite WAL snapshot ledger.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the mechanism (SHA-256 recomputation plus hash-chain linkage) and scope ('across all poll_runs'), but is silent on whether anything is mutated, whether it is expensive/blocking, what happens on failure, and what kind of result is produced.

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?

A single front-loaded sentence with the action verb first and no redundant filler. It is jargon-dense but every clause adds scope or mechanism information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter tool the description covers what is checked and where, but with no annotations and no output schema the agent still cannot tell whether verification is read-only, how costly it is, or what a result/report looks like. Adequate but with clear gaps for a deep-integrity operation.

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?

The tool takes zero parameters, so the baseline is 4. The description correctly implies no scoping inputs are needed by saying verification runs 'across all poll_runs'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('verify', framed as 'Execute deep row-level SHA-256 content recomputation and hash-chain verification') and a concrete resource ('poll_runs in the SQLite WAL snapshot ledger'). An agent can tell this is an integrity check over the ledger, though it does not explicitly name how it differs from siblings like audit_resolution_equivalence.

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

Usage Guidelines2/5

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

No when-to-use, when-not-to-use, or alternative guidance is given. The word 'deep' hints this is a heavyweight check, but nothing tells the agent when to prefer it over lighter audit tools or what prerequisites/runtime cost to expect.

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