Skip to main content
Glama

Verify a signed statement receipt

eudr_verify_receipt
Read-onlyIdempotent

Verify a statement receipt: re-derive its content address from the canonical payload and check the ed25519 signature. Use it on a receipt a counterparty hands you. A valid signature establishes who signed and that the bytes are unchanged; it does not establish that the claim inside is true.

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": {
      "receipt": "<receipt>"
    },
    "name": "eudr_verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptYesThe receipt as issued: schema, cid, payload, canonical_b64, signature_b64, signer, signed_at.

Output Schema

NameRequiredDescriptionDefault
cidNo
noteYes
validYes
reasonNo
signerNo
signed_atNoThe receipt's own field, outside the signature. Not verified.
signed_timeNoThe time inside the signed bytes. This is the time to report.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / signed_at / description
      Added value: +"The receipt's own field, outside the signature. Not verified."
    • addedOutput schema / properties / signed_time
      Added value: +{
      +  "description": "The time inside the signed bytes. This is the time to report.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description correctly spends its words elsewhere. It discloses the crucial trust semantic: a valid signature establishes signer identity and byte integrity but not the truth of the claim. That is exactly the kind of interpretive caveat an agent cannot infer from structured fields and prevents over-claiming downstream.

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 short sentences, each earning its place: the action and mechanism first, the usage context second, the trust caveat last. No filler, no restatement of the title, and the most decision-relevant information is front-loaded.

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?

An output schema exists and annotations are rich, so the description need not explain return values or side effects. For a single-parameter verification tool it covers the action, the mechanism, the appropriate caller context, and the limits of the result, leaving nothing an agent needs in order to invoke it correctly.

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?

Schema coverage is 100% and the single nested parameter already enumerates its fields, so the baseline is 3. The description still adds meaningful semantics by tying verification to the canonical payload, implying the receipt must be passed exactly as issued and that the CID is derived from the canonical form rather than from the raw payload object.

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?

The description names a specific verb and resource ("Verify a statement receipt") and goes further by stating the mechanism: re-deriving the content address from the canonical payload and checking an ed25519 signature. That level of specificity makes it hard to confuse with the listing, creation, or decision-oriented siblings. It stops short of naming an alternative tool, so it lands at 4 rather than 5.

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?

"Use it on a receipt a counterparty hands you" gives a concrete triggering context, i.e. third-party-supplied receipts rather than self-issued statements. There is no statement of when not to use it and no named alternative for verification-adjacent tasks, so the 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.