Skip to main content
Glama

build_offer_txs

Returns the ordered transactions (approve, postOffer) to post an offer. Amounts in whole token units.

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": {
      "wallet": "<wallet>",
      "giveToken": "<giveToken>",
      "giveAmount": "<giveAmount>",
      "wantToken": "<wantToken>",
      "wantAmount": "<wantAmount>"
    },
    "name": "build_offer_txs"
  }
}

Input Schema

NameRequiredDescriptionDefault
walletYesEVM address
giveTokenYesEVM address
wantTokenYesEVM address
giveAmountYes
wantAmountYes
durationSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does add real value: it discloses that the return is an *ordered* sequence (approve must precede postOffer) and that amounts are in whole token units rather than base units. It omits whether transactions are unsigned calldata, whether the approve step can be skipped when allowance exists, and any chain/permission context.

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?

Two short sentences, front-loaded with the return value and the operation sequence, with the unit convention immediately after. No filler.

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

Completeness2/5

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

Six parameters, no annotations, and no output schema: the description should therefore describe the shape of the returned transaction objects (target, data, value) since the agent must consume them. It names only the two operation labels and leaves durationSeconds undocumented, which is thin for a builder tool whose entire product is its return value.

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 50%: wallet, giveToken, and wantToken are documented as EVM addresses, while giveAmount, wantAmount, and durationSeconds have no schema description. The description partially compensates by stating amounts are in whole token units, which is critical for giveAmount/wantAmount, but durationSeconds remains entirely unexplained in both places.

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 (returns ordered transactions to post an offer) and even names the constituent operations, approve and postOffer. It doesn't explicitly distinguish itself from build_accept_txs or the other build_* siblings, but the stated action is specific enough to separate it in practice.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance, and no mention of alternatives. The agent must infer from the tool name alone that this is the offer-posting path rather than the accept, register, or token-creation paths.

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