Check payment requirements
check_payment_requirementsInspect an x402-protected URL without paying to retrieve its 402 payment options, identify which option would be paid, and verify whether it fits configured spending limits.
Instructions
Calls a URL without paying and returns its 402 payment options, which one would be paid, and whether it fits the limits.
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_payment_requirements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the x402-protected endpoint | |
| body | No | Request body. Objects/arrays are sent as JSON. | |
| method | No | HTTP method (default GET) | |
| headers | No | Extra request headers |