Skip to main content
Glama

prepare_buy_listing

Marketplace: prepare (unsigned) buying a listing for exactly its ETH price (marketplace_listings shows it). For NFTs pass collection and tokenId; for a weapon pass collection "weapons" and listingId. Refused if the listing is stale, locked or yours.

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

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.
tokenIdNoNFT token id.
listingIdNoWeapon market listing id (collection weapons).
collectionYescompanions, operatives, fighters, crates or portal (or the contract address); or "weapons" for Armory weapons. NOT the Override Disk (Ripples' collection, trades on OpenSea) and NOT mercenaries (locked to the buyer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the load; it does disclose that the result is unsigned, that purchases must match the ETH listing price exactly, and that certain listings are rejected. It does not describe what is returned (presumably an unsigned transaction), nor whether prior token approval is required, which matters for a non-custodial prepare step.

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?

Three tight sentences, front-loaded with the purpose before the parameter routing and the failure cases. Only minor redundancy between 'exactly its ETH price' and the listing reference.

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 four parameters, no annotations, and no output schema, the definition covers purpose, parameter routing, and rejection conditions. The remaining gap is the return value and any approval prerequisite, which the agent would need before signing.

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 the schema baseline already documents each field. The description still adds real routing logic the schema does not express: tokenId is for NFTs and listingId only for weapons with collection 'weapons'. That conditional parameter-usage rule is the definition's main value-add.

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 concrete verb+resource ('prepare (unsigned) buying a listing') with a key qualifier: it prepares rather than executes, and it covers exactly the listing's ETH price. It also routes the agent to sibling marketplace_listings for price discovery, so the agent knows this is not a browse tool.

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 clear when-to-use context (buying an existing listing at its listed price, after checking marketplace_listings) and explicit refusal conditions (stale, locked, or self-owned listings). It falls short of naming alternatives such as prepare_buy_weapon or prepare_buy_crate for non-listing purchases, leaving that discrimination to the caller.

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