Skip to main content
Glama

Replay evidence receipt

replay_evidence_packet
Read-onlyIdempotent

Verify a quoted receipt by matching its SHA-256 digest and rerunning the saved search at the packet's cutoff, then reporting whether cited records, revisions or citations changed.

Instructions

Check a quoted receipt. Confirm that the packet matches the quoted digest, rerun its saved search against this ledger at the packet's cutoff, and report whether the results are unchanged and, if not, which records, citations or revisions differ. For large packets, use the ucde replay command.

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": {
      "packet": "<packet>",
      "expected_sha256": "<expected_sha256>"
    },
    "name": "replay_evidence_packet"
  }
}

Input Schema

NameRequiredDescriptionDefault
packetYesThe evidence packet exactly as export_evidence_packet or ucde export produced it.
expected_sha256YesThe 64-character digest quoted with the answer being checked.

Output Schema

NameRequiredDescriptionDefault
formatYes
matchedYes
comparisonYes
result_changesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description still adds real context beyond them: it explains that the saved search is re-executed against the current ledger at the packet's cutoff, and precisely what a mismatch report contains. It omits any statement about cost or latency for expensive replays.

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?

The verification action and its outcomes are front-loaded in one dense sentence, with the large-packet fallback placed last where it belongs. Slightly long and clause-heavy, but every clause carries operational meaning.

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?

With an output schema present, return values need not be described, and the description still covers the comparison semantics and what the diff reports. For a two-parameter verification tool with full annotation coverage, little is missing; only the large-packet fallback path could be spelled out more concretely.

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 the schema already explains that 'packet' is the export_evidence_packet/ucde output and that 'expected_sha256' is the quoted digest. The description only echoes the digest-matching intent, adding no format, size or encoding detail beyond the schema, so the baseline 3 applies.

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 names a precise operation — verify that a packet matches its quoted digest, re-run the packet's saved search at its recorded cutoff, and diff the results — plus the specific outputs of that diff (records, citations, revisions). That is far more specific than 'replay', and it is clearly distinct from export_evidence_packet, evidence_history and search_evidence.

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 opening 'Check a quoted receipt' establishes the trigger condition (verifying an answer that quoted a digest), and 'For large packets, use the ucde replay command' gives an explicit alternative with its selection condition. It does not state when to prefer evidence_history or search_evidence instead, so guidance is clear but not exhaustive.

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