Skip to main content
Glama

prepare_buy_crate

Black Market: prepare (unsigned) buying sealed crate(s) for ETH: one transaction sending exactly price x qty (shop_info shows the price). Uses the live Games Master v2 sale, only while the Black Market event is live (otherwise answers not_on_sale and points to gm_flash_info and prepare_gm_flash_mint). Each crate holds one prize decided by a public draw when the market closes. Max 20 per call.

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>"
    },
    "name": "prepare_buy_crate"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoHow many (default 1).
walletYesYour own 0x wallet address. Nothing is sent from it; it is used to read your balance and allowance and to simulate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/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 it well: it declares the operation is unsigned preparation, that the exact ETH amount equals price x qty, the hard cap of 20 per call, the gating condition with its not_on_sale failure response, and the outcome mechanics (one prize per crate, decided by public draw at market close). The wallet's read-only role is documented in the schema, so no contradiction or gap remains serious.

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?

Front-loaded with the core action and payment asset, then layered with preconditions and outcome details; nearly every clause carries information. It is dense with parentheses and reads as one long block rather than discrete sentences, which slightly hurts scannability.

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 two-parameter preparation tool with no output schema, the description covers cost derivation, limits, gating, and the failure case. It does not describe what the returned unsigned transaction payload looks like, which an agent assembling a signing flow would want.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: qty multiplies into the transmitted ETH amount (price x qty) and is bounded by the "Max 20 per call" limit, neither of which the schema states. It does not add anything about the wallet parameter beyond what the schema says.

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?

Names a specific verb+resource+payment asset: "prepare (unsigned) buying sealed crate(s) for ETH", and specifies the transaction is exactly price x qty. This distinguishes it from sibling prepare_open_crate (opening) and from prepare_gm_flash_mint, which it names as the alternative path.

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?

Gives a clear precondition (only while the Black Market event is live), tells the agent where the price comes from (shop_info), and routes to gm_flash_info and prepare_gm_flash_mint when the event is not live. It stops short of stating how this differs from prepare_open_crate, the closest sibling dealing with the same crates.

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