Skip to main content
Glama

Export evidence receipt

export_evidence_packet
Read-onlyIdempotent

Exports a search as a portable evidence packet with the exact request, cited results, and SHA-256 digest, so you can quote the digest and later replay the packet to verify the evidence is unchanged.

Instructions

Run the same search as search_evidence and return it as a portable evidence packet: the exact request, the ordered results with citations, and a SHA-256 digest. Quote the digest with your answer. Anyone with the packet can later replay it against this ledger, with replay_evidence_packet or the ucde replay command, to see whether the evidence is unchanged.

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": {
      "query": "<query>"
    },
    "name": "export_evidence_packet"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of hits.
queryYesSearch text; an empty string browses the newest evidence.
scaleNoOnly evidence on exactly this scale or unit.
methodNoOnly evidence measured with exactly this method.
contextNoExact key-value selectors; every hit carries all of them.
subjectNoOnly evidence about exactly this subject.
known_atNoRecording cutoff for the receipt: an ISO 8601 timestamp with a UTC offset. Omit it to use the time of the ledger's latest recorded change; observed_before then defaults to the current time, as in search_evidence, so the hits match. A future time is refused.
strategyNoadaptive weighs text relevance by age and quality; lexical keeps only text matches; recent orders by observation time, newest first. nearest requires target_at and orders by observation-time distance.adaptive
variableNoOnly evidence for exactly this variable.
target_atNoFavour evidence observed close to this time: an ISO 8601 timestamp with a UTC offset.
observed_afterNoOnly evidence observed at or after this time: an ISO 8601 timestamp with a UTC offset.
observed_beforeNoOnly evidence observed at or before this time: an ISO 8601 timestamp with a UTC offset.

Output Schema

NameRequiredDescriptionDefault
formatYes
sha256Yes
payloadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so safety is covered; the description adds real behavioral value by disclosing the packet payload shape (request echo, ordered cited results, digest) and the replay-verification contract against this ledger. It stops short of noting the limit ceiling or what a replay mismatch implies, leaving some operational detail to the schema.

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?

Three sentences, front-loaded with the action and output shape, then the required follow-up behavior, then the downstream verification rationale. No filler and nothing repeated from the schema or annotations.

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 and 100% parameter coverage, the description need only establish purpose and the digest/replay workflow, which it does. The only gap is that it doesn't warn that omitting time cutoffs makes results match search_evidence defaults, though the schema documents that nuance.

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 description coverage is 100%, including the non-obvious known_at defaulting behavior and strategy enum semantics, so the schema carries parameter meaning on its own. The description contributes only the equivalence claim ('same search as search_evidence') and adds no field-level guidance beyond it, making the baseline 3 correct.

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 ('Run the same search as search_evidence and return it as a portable evidence packet') and immediately enumerates the packet's contents: exact request, ordered results with citations, SHA-256 digest. It also distinguishes itself from search_evidence by framing this as the export/attestation variant rather than the plain search.

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?

Usage is clear from context: use this when you need a portable, verifiable receipt rather than plain search results, and it names replay_evidence_packet (plus the ucde replay command) as the downstream consumer. It adds an explicit procedural instruction ('Quote the digest with your answer') but never states when to prefer plain search_evidence over exporting, so no explicit exclusion.

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