Skip to main content
Glama

Hookr

Build a limit order fill

hookr_build_fill
Read-onlyIdempotent

Builds the unsigned call that fills one open limit order from a wallet, simulated from it, with the gas the book asks for; the wallet pays the gas and is credited the order's bounty on the book. It returns ok with the call and, when the wallet has bounties to claim, the call that claims them, or refused or unknown with the reason and no call.

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": {
      "order": "<order>",
      "wallet": "<wallet>"
    },
    "name": "hookr_build_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYesThe order's id, as hookr_open_orders lists it.
walletYesThe wallet that fills the order, pays the gas and is credited the bounty.

Output Schema

NameRequiredDescriptionDefault
callsYesUnsigned calls, in the order to send them.
orderNo
bountyNo
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, refused or unknown.
gasCostNo
claimBountiesNo
bountiesToClaimNo
bountyCoversGasNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, which already mark it read-only, idempotent, open-world, and non-destructive, the description explains that the call is unsigned, simulated, uses book-quoted gas, makes the wallet pay gas and receive the bounty, and returns ok with an optional claim call or refused/unknown with a reason. This is substantial behavioral context for a builder tool.

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 purpose is front-loaded in the first clause, and the second sentence covers return behavior without extraneous content. The first sentence is dense and could be split for readability, but no sentence is wasted.

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 two-parameter builder with full schema descriptions, rich annotations, and an output schema, the description is complete enough: it covers purpose, simulation/gas behavior, wallet economics, and return outcomes. An agent does not need additional context to invoke it correctly.

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 both parameters are already well documented. The description reinforces that the wallet pays gas and is credited the bounty, but adds no new parameter syntax, constraints, or format details beyond what the schema provides.

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 description uses a specific verb ("Builds") and resource ("unsigned call that fills one open limit order from a wallet"), making clear this is the fill builder rather than order creation or cancellation. The phrase "fills one open limit order" distinguishes it semantically from sibling build tools such as hookr_build_limit_order and hookr_build_cancel_order.

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 by the name and the schema reference to hookr_open_orders, which tells the agent where to get the order id. However, it does not explicitly say when to choose this over alternatives or state exclusions, so guidance is present but only implicit.

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