Skip to main content
Glama

Scrooge

Build a limit order

build_limit_order
Read-only

A limit order on 1inch's book: sell sell_amount of sell_token for at least buy_amount of buy_token, until it expires (default 7 days). Returns any transactions first needed (an ETH wrap, an approval for 1inch's protocol covering the wallet's open orders and this one) and the order's EIP-712 typedData: send the transactions, sign typedData with the wallet, then call place_limit_order. 1inch takes its fee from a fill; Scrooge takes none.

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": {
      "sell_token": "<sell_token>",
      "buy_token": "<buy_token>",
      "sell_amount": "<sell_amount>",
      "buy_amount": "<buy_amount>",
      "wallet": "<wallet>"
    },
    "name": "build_limit_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesThe wallet that makes the order and signs it
buy_tokenYesWhat is bought: a symbol (ETH, USDG, SCROOGE, NVDA…) or a contract address on Robinhood Chain
buy_amountYesThe least bought for all of it, as a decimal number such as 0.5
sell_tokenYesWhat is sold: a symbol (ETH, USDG, SCROOGE, NVDA…) or a contract address on Robinhood Chain
sell_amountYesHow much is sold, as a decimal number such as 0.5
expires_in_hoursNoOptional: hours until it expires (default 168, a week)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, and the description is consistent with that: this tool returns payloads rather than mutating state. Beyond the annotations it adds genuinely useful behavior — what the returned transactions include (an ETH wrap, an approval scoped to the wallet's open orders plus this one), the EIP-712 typedData to sign, and the fee split between 1inch and Scrooge.

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?

Three sentences, each carrying distinct information: trade semantics, return contract plus next step, and fee behavior. Dense but front-loaded and free of filler; the parentheticals are the only mild compression cost.

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

Completeness4/5

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

With no output schema, the description carries the return contract and does so well — transactions plus typedData — and it also covers the fee and default expiry. Remaining gaps (behavior when approval already exists, error cases, whether typedData must be signed within a deadline) are modest for a six-parameter builder.

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 100% and every parameter already carries a description, including the symbol-or-address convention and the 168-hour default. The description reinforces the price semantics ('for at least', default 7 days) but adds no syntax, format, or validation detail beyond what the schema states, so the baseline of 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 sentence gives a specific verb and resource ('A limit order on 1inch's book') and immediately defines the trade semantics: sell sell_amount of sell_token for at least buy_amount of buy_token. It also names the follow-up sibling place_limit_order, so an agent can tell this builder apart from the placement tool without opening either schema.

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?

It lays out an explicit three-step workflow — send returned transactions, sign the typedData, then call place_limit_order — which effectively tells the agent when this tool is the right one and what must follow it. It stops short of stating when NOT to use it (e.g. reusing an existing approval) or what happens if the order is never placed.

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