Skip to main content
Glama

shaniu_prepare_buy

Prepare an unsigned buy transaction that fills one or more sell orders. Computes exact BNB cost. Single order uses the market contract; multiple orders use the cart contract (buyMany) in one tx.

Input Schema

NameRequiredDescriptionDefault
fillsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does add real value: the transaction is unsigned (caller must sign/submit), cost is computed exactly in BNB, and multi-fill goes through buyMany in one tx. It omits failure modes (order already filled), whether approval or allowances are needed, whether fills reserve the listing, and the expiry/validity of the unsigned tx.

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 short sentences, front-loaded with the action, then cost semantics, then the contract-routing rule. No redundant restatement of the name and nothing wasted.

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 transaction-preparation tool with no annotations and no output schema, the description covers what it does but not what it returns (unsigned tx payload, target address/chain) or what the caller must do next. Adequate to select the tool, thin for correct end-to-end invocation.

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 0% at the top level; only the nested id and amountSHANIU fields carry inline descriptions. The description partially compensates by explaining that fills target sell-order ids and that BNB cost is computed, but it does not state the unit/semantics of amountSHANIU or the 50-item cap.

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: 'Prepare an unsigned buy transaction that fills one or more sell orders.' It also clarifies routing (market contract vs cart buyMany), which distinguishes this from the prepare_claim/prepare_list siblings. It never explicitly names those siblings, so differentiation 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?

The single-vs-multiple order condition tells an agent which contract path is taken, but that is implementation detail rather than selection guidance. There is no explicit when-to-use, no when-not-to-use, and no pointer to siblings such as prepare_list when the agent only wants to list rather than buy.

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.