Skip to main content
Glama

haldir_get_consistency_proof

Generate a cryptographic consistency proof that verifies a later tree extends an earlier tree without forking, enabling append-only log auditing.

Instructions

Prove the tree of size second is an append-only extension of the tree of size first. Same primitive Certificate Transparency uses to detect forks in the global WebPKI log.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "first": "<first>",
      "second": "<second>"
    },
    "name": "haldir_get_consistency_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
firstYesEarlier tree size (>= 1)
secondYesLater tree size (>= first)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a pure read/computation but never states that it is non-mutating, whether the proof is computed on demand or retrieved, what happens if the relation does not hold (error vs. false result), or how the proof should be consumed.

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 tight sentences with the core claim front-loaded and the analogy second; no filler or redundant restatement of the name.

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?

With no output schema and no annotations, the description leaves the shape of the returned proof and its verification workflow unexplained. For a cryptographic primitive where the result is not self-describing, that is a meaningful gap despite the clean purpose statement.

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 coverage is 100% and already documents `first` (>= 1) and `second` (>= first). The description restates the roles as earlier/later tree sizes and adds the extension relation, but no additional format, ordering, or edge-case detail beyond the schema.

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+resource: proves that the tree at size `second` is an append-only extension of the tree at size `first`. The Certificate Transparency analogy pins down the concept, though 'the tree' is never defined (log? Merkle tree?) and the sibling `haldir_get_inclusion_proof` is not distinguished from this proof type.

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?

The CT fork-detection framing implies the use case (verifying the log never rewrote history), but there is no explicit when-to-use, no prerequisites (e.g. needing both tree heads first via haldir_get_tree_head), and no contrast with the inclusion-proof sibling.

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