Skip to main content
Glama

STINKBID

prepare_stink_bid

Builds the order(s) for a stink bid: a buy of a stock token that fills only if the price falls depth_pct under today's price. Returns EIP-712 typed data to sign with the maker's own wallet (Permit2 witness transfer), one per rung for a ladder, plus the USDG balance and Permit2 approval check. Nothing moves until a fill; the contract reverts if the maker would get less than the signed minimum.

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": {
      "maker": "<maker>",
      "symbol": "<symbol>",
      "amount_usdg": "<amount_usdg>",
      "depth_pct": "<depth_pct>"
    },
    "name": "prepare_stink_bid"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
makerYesThe wallet that signs and receives the stock token.
rungsNo
symbolYes
fill_onNopool: fill when the pool pays the price. oracle: also wait for the Chainlink price to reach the level.pool
sessionNoclosed: only active while the US stock market is closed.any
depth_pctYesHow far under today's price, in percent. Ladder rungs sit at depth, 2×depth, …
amount_usdgYesTotal size in USDG (split across rungs for a ladder).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full load and does substantial work: it discloses the return payload (EIP-712 typed data, one per rung, plus USDG balance and Permit2 approval check), that no funds move at preparation time ('Nothing moves until a fill'), and the revert guarantee if the maker would receive less than the signed minimum. Gaps remain around chain context, what happens when the balance or approval check fails, and whether the wallet must be authorized for the symbol.

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?

Three tightly packed sentences with zero waste: purpose first, then return shape, then safety/revert behavior. Each sentence carries distinct information an agent needs, and no wording is redundant.

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?

No output schema exists, and the description steps in to describe the return value (typed data per rung, balance, approval check), which is the most important gap closed. For an eight-parameter preparation tool it is nearly complete, though it omits any chain/network context and what the agent should do with the returned payload next.

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 63%, so four parameters are undocumented in the schema; the description adds meaning for `depth_pct` (ladder rungs sit at depth, 2×depth, …) and clarifies `rungs` produces one order per rung. It says nothing about `days`, `fill_on`, `session`, `symbol`, or `maker` beyond the schema, so it only partially compensates for the coverage gap.

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 ('Builds the order(s)') and resource ('stink bid'), then defines the concept: a buy that fills only if price falls `depth_pct` under today's price. It implicitly distinguishes itself from submit_stink_bid by stating it returns unsigned EIP-712 typed data for the maker's own wallet, but never names the submit sibling, so the routing is inferred rather than stated.

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 mechanics: the tool returns typed data plus a USDG balance and Permit2 approval check, which hints at a sign-then-submit flow and pre-checks. However, there is no explicit 'when to use this vs submit_stink_bid' instruction, no statement of prerequisites (e.g., approve USDG/Permit2 first), and no exclusions for when a maker should not use it.

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.