Skip to main content
Glama

Genesis402 by UnyKorn (x402 pay-per-call)

Look up a receipt (free)

genesis402_receipt
Read-only

Free, no payment, read-only and idempotent. Fetches one receipt by id from the rail's public receipts feed (twin.unykorn.org/receipts) to confirm that a paid call was settled and delivered. Use after any paid call, or to check a genesis402_prove receipt, using the receipt id returned with that result. It does not list or search receipts; you need the exact id. Returns the receipt exactly as published: the task called, amount in USD, payment rail, settlement transaction hash, settler, payer and timestamp. An unknown id returns an error with HTTP status 404; nothing is charged either way.

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_id": "<receipt_id>"
    },
    "name": "genesis402_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receipt_idYesThe receipt id exactly as returned with a paid call result or by genesis402_prove, 4 to 80 characters.

Output Schema

NameRequiredDescriptionDefault
sellerNoWho is paid and who issues the receipt: the seller's ERC-8004 agent id, registry and receipts feed.
receiptYesThe receipt exactly as published on the rail's receipts feed.
receipt_idYesThe id that was looked up.
receipts_urlNoPublic receipts feed, where a paid call's signed receipt can be looked up.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / receipts_url
      Added value: +{
      +  "description": "Public receipts feed, where a paid call's signed receipt can be looked up.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / seller
      Added value: +{
      +  "additionalProperties": true,
      +  "description": "Who is paid and who issues the receipt: the seller's ERC-8004 agent id, registry and receipts feed.",
      +  "properties": {
      +    "agent": {
      +      "type": "string"
      +    },
      +    "agent_id": {
      +      "description": "ERC-8004 agent id of the seller on Base. 95721 is the Genesis402 rail; a route sold by a desk agent names that agent.",
      +      "type": "number"
      +    },
      +    "card": {
      +      "description": "The seller's ERC-8004 registration file.",
      +      "type": "string"
      +    },
      +    "chain": {
      +      "description": "Chain name, base.",
      +      "type": "string"
      +    },
      +    "collector": {
      +      "description": "ERC-8004 id of the collecting agent whose wallet receives the payment (95721). Present with specialist.",
      +      "type": "number"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "pay_to": {
      +      "description": "The Base address this route is paid to, as quoted in the 402.",
      +      "type": "string"
      +    },
      +    "receipts": {
      +      "description": "Public feed of signed receipts for paid calls.",
      +      "type": "string"
      +    },
      +    "registry": {
      +      "description": "CAIP-10 style registry reference, eip155:8453:<IdentityRegistry address>.",
      +      "type": "string"
      +    },
      +    "registry_address": {
      +      "description": "ERC-8004 IdentityRegistry contract address on Base.",
      +      "type": "string"
      +    },
      +    "source": {
      +      "description": "rail: named by the rail in its 402 or manifest. package: this package's default, used when the rail names none.",
      +      "enum": [
      +        "rail",
      +        "package"
      +      ],
      +      "type": "string"
      +    },
      +    "specialist": {
      +      "description": "Present when the route is sold by one of the rail's eight specialists (prices, chain-reader, defi, web, geo-records, research, ai-tools, utilities).",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "agent_id",
      +    "registry",
      +    "registry_address",
      +    "chain",
      +    "source"
      +  ],
      +  "type": "object"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / receipt_id / description
      Previous value: -"Receipt id returned by a paid call."New value: +"The receipt id exactly as returned with a paid call result or by genesis402_prove, 4 to 80 characters."
    • addedOutput schema / properties / receipt
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "The receipt exactly as published on the rail's receipts feed.",
      +  "type": "object"
      +}
    • addedOutput schema / properties / receipt_id
      Added value: +{
      +  "description": "The id that was looked up.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "description": "The receipt record."
      -}
    • addedOutput schema / required
      Added value: +[
      +  "receipt_id",
      +  "receipt"
      +]
  3. Changed2 schema fields changed
    • addedInput schema / properties / receipt_id / description
      Added value: +"Receipt id returned by a paid call."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "result": {
      +      "description": "The receipt record."
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds that the call is free, that nothing is charged on success or failure, that it is idempotent, and that unknown ids produce an HTTP 404 error. That is meaningful behavior beyond the structured hints, including the cost/error profile an agent needs before calling.

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?

Front-loaded with the free/read-only/idempotent qualifiers, then purpose, then usage, then behavior. The sentence enumerating returned fields (task, amount, rail, tx hash, settler, payer, timestamp) is largely redundant given an output schema exists, which is the only real slack.

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?

For a one-parameter read tool with a full output schema, the description covers cost, idempotency, sourcing of the id, error behavior and return shape. An agent has everything needed to call it correctly and interpret a 404.

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 already documents that the id must match the value returned by a paid call or genesis402_prove, 4-80 chars. The description reinforces 'you need the exact id' but adds no format or sourcing detail the schema lacks, so the baseline 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?

States a specific verb and resource ('Fetches one receipt by id') plus the source feed and the purpose ('to confirm that a paid call was settled and delivered'). It also explicitly distinguishes itself from list/search behavior, so an agent can separate it from catalog-style siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use cases ('after any paid call, or to check a genesis402_prove receipt') and an explicit exclusion ('does not list or search receipts; you need the exact id'). The condition that selects it versus alternatives is unambiguous.

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.