Skip to main content
Glama

simulate-trade

Read-only

Test one buy or one sell of a chosen size for a specific wallet. To find how much of an existing position a holder can actually sell, try several sizes at once with exit-check; for any transaction that isn't a swap of this token, use transaction-preview. Execute a requested-wallet buy or sell on a disposable fork of BNB Smart Chain, Ethereum, Base or Arc. Trades the token's market as a scan finds it: its deepest funded pool on the chain's exchanges (PancakeSwap, Uniswap, Aerodrome and others), against BNB/WBNB or ETH/WETH or against another coin traded through that coin's own pool, else its recorded Uniswap V4 pool (hook included); actual wallet balances, EOA wallets only. Returns receipt status, received amount, the market traded (pool_version, exchange, pool, fee_tier, hooks), router quote shortfall and gas. A V4 quote already includes the hook's cut. A quote shortfall is not a pure tax or price-impact measurement. Sell approval is simulated when needed; no live transaction is sent. Costs $0.02 per successful call in USDC on Base, Polygon, Arbitrum, Avalanche, BNB Smart Chain (USDT) or Solana, paid with x402 in the call's _meta; failed calls are free.

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": {
      "token": "<token>",
      "wallet": "<wallet>",
      "direction": "<direction>",
      "amount": "<amount>"
    },
    "name": "simulate-trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobsc (BNB Smart Chain, the default), eth (Ethereum), base (Base) or arc (Arc)
tokenYesToken
amountYesInput base units: native coin wei (BNB or ETH) for buys, token base units for sells
walletYesWallet being tested; may differ from payer
directionYes
minimum_outNoOptional minimum received in output base units; defaults to zero

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / chain / description
      Previous value: -"bsc (BNB Smart Chain, the default), eth (Ethereum) or base (Base)"New value: +"bsc (BNB Smart Chain, the default), eth (Ethereum), base (Base) or arc (Arc)"
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description reinforces this by stating the trade runs on a disposable fork, that sell approval is simulated, and that no live transaction is sent. It goes further with venue-selection logic (deepest funded pool, V4 pool fallback, hook whose cut is already in the quote), a caveat that quote shortfall is not a tax or price-impact measure, and the x402 pricing model with failed calls free. That said, with the safety profile already carried by annotations and no explicit rate-limit or latency disclosure, the added context is strong but not exhaustive.

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?

Purpose and sibling routing are front-loaded in the first two sentences, and each subsequent sentence carries distinct information (venues, return fields, pricing). It is dense and parenthetical-heavy, with several long run-on clauses, but no sentence is disposable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the description enumerates what is returned (receipt status, received amount, pool_version/exchange/pool/fee_tier/hooks, quote shortfall, gas). Combined with the fork semantics, payment model and caveats, nothing an agent needs to invoke or interpret the result is missing.

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 83%, so the baseline is 3; the description adds meaning beyond it by constraining wallets to EOAs and explaining how the token/wallet pair is resolved to a market. It also clarifies that amount is interpreted as native wei for buys and token base units for sells, complementing the schema, though minimum_out is never mentioned in prose.

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 ('Test one buy or one sell of a chosen size for a specific wallet') and immediately scopes it against two named siblings (exit-check for multi-size exit sizing, transaction-preview for non-swap transactions). An agent can distinguish this from every listed alternative 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 when-to-use routing: one size here, several sizes at once via exit-check for existing positions, and transaction-preview for any non-swap transaction. It also names the eligible chains and the EOA-only wallet constraint, so the selection conditions are complete.

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