Skip to main content
Glama

Have an x402 endpoint bought once: paid and delivered? ($0.25 via x402)

x402_delivery_check

Paid ($0.25 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, or in RLUSD on the XRP Ledger): not a reading but a purchase. x402 Doctor buys the endpoint once (at most $0.1, USDC on Base, from its own wallet) with the example input its listing declares, checks the answer against the declared output schema, has TypeSafe's Jev judge whether it is what was paid for, and measures the charge on chain. Answers with a job id at once; the result usually comes within minutes. The endpoint must get a "go" from the pre-payment check and be payable in USDC on Base; otherwise it is refused before payment. Same as GET /api/v1/delivery-check. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.

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": {
      "url": "<url>"
    },
    "name": "x402_delivery_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe x402 endpoint to buy once (https, someone else's, payable in USDC on Base)
methodNoHTTP method of the paid route (default: GET, then POST)

Output Schema

NameRequiredDescriptionDefault
idNoThe job id of this delivery check
urlNo
statusNoqueued, then done
acceptsNoOnly on an unpaid call: the x402 payment options
receiptNoSigned receipt (EIP-191) binding the answer to your arguments
status_urlNo
endpoint_price_usdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / id / description
      Previous value: -"The job id: pass it to x402_delivery_status"New value: +"The job id of this delivery check"
  2. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / accepts / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": {},
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / receipt / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations only cover readOnly/openWorld/destructive, so the description carries the real behavioral load and does it well: it discloses that money is actually spent, the exact price and payment rails, the internal wallet spend cap, the asynchronous job-id return with minutes-scale latency, the pre-payment refusal condition, and the EIP-191 signed receipt bound to the caller's arguments. That is far more than the annotations provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core value — buy once, verify delivery, return a signed receipt — is buried behind a nine-chain, multi-currency parenthetical in the opening sentence. Every sentence is substantive, but the structure front-loads payment-rail trivia rather than the action, and the single dense paragraph makes the key preconditions easy to miss.

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

Completeness4/5

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

For a paid, asynchronous, multi-chain tool this is nearly complete: cost, preconditions, async return, latency, and receipt are all covered, and an output schema exists so return values need no prose. The notable gap is that it returns a job id without saying how or where the eventual result is retrieved.

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%, so both parameters are already documented in the schema, including the GET/POST enum and its default. The description adds only the indirect point that the endpoint is invoked with the example input its listing declares, without explaining how that interacts with the method parameter. Baseline 3 is appropriate when the schema does the work.

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 states a specific, unusual action with precision: it buys the endpoint once, validates the response against the declared output schema, has a judge verdict it, and measures the on-chain charge. The phrase 'not a reading but a purchase' meaningfully separates it from read-only check siblings. It stops short of naming which sibling to use instead, so it is clear but not sibling-differentiated.

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 gives a concrete precondition — the endpoint must pass the pre-payment check and be payable in USDC on Base, otherwise it is refused before payment — which tells the agent when this tool will and will not work. The cost to the caller ($0.25) and the internal spend cap ($0.1) are also stated. What is missing is an explicit named alternative for cheaper read-only checks or for polling the returned job.

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.