Skip to main content
Glama

Qodnai x402 Security Intelligence

verify_receipt

Verify a payment receipt against payer, payee and amount. Price $0.002. Paid calls are relayed to the x402 endpoint; never send private keys to this server.

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": {
      "hash": "<hash>",
      "payer": "<payer>",
      "payee": "<payee>",
      "amount": "<amount>"
    },
    "name": "verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYes
payeeYes
payerYes
amountYes
x_paymentNoOptional legacy X-PAYMENT header value. Never send a private key.
payment_signatureNoOptional x402 v2 PAYMENT-SIGNATURE header value obtained after the first call returns the live 402 challenge. Never send a private key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses the per-call price, that paid calls are relayed to an x402 endpoint, and a hard safety constraint ('never send private keys to this server'). It omits whether the operation is read-only and how the paid flow completes, so it is strong but not complete.

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?

Two front-loaded sentences with no padding; the verification scope comes first and the commercial/safety caveats follow. Slightly dense in the second sentence, where price, relay behavior and the key warning are stacked together, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter, paid tool with a multi-step payment handshake, no annotations and no output schema, the description covers the safety and cost angle but leaves the agent guessing what 'hash' means, what a successful verification returns, and whether retries require a new payment. Adequate as a first pass, but gaps remain on the two undocumented required/optional inputs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description needs to compensate and largely does not. It names payer, payee and amount as the verification inputs, but the required 'hash' parameter—the single most important identifier for a receipt—is never explained anywhere, and the relationship between the payment header params and the '$0.002' price is only implied.

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?

States a specific verb and resource ('Verify a payment receipt') and names the three fields checked (payer, payee, amount), which lets an agent distinguish this from the unrelated sibling utilities like base_gas or decode_transaction. It stops short of explicitly differentiating itself from any named sibling, but the purpose is unambiguous.

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

Usage Guidelines2/5

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

The description gives no when-to-use or when-not-to-use guidance and names no alternative. The '$0.002' and 'x402 endpoint' sentences describe the payment mechanism rather than the conditions under which an agent should call this tool, leaving usage entirely to inference.

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.