Skip to main content
Glama

Scrooge

Build an OTC purchase

build_otc_buy
Read-only

Buys amount (or "all") of the token from a sell offer (fixed-N or market-N, as list_otc names it). A market offer is bought at a venue's price signed now, its spread on it and never under its floor, so send within a minute. ETH is paid with the transaction; USDG is approved for exactly the cost.

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": {
      "offer": "<offer>",
      "amount": "<amount>",
      "wallet": "<wallet>"
    },
    "name": "build_otc_buy"
  }
}

Input Schema

NameRequiredDescriptionDefault
offerYesThe offer, as list_otc names it: fixed-3 or market-0
amountYesHow much of the token to buy, as a decimal number, or "all"
walletYesThe address that will sign and send the transactions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing pricing mechanics (venue price signed at call time, spread applied, never below the floor) and settlement behavior (ETH paid with the transaction, USDG approved for exactly the cost). The only soft spot is that "Buys" and "send within a minute" sit awkwardly next to readOnlyHint=true; a reader must infer that the tool constructs the transactions rather than executing them, which is implied by the build_* name and the wallet parameter description.

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 dense sentences, front-loaded with the action and offer source before the market-offer timing constraint and payment details. Worth flagging is the grammatically tangled clause "its spread on it and never under its floor," which takes a re-read to parse but costs little space.

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 build tool there is no output schema, and the description never says what comes back (unsigned transactions/calldata, how many, what the agent must do with them), which is the key missing piece for correct invocation. It compensates well on the input and timing side, but a caller is left guessing the shape of the result.

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 all three parameters are already documented in the schema, including the offer naming convention and the "all" option for amount. The prose restates the same semantics without adding new detail such as amount precision, denomination, or wallet constraints, so the baseline 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?

States a specific verb and resource: buying `amount` (or "all") of a token from a sell offer, with the offer reference taken from `list_otc`. The phrase "from a sell offer" implicitly separates it from `build_otc_buy_offer` (creating an offer) and `build_otc_sell_to_bid` (selling into a bid), so an agent can pick it without opening another 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?

Gives clear operating context: market offers must be submitted within a minute because the price is signed now, and the offer identifier is meant to come from `list_otc`. It does not state explicit when-not conditions or name the sibling to use for creating an offer instead, so it stops short of full routing 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