Skip to main content
Glama

MoneyTools x402 agent toolkit

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. No demo limit with prepaid credits: send HTTP header X-API-Key: mtk_... on the MCP POST (buy once via x402: GET /v1/credits/buy?pack=1000 = 1000 calls for 1 USDC, or pack=100 for 0.10 USDC; 1 credit per successful call). 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
methodNoHTTP method the endpoint expects; default GET

Output Schema

NameRequiredDescriptionDefault
optionsYes
reasonsYes
summaryNo
verdictYes
warningsYes
riskScoreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so safety is covered. The description adds useful behavioral context beyond that: it performs a network fetch, validates five specific 402 fields, screens against an OFAC list, and returns one of four verdicts. It also discloses the credit/auth model, though the referral details are not relevant to invoking the tool.

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 purpose is front-loaded effectively in the first sentence, but a large portion of the description is promotional content about prepaid credits, pricing packs, and a referral program. That material does not help an agent select or invoke the tool and dilutes an otherwise clear definition.

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?

An output schema exists, so return values do not need full explanation, and the annotations cover the safety profile. The description is functionally complete for a simple two-parameter pre-check tool, but it spends space on pricing and referrals while omitting more relevant details such as behavior on unreachable endpoints or caching.

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 input schema. The description clarifies that the URL is the endpoint the user plans to pay and that payment fields like scheme, network, payTo, amount, and asset are checked, but it adds little parameter-level syntax or format detail beyond the schema.

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 verb and resource: fetch an x402 endpoint, validate its HTTP 402 payment requirements, and screen payTo against OFAC SDN. The pre-payment framing distinguishes it implicitly from x402_verify_settlement, though no sibling is named explicitly. The core purpose is clear despite the later promotional material.

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 opening phrase 'Before paying an x402 endpoint' gives a clear triggering condition for when to use this tool. It does not state when not to use it or name alternatives such as x402_verify_settlement, so it falls short of full routing guidance.

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