Skip to main content
Glama

gate_swap

Pre-trade GO / HOLD / BLOCK gate for a Base ERC-20 swap: honeypot/sellability + admin-control checks + Uniswap v3 liquidity vs. your trade size. Returns a top-level sized_verdict one-liner (decision + pool-depth % + max-safe size + round-trip breakeven + exit recovery, read in one shot) AND the full decision-grade sizing — per $100 / $1k / $10k / $50k (and your exact notional_usd): entry-slippage + exit-simulation (net USD recovered vs lost to slippage), round-trip breakeven move %, and max_safe_notional_usd. Cost: $0.005 USDC per call via the shared MCP payment gate (the direct HTTP endpoint GET /gate/swap is $0.008 — MCP tools/call is gated at a flat $0.005 per request).

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": "gate_swap"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNodefault buy
tokenYes0x-prefixed ERC-20 contract on Base mainnet
notional_usdNointended trade size in USD (default 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/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 the exact cost ($0.005 USDC per call vs. $0.008 on the direct HTTP endpoint), the payment-gate mechanism, and precisely what the response contains. It stops short of stating that the operation is read-only/non-mutating or any latency/rate-limit behavior, which matters for a paid call.

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?

Front-loaded with the decision framing, then returns, then cost — a sensible order. Dense but mostly earns its length because there is no output schema to describe the rich return payload. The parenthetical comparing MCP vs. direct HTTP pricing is slightly redundant detail for a caller who is already using the MCP tool.

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?

No output schema exists, and the description fully compensates by naming the top-level sized_verdict one-liner and each sizing field (entry slippage, exit simulation, round-trip breakeven %, max_safe_notional_usd). Combined with explicit cost and scope (Base mainnet ERC-20), an agent has everything needed to decide and invoke correctly.

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 baseline would be 3; the description earns an increment by explaining what notional_usd actually buys — the exact notional is sized alongside the $100/$1k/$10k/$50k tiers, producing entry slippage, exit simulation, and max_safe_notional_usd. The buy/sell `side` parameter is never discussed in the description, leaving that one to the schema.

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-and-resource: a pre-trade GO/HOLD/BLOCK gate for a Base ERC-20 swap, enumerating the checks performed (honeypot/sellability, admin controls, Uniswap v3 liquidity vs. trade size). It is clearly not a generic token-security scan, but it never names sibling gate_swap_preview or chain_token_security, so the agent must infer which gate variant to call.

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

Usage Guidelines3/5

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

"Pre-trade" implies the moment to use it, and the pricing sentence implies a paid, decision-grade call versus something thinner. But there is no explicit when-not guidance, no mention that a gate_swap_preview sibling exists, and no stated prerequisites (e.g., wallet/payment setup required before the $0.005 charge).

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.