Skip to main content
Glama

TunnelMind Data API

receipt_with_proof

Spec 003 / ADR-044 decision 3. Returns the RFC 6962 inclusion proof for one sequenced receipt against the latest Signed Tree Head, plus the receipt itself where it may be shown.

Use this tool when:

  • An agent found a receipt with ledger_search and wants to verify it offline. The 2-call path: ledger_search (find the hit), then receipt_with_proof (the receipt + inclusion proof + STH), then scripts/verify-log.mjs inclusion proof.json --key <log key> --receipt receipt.json with no further calls.

Inputs:

  • id (path, required): the unified receipt_id or a lens alias.

Returns:

  • Always: leaf_index, tree_size, leaf_hash, audit_path, root_hash, sth (the same fields as receipt_log_inclusion_proof), receipt_id and lens.

  • receipt: the exact stored document for public rows (lens config with a change: or toolset: subject, already public through /v1/changes and /v1/ledger) and for the owning customer. Otherwise receipt: null and receipt_withheld: "private".

What this proves: the receipt is byte-identical to the one sequenced into the log — not that the observation inside it was correct.

Cost:

  • Counts as one request against the daily rate limit.

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": {
      "id": "<id>"
    },
    "name": "receipt_with_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it discloses the withholding rule (receipt: null with receipt_withheld: "private" outside public rows and the owning customer), states the daily rate-limit cost, and explicitly bounds the proof's meaning ('byte-identical ... not that the observation inside it was correct'). That is unusually rich behavioral disclosure for a read tool.

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?

Sectioned into Use/Inputs/Returns/What this proves/Cost, with the operative scope stated early and every block earning its place. The opening 'Spec 003 / ADR-044 decision 3' line is normative bookkeeping that costs a sentence before any actionable content.

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?

No output schema exists, yet the description enumerates every returned field (leaf_index, tree_size, leaf_hash, audit_path, root_hash, sth) plus the conditional receipt field, and covers cost and privacy. Nothing an agent needs to call or interpret it correctly 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 single parameter is named in the schema with no description (0% coverage), so the description must compensate; it does by defining 'id' as the unified receipt_id or a lens alias and marking it required. It stops short of stating the accepted format or how aliases resolve.

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 — returns an RFC 6962 inclusion proof for one sequenced receipt against the latest Signed Tree Head — and pins itself to a sibling by noting it emits 'the same fields as receipt_log_inclusion_proof'. An agent can distinguish it from ledger_search and receipt_lookup from the description alone.

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 'Use this tool when' block spells out a concrete three-step path (ledger_search → receipt_with_proof → verify-log.mjs) with no further calls, which is exactly the routing an agent needs. It does not state when receipt_log_inclusion_proof, get_receipt, or verify_receipt would be preferred, so the when-not half is missing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources