Quote a trade
hookr_quoteQuotes a trade on a Hookr pool through Hookr's quoter, with every Hook Block's take, the burn and the LP fee. Pass payer to quote as that wallet (its Wallet Cap and the pool's rules apply).
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>"
},
"name": "hookr_quote"
}
}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. | |
| payer | No | The wallet that would pay. Needed on an agents-only pool, which refuses a quote without it. | |
| 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. |
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 | ||
| side | No | ||
| burned | No | ||
| poolId | No | The pool's 32-byte Uniswap v4 PoolId. | |
| 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. |