inspect_402
Reads an x402 402 challenge before payment, returning price, token, network, payee, bound resource, and a PASS/CAUTION/BLOCK verdict with reasons and a receipt; read-only.
Instructions
Read an x402 402 challenge BEFORE paying it. Pass a public endpoint URL (or the challenge you already have) and get back the price, token, network, payee, the bound resource, and a PASS / CAUTION / BLOCK verdict with typed reasons and a receipt. Use this when an agent is about to pay a server you do not control. The service fetches the challenge once, read-only: it never signs, pays, or settles. A recognized dollar stable (USDC, USDT, DAI, USDG) is named; a volatile asset gets a caution because it cannot be priced in USD. Free.
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": "inspect_402"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) endpoint that answers with an x402 402 challenge. Only public hosts are fetched; localhost and private ranges are refused. | |
| header | No | The base64 PAYMENT-REQUIRED header value. Makes no request. | |
| method | No | HTTP method for the probe (default GET). A POST sends an empty {} body. | |
| target | No | The URL the challenge belongs to. Binds the challenge's resource so the verdict can check it. | |
| challenge | No | A 402 challenge you already have. Makes no request. |