Skip to main content
Glama

Hookr

Will this trade go through

hookr_check_trade
Read-onlyIdempotent

Whether 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

NameRequiredDescriptionDefault
sideYesbuy pays the pool's quote currency (ETH, HOOKR, …) for the token; sell pays the token for the quote currency.
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.
walletYesThe wallet that would trade.

Output Schema

NameRequiredDescriptionDefault
getsNo
noteNoWhat the trade should know: its loss to price impact, or a pool with nothing to pay a seller.
paysNo
burnedNo
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

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, but the description adds real context beyond them: the quote runs from the supplied wallet, Wallet Cap/add-ons/gates are evaluated for that wallet, balance is deliberately excluded, and the three outcome states are disclosed with the warning that unknown is never ok. That last point is genuine tri-state behavior an agent could otherwise misread as a soft pass.

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

Conciseness4/5

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

Purpose is front-loaded in the first clause and every subsequent phrase carries information — the wallet-relative simulation, the excluded balance check, and the tri-state outcome. It is dense, with stacked parentheticals, but nothing is redundant.

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

Completeness5/5

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

For a four-required-parameter read-only preflight with an output schema, the description covers what is evaluated, what is skipped, and how to interpret results. Nothing an agent needs to call it or act on the answer is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so side, amount, poolId and wallet are already fully documented with formats and examples. The description adds only contextual framing about the wallet (caps/gates evaluated from it) rather than new semantics or value constraints for any parameter, so the baseline 3 applies.

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

Purpose5/5

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

The opening clause states a specific verb and resource: whether a pool's rules permit a given wallet to trade. It also marks the boundary against the sibling hookr_build_swap by naming what that tool checks and this one does not.

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

Usage Guidelines4/5

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

The division of labor with hookr_build_swap ('checks that' balance) tells an agent this is the rule/eligibility preflight rather than the execution path. It stops short of an explicit 'call this before building a swap' instruction or naming the other gate siblings (hookr_agent_gate, hookr_agent_pass), leaving the ordering to inference.

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