Skip to main content
Glama

x402 Endpoint Check (Tanod)

test_x402_payment

agentscan: Make a real x402 payment to test your wallet and client, with a signed receipt. To check a signed authorization without paying use x402_payment_status; to vet a seller before paying use check_x402_endpoint_before_paying. Returns what the payment gate saw, with an Ed25519-signed UTC receipt; a sha256 you send is signed with the time, as a simple proof that it existed then. Built for a scheduled health ping: every call settles a new payment on-chain. A failed payment is never settled, and its 402 names the reason (wrong network, amount or payTo, expired or bad signature). The receipt key is at /.well-known/tanod-receipt-key. Typically 1-4 s (one on-chain settlement). Price: USD 0.001. No free tier. Docs: https://tanod.dev/learn/x402-payment-test-api.html

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "test_x402_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
sha256NoA SHA-256 hash as 64 hex characters. It is signed together with the time, as a simple proof that something with this hash existed then.

Output Schema

NameRequiredDescriptionDefault
okNo
noteNo
paidNo
railNo
assetNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
payerNo
key_idNo
schemeNo
catalogNo
networkNo
receiptNo
heartbeatNo
signatureNo
amount_usdNo
timings_msNo
verify_urlNo
facilitatorNo
transactionNo
explorer_urlNo
network_nameNo
amount_atomicNo
public_key_urlNo
signature_algorithmNo
next_suggested_check_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / properties / sha256 / default
      Removed value: -null
    • changedInput schema / properties / sha256 / description
      Previous value: -"Optional: a SHA-256 hash as 64 hex characters. It is signed together with the time, as a simple proof that something with this hash existed then."New value: +"A SHA-256 hash as 64 hex characters. It is signed together with the time, as a simple proof that something with this hash existed then."
    • removedInput schema / properties / sha256 / title
      Removed value: -"Sha256"
    • removedInput schema / title
      Removed value: -"test_x402_paymentArguments"
    • removedOutput schema / properties / catalog / properties
      Removed value: -{
      -  "human": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "llms_txt": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "note": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "openapi": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "x402_discovery": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / facilitator / properties
      Removed value: -{
      -  "name": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "url": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / heartbeat / properties
      Removed value: -{
      -  "cost_usd": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "note": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "safe_to_schedule": {
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / receipt / properties
      Removed value: -{
      -  "amount_atomic": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "issued_at": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "network": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "payer": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "sha256": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "tx": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "v": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / timings_ms / properties
      Removed value: -{
      -  "settle": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "verify": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  }
      -}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations flag a non-read-only, open-world, non-idempotent call, and the description goes well beyond them: every call settles a new on-chain payment, expected latency 1-4s, price USD 0.001, and failed payments are never settled with the 402 naming the reason. Receipt signing (Ed25519), the proof semantics of the sha256, and the key-discovery URL are all disclosed.

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 action and the sibling routing, and nearly every clause carries new information (cost, latency, failure semantics). It is dense to the point of run-on sentences with heavy semicolon chaining, which slightly hurts scanability but does not waste words.

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 return-shape explanation is unnecessary, and the description still covers what the caller needs: cost, timing, failure behavior, receipt verification path, and alternatives. Nothing material is missing for a single-optional-parameter paid call.

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%, so the single sha256 parameter is already fully documented including its 64-hex constraint. The description restates the signing-as-timestamp-proof idea rather than adding new syntax or format detail, so it meets but does not exceed the baseline.

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 ("Make a real x402 payment to test your wallet and client") and immediately scopes the outcome ("with a signed receipt"). It explicitly separates itself from both siblings by naming them and the condition that selects each.

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 routing: use x402_payment_status to verify a signed authorization without paying, and check_x402_endpoint_before_paying to vet a seller first. It also names the intended workload (scheduled health ping) and warns there is no free tier, so an agent knows when this is the wrong choice.

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.