Skip to main content
Glama

Code402 Non-Custodial Financial Verification MCP

Verify any XDR-1 receipt — free, stateless, any issuer

receipt_verify
Read-onlyIdempotent

Verifies a signed XDR-1 receipt from ANY x402 service: recomputes the canonical digest and recovers the signer, then compares it to the declared signer. Free forever — no account, no quota, no storage (stateless). A valid receipt proves the signer signed that tool call at that timestamp; it does NOT prove funds moved or any business claim.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "receipt": {
        "v": "XDR-1",
        "ts": 0,
        "tier": "free",
        "tool": "iban-check",
        "nonce": "0x…",
        "payer": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
        "amount": "0",
        "signer": "0xa036e2e3e19c6d02f30b3a9eb0acd057e6d9a5c8",
        "recipient": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
        "signature": "0x…",
        "input_hash": "0x…",
        "output_hash": "0x…",
        "tool_version": "1"
      }
    },
    "name": "receipt_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptYesThe full XDR-1 receipt object: v, tool, tool_version, input_hash, output_hash, payer, recipient, amount, nonce, ts, tier, signer, signature (optional successor/stream_state).

Output Schema

NameRequiredDescriptionDefault
scopeNo
validNo
digestNo
canonicalNo
declared_signerNo
signer_recoveredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "receipt": {
      -      "amount": "0",
      -      "input_hash": "0x…",
      -      "nonce": "0x…",
      -      "output_hash": "0x…",
      -      "payer": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      -      "recipient": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      -      "signature": "0x…",
      -      "signer": "0xa036e2e3e19c6d02f30b3a9eb0acd057e6d9a5c8",
      -      "tier": "free",
      -      "tool": "iban-check",
      -      "tool_version": "1",
      -      "ts": 0,
      -      "v": "XDR-1"
      -    }
      -  }
      -]New value: +[
      +  {
      +    "receipt": {
      +      "amount": "0",
      +      "input_hash": "0x…",
      +      "nonce": "0x…",
      +      "output_hash": "0x…",
      +      "payer": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      +      "recipient": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      +      "signature": "0x…",
      +      "signer": "0xa036e2e3e19c6d02f30b3a9eb0acd057e6d9a5c8",
      +      "tier": "free",
      +      "tool": "iban-check",
      +      "tool_version": "1",
      +      "ts": 0,
      +      "v": "XDR-1"
      +    }
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "receipt": {
      -      "amount": "0",
      -      "input_hash": "0x…",
      -      "nonce": "0x…",
      -      "output_hash": "0x…",
      -      "payer": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      -      "recipient": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      -      "signature": "0x…",
      -      "signer": "0xa036e2e3e19c6d02f30b3a9eb0acd057e6d9a5c8",
      -      "tier": "free",
      -      "tool": "iban-check",
      -      "tool_version": "1",
      -      "ts": 0,
      -      "v": "XDR-1"
      -    }
      -  }
      -]New value: +[
      +  {
      +    "receipt": {
      +      "amount": "0",
      +      "input_hash": "0x…",
      +      "nonce": "0x…",
      +      "output_hash": "0x…",
      +      "payer": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      +      "recipient": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      +      "signature": "0x…",
      +      "signer": "0xa036e2e3e19c6d02f30b3a9eb0acd057e6d9a5c8",
      +      "tier": "free",
      +      "tool": "iban-check",
      +      "tool_version": "1",
      +      "ts": 0,
      +      "v": "XDR-1"
      +    }
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "receipt": {
      -      "amount": "0",
      -      "input_hash": "0x…",
      -      "nonce": "0x…",
      -      "output_hash": "0x…",
      -      "payer": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      -      "recipient": "0xc59c85e661d34084a7769f955d17fd38254a6235",
      -      "signature": "0x…",
      -      "signer": "0xa036e2e3e19c6d02f30b3a9eb0acd057e6d9a5c8",
      -      "tier": "free",
      -      "tool": "iban-check",
      -      "tool_version": "1",
      -      "ts": 0,
      -      "v": "XDR-1"
      -    }
      -  }
      -]New value: +[
      +  {
      +    "receipt": {
      +      "amount": "0",
      +      "input_hash": "0x…",
      +      "nonce": "0x…",
      +      "output_hash": "0x…",
      +      "payer": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      +      "recipient": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      +      "signature": "0x…",
      +      "signer": "0xa036e2e3e19c6d02f30b3a9eb0acd057e6d9a5c8",
      +      "tier": "free",
      +      "tool": "iban-check",
      +      "tool_version": "1",
      +      "ts": 0,
      +      "v": "XDR-1"
      +    }
      +  }
      +]
  4. Added
  5. Removed
  6. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover readOnly, idempotent and openWorld, but the description adds operational facts the annotations cannot express: free forever, no account, no quota, no storage (stateless). It also states the trust boundary of the result, which is exactly the kind of security-relevant caveat an agent needs before acting on a pass.

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, each earning its place: what it does, what it costs/requires, and what the result does and does not prove. The mechanism and the scope caveat are front-loaded before any qualification.

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, so the description need not explain return values, and with one fully documented parameter the input side is covered by the schema. For a stateless single-parameter verifier, the description supplies everything an agent needs to call it and correctly interpret a success.

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% and the single parameter's field list is already documented in the schema's example and description, so the baseline of 3 applies. The description reinforces that the receipt contains a 'declared signer' used in the comparison, but adds no format, encoding or validation detail beyond the schema.

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 gives a specific verb and resource ('Verifies a signed XDR-1 receipt') and then names the exact mechanism: recompute the canonical digest, recover the signer, compare against the declared signer. This is distinguishable from sibling verification tools (counterparty_passport_verify, iban_check, iso20022_validate) because it is scoped to XDR-1 receipts and states 'any x402 service' as the source domain.

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?

It establishes clear context ('any issuer', no account needed) and, importantly, a when-not-to-rely boundary: a valid receipt does not prove funds moved or any business claim. That negative guidance steers the agent away from using the result as settlement proof. It does not name a concrete alternative tool, which keeps it short of a 5.

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.