Skip to main content
Glama

Base Swap Simulator & Risk Gate

simulate_base_swap

Run a live zero-day Base (eip155:8453) atomic buy->approve->sell round-trip swap simulation via eth_call state overrides across Uniswap V3 (0.01/0.05/0.30/1.00%), Uniswap V2 and Aerodrome V2, plus opcode-aware bytecode/proxy audit. Free 3/day demo per IP; unlimited custom-size calls via x402 at /api/v1/simulate-swap ($0.005 USDC).

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

Input Schema

NameRequiredDescriptionDefault
tokenYesBase ERC-20 token contract address (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.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 execution happens via eth_call state overrides (implying a non-mutating simulation), names the exact venues and fee tiers exercised, and states the quota (3/day per IP) and paid path ($0.005 USDC via x402). It stops short of saying whether results include revert reasons, price impact, or gas estimates, which is the main remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The verb and resource are front-loaded, but the sentence is overloaded with marketing language ('live zero-day'), a full fee-tier enumeration, and pricing/endpoint copy that reads more like sales material than agent guidance. The audit clause appended to a swap-simulation tool adds length without adding decision value.

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

Completeness3/5

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

For a one-parameter tool with no annotations and no output schema, the description adequately covers what is executed and the access model, but it never says what comes back — per-venue success/failure, revert data, amounts, or price impact — which is exactly what an agent needs to interpret a simulation result. Complete on the call side, incomplete on the return side.

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?

The single 'token' parameter is fully documented by the schema, so the baseline is 3 and the description adds no format or constraint detail beyond it. Worse, 'unlimited custom-size calls' implies a size parameter that does not exist in the schema, which could mislead an agent about what it can control.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Run ... simulation') and resource ('atomic buy->approve->sell round-trip swap' on Base), enumerating the venues and fee tiers covered. It is clear what the tool does, but the trailing 'plus opcode-aware bytecode/proxy audit' clause blurs its scope against the sibling audit_base_bytecode without saying how the two differ.

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

Usage Guidelines2/5

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

There is no explicit statement of when to use this versus audit_base_bytecode or check_base_wallet, and no prerequisites (e.g., whether the token must have liquidity on one of the listed venues). The free-tier and x402 pricing sentences describe cost and access, not when-to-use guidance, so an agent must infer selection from the tool name alone.

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