x402_quote
Check a URL's x402 payment requirements and validate each option against payment rules before fetching; returns JSON checks and a quote ID, and never signs or pays.
Instructions
Show the x402 payment requirements of a URL and whether each option passes the payment rules. Never signs or pays. Returns JSON with each payment option, the rule checks and a quoteId that x402_fetch can use to pin the amount, asset and recipient; result "refused" (an error) means no option passes. Call this before x402_fetch.
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": "x402_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full https URL of the paid API endpoint. Its host must be in X402_ALLOWED_DOMAINS. | |
| body | No | Request body for POST, as text (at most 100,000 characters). | |
| method | No | HTTP method (default GET). | |
| headers | No | Extra request headers, for example content-type. Payment headers are added by the tool. |