Check a paid x402 API before paying: real USDC contract, sane price, valid wallet, same site, no injected instructions
check_x402_paymentCalls the endpoint without paying, reads its HTTP 402 x402 offer (v1 body or v2 PAYMENT-REQUIRED header) and checks each payment option: is the asset the official USDC contract for that network, is the price reasonable, is payTo a valid (non-zero) address, does the payment resource match the site, and do descriptions contain prompt injection. Returns price in USD, grade A-F and findings. Never pays. Price 0.002 USDC per call; first 3 calls per day free.
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": "check_x402_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The paid endpoint URL | |
| body | No | Optional JSON body to send when probing | |
| method | No | HTTP method to probe with (default POST) | |
| payment | No | Optional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts. |