Skip to main content
Glama

hookr_prepare_swap

Build ONE unsigned swap call through Hookr's router for your own wallet to sign and send. Checks the wallet's balance and simulates it first. Amount and slippage are capped; risky trades are refused, not overridden. Nothing is signed or sent here.

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_prepare_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideYes
amountYes
poolIdYes
walletYes0x wallet address
recipientNo0x wallet address
slippageBpsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

No annotations are supplied, so the description has to carry the full behavioral burden, and it discloses a clear safety profile: balance check, pre-execution simulation, capped amount and slippage, and refusal rather than override of risky trades. It also explicitly states no signing or sending occurs, which is the key non-destructiveness signal. It omits failure modes such as what happens when a simulation fails or what object is returned for signing.

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?

Four short sentences, each carrying a distinct fact, and the core action is front-loaded before the safety conditions. It does not pad the description with repetition. Slightly more front-loading of the negative behavior ("nothing signed or sent") could improve scannability, but overall the description is tight.

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

Completeness3/5

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

With six parameters, four required, no annotations, and no output schema, an agent needs enough detail to build a valid request and know what comes back. The description covers the risk and simulation model well but leaves the request-format gaps (amount units, poolId source, slippage defaults), and it gives only an implicit notion of what is returned. That makes it adequate overall rather than complete.

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

Parameters2/5

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

Schema coverage is only 33%: only wallet and recipient have descriptions, which is redundant with the description's "your own wallet" framing. The amount string's units (decimal or base units) are never clarified, poolId's source is unstated, and slippageBps's default and valid range are not given. The only added meaning is "Amount and slippage are capped," which does not resolve how to format either value, and the recipient's role in relation to "your own wallet" is unclear.

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?

States a specific verb and resource: "Build ONE unsigned swap call through Hookr's router." The scope qualifiers (one, unsigned, your own wallet) tell an agent this is a transaction-construction step, not a quote or an execution. It never names a sibling such as hookr_quote_swap, so the agent must infer the distinction from the phrase "unsigned swap call."

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?

The phrase "for your own wallet to sign and send" and "Nothing is signed or sent here" imply the intended stage of the workflow: you call this when you intend to execute a swap. There is no explicit statement about first calling a quote tool, or about what to do when the simulation or risk check refuses the trade. The implicit guidance is workable but the agent has to infer it.

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