Skip to main content
Glama

x402 pre-payment payee check (paid, x402) — $0.005

check_x402_payee
Read-onlyIdempotent

Paid endpoint ($0.005): Pre-payment payee check for any x402 endpoint: reads its unpaid 402 challenge (nothing paid or signed), compares payTo with the address you expect (address=0x...) and with the seller's /.well-known/x402, checks the asset is USDC on a known network, mainnet vs testnet, price vs listing and HTTPS. Returns pass/warn/fail with each check. Blocked/invalid url 400, no charge. Returns the x402 payment requirements and URL.

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": {
      "url": "https://cryptofeed402.site/price/BTC",
      "address": "0x93e4B468A88B1f084Efc781ec7A1E2D195a40D22"
    },
    "name": "check_x402_payee"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesx402 endpoint you plan to pay
addressNoOptional payee you expect

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses the price ($0.005), that nothing is paid or signed, that it fetches the seller's /.well-known/x402, the shape of the result (pass/warn/fail per check), and that invalid URLs return 400 with no charge. That is exactly the cost-and-side-effect context an agent needs before invoking a paid endpoint.

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?

The cost and purpose are front-loaded, and every clause carries information (checks performed, error behavior). It is a dense run-on with two separate 'Returns...' statements, so it is slightly less scannable than it could be, but nothing is padded.

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 two-parameter, no-output-schema tool, the description covers inputs, the checks performed, the result shape (pass/warn/fail), the error case, and the cost. An agent has everything needed to decide to call it and to interpret the response.

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 both 'url' and 'address' are already documented in the schema, establishing a baseline of 3. The description adds only a little: that 'address' is compared against payTo and the well-known listing, and that 'url' is the endpoint being probed. Useful but marginal over 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 opens with a specific verb and resource: 'Pre-payment payee check for any x402 endpoint', then enumerates exactly what is compared (payTo vs expected address, seller's /.well-known/x402, USDC asset, mainnet/testnet, price vs listing, HTTPS). That level of specificity makes it unmistakable against the sibling set of market-data tools.

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?

'Pre-payment' plus 'reads its unpaid 402 challenge (nothing paid or signed)' clearly implies the moment to call it: before committing funds to an unknown x402 seller. It also states the failure path ('Blocked/invalid url 400, no charge'). It stops short of explicit when-not-to-use guidance or naming an alternative, which keeps it at 4 rather than 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.