Skip to main content
Glama

prepare_open_crate

Black Market: prepare (unsigned) opening a crate you hold. One step: the open call burns the crate and pays its prize (an Armory weapon, a bundle of 3 Dispensary items, or rarely the Okami) to you; the prize was fixed by a public drand draw published about 30 seconds after the event ended, so there is no second reveal step once the draw is posted. Refused while the crate is still sealed (with the wait), if you do not hold it, or if it was already opened. If the draw's round has passed but is not yet posted on chain, pass drandSignature (drand's 48 byte signature for that round) to post it in the same call. Costs only gas.

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

Input Schema

NameRequiredDescriptionDefault
walletYesYour own 0x wallet address. Nothing is sent from it; it is used to read your balance and allowance and to simulate.
crateIdYesThe crate token id (my_shop_items lists yours).
contractSetNoOptional: "v2" (live Games Master v2 contracts) or "legacy" (retired original Season 1 contracts). Only needed if you hold the same id in both; otherwise v2 is tried first, then legacy.
drandSignatureNoOptional: 0x plus 96 hex characters, only needed when the draw is passed but not yet posted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/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 so well: it discloses that the open call burns the crate, what the prize can be, that the prize is fixed by a public drand draw with no second reveal step, the exact refusal conditions, and that the call costs only gas. It even explains the escape hatch of supplying drandSignature when the round has passed but is unposted.

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?

The purpose is front-loaded in the first clause, followed by mechanics, failure conditions, and the drand edge case in a logical order. It is dense but nearly every sentence carries information, with only mild redundancy between the "no second reveal step" and "draw is posted" phrasing.

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 prepare-style transaction builder with no output schema, it covers inputs, failure modes, cost, and the unusual drand timing path. The only gap is that it does not state what the prepared unsigned payload is returned as, which matters for chaining into a submit call.

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 100%, so all four parameters are already documented in the schema; the description adds only narrative framing around crateId ownership and the drandSignature timing case. Baseline 3 is appropriate since the schema does the heavy lifting.

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 (unsigned) opening a crate you hold") and frames it within the Black Market domain, so an agent can distinguish it from prepare_buy_crate or unrelated prepare_* siblings without opening the schema.

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 concrete when-not conditions — refused while the crate is still sealed (with the wait), if you do not hold it, or if already opened — which effectively tells the agent it must own the crate first. It stops short of naming the acquisition sibling explicitly, so it is clear context rather than full when/when-not/alternatives guidance.

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