Will this trade go through
hookr_check_tradeWhether a pool's rules let a given wallet make a trade: Hookr's quote runs from that wallet, so Wallet Cap, an add-on or a gate run for it, but its balance is not checked (hookr_build_swap checks that). Answers ok, refused with the reason, or unknown when the check could not run, and unknown is never ok.
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": {
"poolId": "<poolId>",
"side": "<side>",
"amount": "<amount>",
"wallet": "<wallet>"
},
"name": "hookr_check_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | Yes | buy pays the pool's quote currency (ETH, HOOKR, …) for the token; sell pays the token for the quote currency. | |
| amount | Yes | How much the trade pays in, in the paying currency's own units as a decimal string, e.g. "0.05". | |
| poolId | Yes | The pool's 32-byte Uniswap v4 PoolId, 0x and 64 hex characters. | |
| wallet | Yes | The wallet that would trade. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gets | No | ||
| note | No | What the trade should know: its loss to price impact, or a pool with nothing to pay a seller. | |
| pays | No | ||
| burned | No | ||
| reason | No | Why the answer is not ok, in words an agent can act on. | |
| status | Yes | ok, refused or unknown; unknown is never ok. Refused past the price impact line and on a look-alike token, unknown when the impact did not read. | |
| refunded | No | ||
| agentGate | No | ||
| lpFeePips | No | ||
| priceImpact | No | That figure in words: a percent, or Not read. | |
| hookBlocksTake | No | ||
| poolHoldsQuote | No | false when the pool has no quote currency to pay a seller; null when that did not say. | |
| priceImpactBps | No | How far the trade moves the pool's price, in basis points, by the swap box's sum. null when it did not read, which is never no impact. |