Skip to main content
Glama

prepare_purchase

Prepare the non-custodial transaction package to BUY a listing (or accept an offer): ordered approvals + Seaport fulfillOrder calldata + a fresh contents snapshot. prepared.summary quotes the CURRENT price (Dutch auctions interpolate, asOf says when); the approval grants approveBaseUnits — slightly above the quote on a decaying order, never above maxTotalBaseUnits — and Seaport charges the exact interpolated amount at fill. On auctions, prepared.cleanup is an optional post-settlement tx that zeroes the residual allowance. The agent's own wallet signs and submits — this never signs or holds keys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderHashYes

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations present, the description bears full burden and delivers richly: it discloses the custody model ('The agent's own wallet signs and submits — this never signs or holds keys'), Dutch-auction interpolation with asOf timing, the approval grant logic (approveBaseUnits slightly above quote, never above maxTotalBaseUnits), and the optional auction cleanup transaction that zeroes residual allowance.

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?

Four dense sentences, each carrying distinct information: purpose and output composition, pricing/approval behavior, auction cleanup, and custody safety. Purpose is front-loaded in sentence one, with no filler and no restating of schema facts.

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?

Given the tool's complexity — no annotations, no output schema, one undocumented parameter — the description covers the return package (summary with asOf quote, approvals, calldata, snapshot, optional cleanup) and key edge-case behavior. Remaining gaps are minor: orderHash provenance/validation and error conditions, plus reliance on Seaport domain jargon.

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?

The single required parameter (orderHash) has 0% schema coverage, and the description never explicitly defines it or states where to obtain it (e.g., from get_listings or get_listing_details). It compensates only implicitly by repeatedly referring to 'the order' (decaying order, maxTotalBaseUnits), so an agent must infer that orderHash identifies the listing/offer being purchased.

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 — 'Prepare the non-custodial transaction package to BUY a listing (or accept an offer)' — and enumerates the package's components: ordered approvals, Seaport fulfillOrder calldata, and a fresh contents snapshot. The buy/fill semantics ('fulfillOrder calldata') distinguish it from sibling prepare_offer, which creates offers rather than filling them.

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?

Provides clear usage context: use when buying a listing or accepting an offer, which contrasts with the get_*/list_* read siblings and the other prepare_* write tools. However, it never explicitly names an alternative or states when-not-to-use, leaving exclusive routing to inference.

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.

TDQS

A3.9/5.0
Disambiguation4/5

Most tools map cleanly to distinct resources and actions, with the prepare_* group differentiated by their operation suffix. The main ambiguity is get_listing_details, whose description says 'one order' while the name implies a listing, so it could be confused with get_orders or get_listings.

Naming Consistency4/5

All tool names are lowercase snake_case and follow a verb-first shape using get/list/search/prepare/subscribe/unsubscribe, which is predictable. Minor inconsistencies exist: get_ and list_ are both used for read operations, and prepare_finalize/prepare_cancel pair the prepare_ prefix with a verb rather than a noun.

Tool Count5/5

15 tools is at the high end but each one earns its place: market discovery, order listing, transaction preparation, purchase/offer/cancel flows, Basename finalization, and notification management. There is no obvious padding or missing category that would make the count feel bloated.

Completeness4/5

The core marketplace lifecycle is well covered: create listings/offers, buy/accept, cancel, finalize, and query listings/orders/positions/trades/names/notifications. The most notable gap is a lack of a synchronous, first-class query for offers received on an owned listing or position; discovery of incoming offers relies on notifications or knowing the bidder's address.

Resources