Skip to main content
Glama

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

Pre-check an x402 payment

x402_precheck
Read-onlyIdempotent

Before paying an x402 endpoint: fetch it, validate its HTTP 402 payment requirements (scheme, network, payTo, amount, asset) and screen payTo against the OFAC SDN crypto-address list. Returns verdict ok|warn|block|not_402. Referral program: add ref=<your 0x Base wallet> to paid HTTP calls you route here and earn 20% of net revenue = amount received minus facilitator and gas fees (off-chain ledger, settled monthly in USDC on Base after manual review, min 1 USDC; earnings at GET /v1/referral/{address}).

Input Schema

NameRequiredDescriptionDefault
urlYesx402 endpoint you plan to pay
methodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds real value beyond that by disclosing the return contract (verdict ok|warn|block|not_402) and that it performs a network fetch plus an external sanctions-list screen. It stops short of explaining what distinguishes warn from block or any rate-limit behavior.

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

Conciseness2/5

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

The functional sentence is well front-loaded, but the majority of the text is a referral/earnings program promotion (rev-share, monthly USDC settlement, minimums, ledger endpoint) that does not help an agent select or invoke the tool. That block is dead weight for tool selection and dilutes the signal.

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 2-parameter read-only pre-check with no output schema, the description covers purpose, timing, and return verdict labels adequately. But it leaves `method` unexplained and gives no interpretation of the verdict levels, so an agent cannot fully reason about the result — while the space is instead spent on referral marketing.

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 coverage is only 50%: `url` is documented but `method` (a GET/POST enum) has no description anywhere. The description does not compensate — it never mentions the method parameter, so an agent gets no guidance on why method matters (e.g., that payment requirements can differ per verb).

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 opening clause names a specific verb (validate/fetch) and resource (an x402 endpoint's HTTP 402 payment requirements), and enumerates exactly what is checked: scheme, network, payTo, amount, asset, plus OFAC SDN screening. This is clearly distinguishable from siblings like x402_verify_settlement (settlement verification) and x402_recommend.

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?

The phrase "Before paying an x402 endpoint" gives a precise triggering condition and temporal ordering, which is exactly the guidance an agent needs. However, it never names the alternative sibling tools or states when NOT to call it (e.g., after payment has already settled, use x402_verify_settlement).

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