Check before you pay (x402)
pay_checkRun before paying for an x402 resource. Give the resource's url (it reads the 402 answer, v1 body or v2 header) or its payment requirements or just the payTo address. For each payment option: whether the token is a dollar stablecoin Fivebar knows on that network (a seller can ask for any token, including a fake 'USDC'), the price in dollars, testnets, and on Robinhood Chain the seller's last 30 days from Fivebar's x402 index: payments, different buyers, volume, its usual price (and whether this asks more than twice that), and wash patterns over the window (too few buyers to judge, two buyers making most of its volume, paying its own buyers back), plus its agent record if registered. Verdict: no warnings, thin record, no history, no record (other chains) or caution with the reasons. Facts to decide with, not a judgment of the seller.
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": "pay_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The x402 resource's https URL: Fivebar requests it once and reads its 402 answer | |
| asset | No | With payTo: the token address | |
| payTo | No | Just the seller's address, when there's no URL or requirements | |
| amount | No | With payTo: the amount in the token's base units (USDG and USDC have 6 decimals) | |
| network | No | With payTo: robinhood (default), base, ethereum, ... | |
| requirements | No | The 402 answer's JSON (with accepts[]), or one payment option |