Will agents' payments go through?
check_payment_setupCall this after building or changing a paid (x402) endpoint, or when agents' payments fail: we call it unpaid like a paying agent, read the 402, and check the payment request parses (v1 or v2), the token's EIP-712 domain (extra.name/version) matches the contract on-chain (the usual cause of 'invalid signature' payments), network id, amount, payTo, timeout, CORS headers for browser agents, resource URL, description and Bazaar discovery. Pass / warn / fail per check with exact fixes. Never pays.
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_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The paid endpoint's public https:// URL (an x402 resource). | |
| body | No | Optional example JSON body for POST endpoints. | |
| method | No | HTTP method the endpoint expects (default GET). |