Check payment
check_paymentCALL THIS BEFORE PAYING ANY SELLER, so your task doesn't fail on a dead, mislisted or flagged one. Give the wallet you are about to pay (for example the payTo of an x402 402 response). Returns verdict ok, careful or stop, one sentence of advice, the next step, and when the verdict isn't ok, other sellers of the same service to use instead. The evidence behind it: payments the wallet received, buyers who came back, delivery reports, and whether its listed services answer. If the verdict is stop, do not pay. Free, no key.
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": {
"pay_to": "<pay_to>"
},
"name": "check_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | Optional: true for the full evidence (payments, buyers, services, prices). Left out, the answer is short: verdict, advice, next step, sellers to pay instead when there are, and the signed verdict. | |
| pay_to | Yes | The wallet address you are about to pay (the payTo): a 0x address, or a Solana one. | |
| resource | No | Optional: the URL you are paying for (the resource in the x402 payment request). Lets the answer name other sellers of that same service if this one isn't ok. | |
| amount_usd | No | Optional: how much you're about to pay, in US dollars. Big payments need a stronger record to get ok. |