Skip to main content
Glama

prepare_offer

Prepare a BID/offer on a position: returns the Seaport order to sign (EIP-712), the currency approval needed, and how to submit it. The agent reads its Seaport counter, signs, and POSTs the signed order — settlement stays on Seaport. The buyer wallet must hold the offer's outlay (price + its fee share) when it submits; an unfunded offer is rejected (insufficient_balance), and one that later loses its funds or allowance is hidden from the book until they return.

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": {
      "marketId": "<marketId>",
      "currencySymbol": "<currencySymbol>",
      "offerAmount": "<offerAmount>",
      "buyer": "<buyer>"
    },
    "name": "prepare_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoname markets only, e.g. 'alice' or 'alice.base.eth' — tokenId is derived
buyerYes0x address that will sign and fund the offer
tokenIdNorequired for token markets (e.g. vehydx)
marketIdYes
offerAmountYeshuman amount the seller nets, e.g. '750' — must be positive
durationDaysNo
currencySymbolYesone of the market's settlementCurrencies (see list_micro_markets). A symbol resolves per market, so the same symbol can name different contracts: 'AERO' is the NEW Aero token (0x3f5b…a4Ee) on saero and the legacy Aerodrome token (0x9401…8631) on veaero. Check the address in list_micro_markets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / currencySymbol / description
      Previous value: -"one of the market's settlementCurrencies (see list_micro_markets)"New value: +"one of the market's settlementCurrencies (see list_micro_markets). A symbol resolves per market, so the same symbol can name different contracts: 'AERO' is the NEW Aero token (0x3f5b…a4Ee) on saero and the legacy Aerodrome token (0x9401…8631) on veaero. Check the address in list_micro_markets."
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the returned artifacts, the off-chain signing flow with settlement remaining on Seaport, the funding precondition, the specific failure (insufficient_balance), and the post-condition that unfunded or de-allowanced offers drop out of the book. Remaining gaps are auth requirements and which tool actually performs the POST step.

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, front-loaded with the purpose then the agent workflow then the funding constraint; no filler wording. Density is high but each sentence carries distinct information, so nothing significant could be cut without loss.

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?

For a 7-parameter, 4-required preparation tool with no output schema and no annotations, the description compensates by describing the return payload and submission steps in prose. It stops short of detailing the response shape or naming the submission endpoint, which leaves a small residual gap for an agent driving the whole flow.

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 71%, so the schema already documents most fields, including the per-market currencySymbol resolution caveat and the name/tokenId split. The description adds only the buyer-side funding meaning (outlay = price + fee share), which is useful but modest over the schema baseline.

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 opens with a specific verb and resource ("Prepare a BID/offer on a position") and spells out what the call returns (Seaport EIP-712 order, currency approval, submission path). The word "BID" implicitly separates it from prepare_listing and prepare_purchase, but no sibling is named, so an agent must infer the boundary.

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 through the workflow (read counter, sign, POST) and the funding prerequisite, so an agent knows the context in which to call it. There are no explicit when-to-use/when-not statements, no named alternatives, and no note on when to prefer prepare_purchase or prepare_listing instead.

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