Skip to main content
Glama

x402 agent toolkit: service finder, payment safety, Solana & web tools

x402 endpoint validator

x402_validate
Read-onlyIdempotent

Lint any x402 paid endpoint like a client would: 402 status, PAYMENT-REQUIRED header decode, CAIP-2 network, integer amount, payTo/asset, EIP-712 domain extra, CORS expose headers, bazaar discovery, /.well-known/x402. Score + fixes. Unpaid request only. Free: 10 calls/day; then $0.003/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]

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_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYeshttps URL of the paid endpoint
methodNoGET (default) or POST

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/destructive/idempotent annotations, it discloses real behavioral facts: this performs live outbound checks against an endpoint (matching openWorldHint), it only issues unpaid requests, and it is metered at 10 free calls/day then $0.003/call with named payment paths. The hosting note and payment mechanics are exactly the context an agent needs before invoking a networked, costed tool.

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 check list is front-loaded and dense, and each listed check earns its place by telling the agent what coverage to expect. The trailing billing sentence and the bracketed host tag are slightly cluttered but still functional information rather than filler.

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?

With an output schema present, the "Score + fixes" phrasing is sufficient for return values, and the description covers scope, cost, and the read-only nature of the call. What is missing is only relative positioning against sibling validators/precheck tools, which is a modest gap for an otherwise self-contained definition.

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% for both parameters (url with an example, method defaulting to GET), so the schema already carries parameter meaning. The description adds only the implicit constraint that the target must be a paid x402 endpoint; it does not clarify method-selection tradeoffs, so the baseline of 3 applies.

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 ("Lint any x402 paid endpoint") and enumerates exactly what gets checked: 402 status, PAYMENT-REQUIRED decoding, CAIP-2 network, integer amount, payTo/asset, EIP-712 domain, CORS, bazaar discovery, and /.well-known/x402. The scope is unmistakable, but it never distinguishes itself from near-neighbors such as x402_precheck or x402_verify_settlement, so the agent must infer the boundary.

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

Usage Guidelines3/5

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

"Unpaid request only" is a useful eligibility constraint, and the free-tier and per-call pricing help the agent decide whether to spend a call. However, there is no explicit statement of when to choose this over the related x402_precheck, x402_verify_settlement, or x402_gateway_plan siblings, leaving the choice implied.

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.

Resources