Skip to main content
Glama

M2MCent x402 Universal MCP Gateway

mev-sandwich-protection-mcp

[0.050 USDC] Base L2 Private Mempool & Anti-Sandwich Shield: Simulates pending decentralized exchange swaps against malicious searcher bots on Base L2. Computes optimal slippage tolerance boundaries and private RPC routing paths to prevent MEV exploitation.

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": {
      "tokenIn": "<tokenIn>",
      "tokenOut": "<tokenOut>",
      "amountUsd": "<amountUsd>"
    },
    "name": "mev-sandwich-protection-mcp"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenInYesToken being sold on Base L2
tokenOutYesToken being bought on Base L2
amountUsdYesSwap amount in USD value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the price (0.050 USDC) and that the operation is a simulation, which suggests a non-mutating call, but it never states whether any transaction is submitted, what auth/payment flow the USDC fee requires, or whether results are advisory only. The mention of "private RPC routing paths" leaves execution semantics genuinely ambiguous.

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 sentences, price front-loaded, no filler or repetition. Slight buzzword density ("shield", "exploitation") but every clause contributes scope or function.

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?

The description does name the outputs (slippage boundaries, routing paths), which compensates for the absent output schema. However, for a paid, security-critical tool with no annotations, it omits the payment mechanics and whether the call is purely advisory, leaving an agent short of what it needs to invoke confidently.

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 description coverage is 100%, so tokenIn, tokenOut and amountUsd are already fully documented with types, patterns and examples. The description adds no extra meaning such as decimal handling, chain assumptions beyond Base, or how amountUsd is converted at simulation time. Baseline 3 applies.

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?

Uses specific verbs ("simulates", "computes") against a named resource (pending DEX swaps on Base L2) and names the threat model (searcher bots, MEV). An agent can tell this is a pre-trade simulation/advisory tool rather than an executor. It does not differentiate itself from the very similar sibling anti-sandwich-slippage-mcp, which is a real ambiguity.

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?

No explicit when-to-use or when-not-to-use guidance, and no alternative named despite a near-duplicate sibling. The pre-swap context is only implied by "pending" and "prevent MEV exploitation"; the agent must infer that it should be called before submitting a swap.

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.