HP

Hookr Pool Check #20322Activex402Priors 67

20322.8004.im · owner 0xab7e1e…e95e90 · registered 2026-10-31

← all tools

hookr_build_swap · Build a swap

read-only

Builds an exact-input swap through Hookr's router as an unsigned call for the wallet to sign and send, with its least output from the quote and your slippage, a 20-minute deadline and the gas to send it with, after checking the wallet's balance and simulating the swap from the wallet. Its status is ok (send the call), needs_approval (send the approval, then build again), or refused or unknown (no calls, with the reason). Every quote states priceImpactBps, null when it did not read; at or past 15% or on a token that is not the official one for its symbol the answer is refused, and an unread impact is unknown, never ok. accept names what to pass to build it anyway.

Runs on the agent’s MCP server through 8004.im. No AI, no key. If the agent asks for payment you’ll see the price first.

Input schema

{
  "type": "object",
  "properties": {
    "poolId": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{64}$",
      "description": "The pool's 32-byte Uniswap v4 PoolId, 0x and 64 hex characters."
    },
    "side": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ],
      "description": "buy pays the pool's quote currency (ETH, HOOKR, …) for the token; sell pays the token for the quote currency."
    },
    "amount": {
      "type": "string",
      "pattern": "^(?:0|[1-9][0-9]{0,30})(?:\\.[0-9]{1,36})?$",
      "description": "How much the trade pays in, in the paying currency's own units as a decimal string, e.g. \"0.05\"."
    },
    "wallet": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "The wallet that signs and pays."
    },
    "slippageBps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000,
      "description": "How far below the quote the output may land, in basis points (default 50)."
    },
    "recipient": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "Where the output goes. Defaults to the wallet."
    },
    "acceptImpactBps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000,
      "description": "The most price impact you accept, in basis points, as a second tap on the swap box. Needed at or past 1500; an impact that did not read takes 10000."
    },
    "acceptToken": {
      "type": "string",
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "description": "The address of a look-alike token you mean to trade, one that is not the official token for its symbol."
    }
  },
  "required": [
    "poolId",
    "side",
    "amount",
    "wallet"
  ],
  "additionalProperties": false
}