Skip to main content
Glama
drawcommons-ledger

drawcommons-ledger

ledger_verify

Read-onlyIdempotent

Recompute the audit ledger's hash chain and anchor locally, then compare them with the server's claims to verify integrity without trusting the server. Returns an integrity verdict.

Instructions

Recomputes the hash chain and the anchor on your machine from bytes fetched in this same call, then compares that against what the server says about itself. The server's own ok is shown but never trusted.

Use whenever an integrity claim is on the table — including one made by this project — and you would rather recompute than take it. Use ledger_items for contents only and ledger_export for the anchor only.

Returns verdict: agree (local recompute matches the server's claim), chain_broken (an entry does not match the recomputed chain, so the bytes you received differ from the bytes that were chained), or server_disagrees (the local chain is intact but the server's ok / count / chain_tail contradicts the entries it just served). structuredContent carries both sides plus the anchor.

Boundary: this verifies bytes, not facts. A complete chain also results from a false entry that was recorded honestly. Takes no parameters; fetches three read-only endpoints, writes nothing.

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": "ledger_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them: it discloses that three read-only endpoints are fetched in a single call, that nothing is written, that the server's own ok is displayed but never trusted, and it enumerates the three verdict outcomes with their meanings. That is the kind of trust and side-effect context annotations cannot express.

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?

Well front-loaded: what it does, when to use it, what it returns, then a limiting caveat. Dense but slightly long for a zero-parameter tool; the verdict enumeration and boundary sentence both earn their place, though a few clauses could be tightened.

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, so the description carries the full burden of describing results, and it does: named verdict values with definitions plus a note that structuredContent carries both sides and the anchor. Combined with the read-only boundary statement, nothing an agent needs to call or interpret this tool is missing.

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 and the description says so explicitly ('Takes no parameters'), matching the empty schema. There is no parameter semantics to add, so the 0-param baseline applies rather than an explicit 5.

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 and resource ('recomputes the hash chain and the anchor on your machine') plus the trust model behind it, and explicitly separates itself from ledger_items (contents only) and ledger_export (anchor only). An agent can pick this tool over its siblings without opening any schema.

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?

Gives an explicit trigger ('use whenever an integrity claim is on the table — including one made by this project — and you would rather recompute than take it') and names the two alternatives with their narrower scopes. It also states the negative boundary that this verifies bytes, not facts, which prevents misuse as a truth check.

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

Deploy Server

Other Tools