Free basic payment-rule check
preflight_basicUse when you need free supplied-data rules only; no external evidence or signed receipt. Provide the spent-today context. No automatic paid upgrade. Free rules-only review of a supplied x402 challenge or cart. Rules-only review of caller-supplied data. No sanctions, domain/DNS, identity, cached price/history, liveness, delivery or wallet-authority verification. No signed receipt. An allow decision is not permission to pay. Pass spent_today_usd, including zero, to evaluate the daily cap. Use preflight_payment explicitly for the separate 0.02 USDC screened and signed check. Shared anonymous per-instance 30/minute HTTP+MCP limit.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "preflight_basic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | No | Optional. Checkout JSON object used instead of challenge; provide exactly one. Example: {"merchant_domain":"example.com","total_usd":1.25,"pay_to":"0xBf4164e07552e4c1b1B1597E72C7acAA3F0a1c58"}. total_usd is a USD number. | |
| rules | No | Optional. Spending-rule JSON object; omitted fields use service defaults available from get_service_info. Example: {"max_per_payment_usd":5,"usdc_only":true}. USD amounts are numbers, not atomic strings. | |
| challenge | No | Optional. Actual x402 HTTP 402 PaymentRequired JSON object, version 1 or 2. Required unless cart is supplied; provide exactly one. Example structure: {"x402Version":2,"resource":{"url":"https://api.example.com/data"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","payTo":"0xBf4164e07552e4c1b1B1597E72C7acAA3F0a1c58","amount":"10000","maxTimeoutSeconds":60}]}. Amounts inside challenges are atomic integer strings (10000 = 0.01 USDC at 6 decimals), not decimal USDC. | |
| resource_url | No | Optional. Absolute HTTP(S) resource URL string. Example: https://api.example.com/data. Supply if the resource URL is absent from the challenge or requirement. | |
| resource_method | No | Optional. Advertised HTTP method string, 3–16 letters. Example: POST. Supply when an indexed URL has multiple methods. | |
| spent_today_usd | No | Optional. Already-spent daily total as a nonnegative USD number. Example: 2.5. Caller-supplied context for the daily cap. |