Skip to main content
Glama

Scrooge

Build a limit order cancel

build_cancel_limit_order
Read-only

Cancels one of the wallet's open limit orders on 1inch's protocol, by its hash from list_limit_orders.

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_hash": "<order_hash>",
      "wallet": "<wallet>"
    },
    "name": "build_cancel_limit_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesThe order maker
order_hashYesThe order's hash

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior1/5

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

The description asserts that the tool cancels an open order, a state-changing effect, while annotations declare readOnlyHint=true. Nothing in the description explains that this only builds an unsigned cancel payload that must be signed and broadcast separately, so an agent is misled about side effects. This is the same pattern as a write verb paired with readOnlyHint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler: the verb, the resource, the protocol, and the hash source all appear in order of importance. Nothing is redundant.

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?

For a two-parameter tool with full schema coverage and existing annotations, the essential lookup is present, but the build-vs-execute distinction is never stated and no output behavior is described. The definition is adequate but leaves the most consequential detail for the agent to guess.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning by tying order_hash to the values returned by list_limit_orders and by implying wallet is the maker whose orders are being cancelled. That provenance hint is more than the schema says on its own.

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: cancels one of the wallet's open limit orders on 1inch's protocol, and names the identifier used (the order hash). An agent can distinguish this from build_limit_order (creates) and place_limit_order (submits) without opening a 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?

Explicitly routes the agent to list_limit_orders as the source of the required order_hash, which is the key prerequisite for calling this tool. It does not state when not to use it (e.g., the follow-up submission step), so it stops short of full when/when-not guidance.

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