Skip to main content
Glama

Hookr

Quote a trade

hookr_quote
Read-onlyIdempotent

Quotes 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

NameRequiredDescriptionDefault
sideYesbuy pays the pool's quote currency (ETH, HOOKR, …) for the token; sell pays the token for the quote currency.
payerNoThe wallet that would pay. Needed on an agents-only pool, which refuses a quote without it.
amountYesHow much the trade pays in, in the paying currency's own units as a decimal string, e.g. "0.05".
poolIdYesThe pool's 32-byte Uniswap v4 PoolId, 0x and 64 hex characters.

Output Schema

NameRequiredDescriptionDefault
getsNo
noteNoWhat the trade should know: its loss to price impact, or a pool with nothing to pay a seller.
paysNo
sideNo
burnedNo
poolIdNoThe pool's 32-byte Uniswap v4 PoolId.
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, 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.
refundedNo
agentGateNo
lpFeePipsNo
priceImpactNoThat figure in words: a percent, or Not read.
hookBlocksTakeNo
poolHoldsQuoteNofalse when the pool has no quote currency to pay a seller; null when that did not say.
priceImpactBpsNoHow 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description's job is to add market-behavior context, and it does: it discloses that the quote is computed through Hookr's quoter, that every Hook Block's take plus the burn and LP fee are included, and that a payer's Wallet Cap and pool rules constrain the result. It stops short of stating quote freshness/expiry or whether the quote is a simulation against current state.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the core action and the returned fee breakdown front-loaded before the payer caveat. Every clause carries information an agent would otherwise have to guess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be enumerated, and the safety annotations remove the burden of explaining side effects. What remains thin for a quoting tool is freshness and downstream flow — whether the quote can go stale and that a separate build tool actually executes it — which keeps this below a 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description earns a point by adding meaning the schema does not carry — that supplying payer subjects the quote to that wallet's Wallet Cap and the pool's own rules, which tells the agent the payer choice can change the result, not just gate access. It adds nothing further about amount units or poolId formatting, but the schema already handles those.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Quotes a trade on a Hookr pool') and scopes the output precisely: every Hook Block's take, the burn, and the LP fee. That is far more informative than the title alone, but it never names a sibling (e.g. hookr_check_trade or hookr_build_swap) to mark what this tool is *not*, so differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: an agent can infer this is a pre-trade preview, and the closing line gives a conditional rule ('Pass payer to quote as that wallet'), which is guidance on invocation rather than on tool selection. There is no explicit when-to-use, when-not-to-use, or pointer to the build/check siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources