Skip to main content
Glama

hookr_quote_swap

Preview a trade on a Hookr pool: what it would return, and whether the pool's rules let this wallet trade. Preview only, nothing is signed. Amount is in the paying currency and capped for now.

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

Input Schema

NameRequiredDescriptionDefault
sideYes
amountYes
poolIdYes
walletYes0x wallet address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose that this is a non-signing read and that it evaluates pool-level trading rules. It leaves gaps around how the quote is produced, why amounts are 'capped' (the cap is never defined), and there is no error or staleness behavior described.

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?

The core purpose is front-loaded in the first clause and the two-sentence form is efficient. The trailing 'and capped for now' is vague enough to be near-filler, but overall there is little wasted wording.

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?

There is no output schema and no annotations, so the description should do more: it names the two result concepts but not their shape, and it does not explain the amount cap or the rules-check outcome. Adequate to call the tool correctly, but not complete for interpreting results.

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 coverage is only 25% (only wallet is documented), so the description compensates partially: it clarifies that 'amount' is denominated in the paying currency and subject to a cap. It adds nothing about 'side' beyond the enum or about poolId format, leaving two of four parameters under-explained.

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 gives a specific verb ('Preview a trade') and resource ('Hookr pool') and states the two outputs: expected return and whether the pool's rules permit this wallet. 'Preview only, nothing is signed' implicitly separates it from the prepare/execute siblings, though no sibling is named explicitly.

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 only implied: 'Preview only, nothing is signed' suggests running this before a real trade, but the description never says when to prefer it over hookr_prepare_swap or what a failing rules check means for the next step. No exclusions or prerequisites are stated.

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