Skip to main content
Glama

prepare_store_upgrade

Stores: prepare (unsigned) the fee for moving your store up a tier, paid in ZENI into the reward pool (approve the exact amount, then RewardPool.fund). Only when your sales have earned the tier. After it is mined call store_upgrade_confirm with the transaction hash.

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

Input Schema

NameRequiredDescriptionDefault
tierYes
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.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the important behavior: this returns an unsigned transaction, requires an exact-amount approval followed by RewardPool.fund, and must be mined before confirming. It doesn't state who must sign the unsigned payload or whether the fee is refundable on failure, leaving minor gaps.

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?

Two dense sentences, front-loaded with the action and ending with the required next step. The parenthetical mechanics sentence is information-packed but slightly run-on; nothing is truly wasted.

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, no-output-schema preparation tool, the description covers the purpose, eligibility condition, payment path, and follow-up step. It could say more about the returned unsigned payload and signer expectations, but the essentials for correct invocation are present.

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 50%: wallet is documented in the schema, while tier has only an enum with no description. The description adds meaning for tier ('moving your store up a tier', paid in ZENI) but never explains what storefront vs. flagship imply or how eligibility relates to the parameter, so it only partially compensates for the coverage gap.

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 an unsigned fee payment for moving a store up a tier. It also names the distinct follow-up tool (store_upgrade_confirm) and the payment mechanics (ZENI into the reward pool via RewardPool.fund), so an agent can separate it from the 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 Guidelines4/5

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

Gives a clear triggering condition ('Only when your sales have earned the tier') and the sequencing rule ('After it is mined call store_upgrade_confirm with the transaction hash'). It lacks explicit when-not guidance (e.g., which sibling handles opening or non-eligible cases), but the usage context is unambiguous.

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