Skip to main content
Glama

Check an x402 endpoint before paying (paid)

check_x402_endpoint
Read-onlyIdempotent

Is this x402 endpoint safe to pay? Fetches its 402 terms with one GET (never pays) and checks: payTo validity and EIP-55 checksum, zero/token-contract/OFAC-sanctioned payTo, asset is canonical USDC for the network, amount vs your budget, price vs the price advertised in its OpenAPI and on x402scan, payTo vs the one x402scan recorded, HTTPS, redirects, resource host, domain age (RDAP), tunnels/shared hosts. Returns go/caution/no_go, the recommended payment option and findings. Costs $0.003 USDC per call via x402 (charged only on success). Without an x402 wallet you get the payment terms and the paid HTTP URL instead.

Input Schema

NameRequiredDescriptionDefault
urlYesThe x402 endpoint you are about to pay (full URL incl. query). Only GET is sent; nothing is paid.
max_usdNoYour budget per call in USD; above it the verdict is no_go.
networkNoPreferred network, CAIP-2 (eip155:8453) or v1 name (base).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds material context beyond them: the $0.003 USDC per-call cost charged only on success, the single-GET no-payment guarantee, the go/caution/no_go verdict vocabulary, and what a caller without a wallet receives. That is precisely the pricing, side-effect, and output-shape information an agent cannot infer from annotations.

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 framing question and the no-payment/cost guarantees are front-loaded, and the checklist is compressed into one dense clause. The enumeration of checks is long but every item is a distinct signal an agent would want before paying; only slight tightening is possible.

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?

There is no output schema, and the description compensates by naming the verdict values, the recommended payment option, and the findings it returns. Combined with the cost model and the no-wallet fallback, an agent has everything needed to decide whether and how to call it.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns one more by tying max_usd to a concrete outcome ("amount vs your budget", above budget = no_go) and by framing url as the endpoint about to be paid. It adds relationship semantics rather than merely restating field descriptions.

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?

Opens with a specific question the tool answers ("Is this x402 endpoint safe to pay?") and then enumerates exactly what it inspects (payTo checksum, OFAC, canonical USDC, budget, price cross-checks against OpenAPI/x402scan, HTTPS, RDAP domain age). The resource and operation are unambiguous, and no sibling (about, list_rules, scan_text, scan_tools) overlaps with it.

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?

Usage is clearly implied and reinforced: call it before paying an x402 endpoint, and it explicitly states "never pays" and only sends one GET. It also covers the fallback case ("Without an x402 wallet you get the payment terms and the paid HTTP URL instead"). It does not name a sibling alternative, but the siblings are unrelated utilities, so no routing ambiguity exists.

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