Token check before buying ($0.01 via x402)
token_checkPaid ($0.01 via x402 in USDC on Base, Solana, Monad, Polygon, Arbitrum, Avalanche, Algorand, Stellar or NEAR, in RLUSD on the XRP Ledger or in USD₮0 on X Layer): call this before your agent buys, holds or accepts a token, when it needs one answer to act on. Send tokenAddress (an EVM token contract 0x..., a Solana mint, an XRPL CURRENCY.rIssuer or an Algorand asset id) and chain (default base). Get back everything token_verdict returns (green/orange/red, grade SAFE/CAUTION/RISKY/AVOID, reason codes, one-line summary, market data), plus decision (buy, small_only or do_not_buy, from the grade), take (one or two plain sentences for whoever is about to buy), sell_check (can_sell yes, limited, no or unknown, one entry per check with its source; on Base a sell transfer into the token's pool is simulated on chain, simulated true only when it ran; missing data is unknown, never no) and share (a signed link to a page and a 1200x630 card, to show a person). Do not buy on do_not_buy or when can_sell is no. Same as POST /v1/token/verdict. The answer carries a signed receipt (EIP-191, bound to your arguments) that proves later which verdict you got.
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": {
"tokenAddress": "<tokenAddress>"
},
"name": "token_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain the token lives on (default base) | |
| tokenAddress | Yes | Solana mint address (base58), EVM token contract (0x...), an XRPL token as CURRENCY.rIssuer (e.g. RLUSD.rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De), or an Algorand asset id (e.g. 31566704) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| take | No | One or two plain sentences for someone about to buy | |
| grade | No | ||
| share | No | A signed link to a page and a 1200x630 card for this verdict (null without a receipt signer) | |
| accepts | No | Only on an unpaid call: the x402 payment options | |
| reasons | No | ||
| receipt | No | ||
| verdict | No | green: go ahead; orange: ask the user; red: do not sign or buy (absent on the payment requirement) | |
| version | No | ||
| decision | No | From the grade: SAFE buy, CAUTION small_only, RISKY or AVOID do_not_buy | |
| one_liner | No | One-line summary | |
| sell_check | No | Can a holder sell it back? One entry per check, with its source |