Skip to main content
Glama

prepare_buy_weapon

Armory: prepare (unsigned) the purchase of a Season 1 weapon (id 1 to 12, see shop_info) for ZENI: an exact-amount approve, then buy. Needs the Stash rank the weapon lists. (Season 2 weapons 1 to 6 are prepare_weapon_buy.)

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

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.
weaponIdYes1 to 12.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/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 well: it discloses that the output is unsigned, that the flow is an exact-amount approve followed by a buy, the currency (ZENI), and the rank prerequisite. It does not cover failure modes or what happens if balance/allowance is insufficient, which keeps it below 5.

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?

A single dense sentence with the tool's identity and scope front-loaded, followed by prerequisite and the sibling disambiguation in parentheses. Slightly compressed with stacked parentheticals, but no wasted sentences.

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 low-parameter prepare tool with no output schema and no annotations, it covers currency, prerequisite, id range, unsigned nature, and the sibling routing. Only the return shape (presumably an unsigned transaction) and error conditions are left implicit.

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 coverage is 100%, so both wallet and weaponId are already documented, including the 1 to 12 range that the description repeats. The only added meaning is the pointer to shop_info for weapon selection; otherwise the schema does the work, so baseline 3 applies.

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) the purchase of a Season 1 weapon'), bounds it (id 1 to 12) and explicitly distinguishes it from the Season 2 tool prepare_weapon_buy. An agent can pick this over its closest sibling without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use this for Season 1 weapons, use prepare_weapon_buy for Season 2 weapons 1 to 6, and consult shop_info for details. It also states the gating condition (Stash rank the weapon lists), so the agent knows a prerequisite may block the call.

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