Skip to main content
Glama

mev_pool_check

Pre-trade MEV check of one pool on one chain: how many of its swaps were sandwiched, backrun, frontrun or JIT-attacked in the window, victims per hour, distinct attackers and the most active ones, sandwich, backrun, frontrun and JIT rows with a 0 gwei attacker leg, attacker profit where measured with its median, the least the sandwich victims lost, and the newest attack. pool required: a pool contract address, or the 32-byte pool id of a Uniswap v4 or PancakeSwap Infinity pool; window in minutes, default 1440, max 10080. Per pool, not per order: victim trade sizes are not stored. Chains covered: bnb, ethereum, polygon, avalanche. Price: 1 cent per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
poolYes
chainNo
windowNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
poolNo
rowsNo
chainNo
errorNo
rulesNo
byTypeNo
sourceNo
dataGapsNoPresent only when the window of the answer overlaps a recorded data gap. Figures inside each listed period are incomplete. periods are the recorded gaps (end null while still open); atCall is measured against the window of this call and is left out of meta.contentHash.
generatedNo
lastEventAtNo
zeroGasRowsNo
lastAttackAtNo
ruleSegmentsNo
topAttackersNo
attackedSwapsNo
windowMinutesNo
attackedPerHourNo
sandwichVictimLossUsdMinNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"670f7504e3de5031beccee25a2d24e4515f68b893295f6d5b0d3a0665498b2c9"New value: +"25cc80db6d8e9eac73d47a50f7ad6333a21f1972d008a8fed0159de8bfb4b519"
  2. Changed2 schema fields changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"e5b4290024a229f2bdf97f8fc6a0079c3fe13b77267f41fdcffeb8b26aa1c41e"New value: +"670f7504e3de5031beccee25a2d24e4515f68b893295f6d5b0d3a0665498b2c9"
    • changedInput schema / x-lexicon / version
      Previous value: -"0.1.0"New value: +"0.2.0"
  3. 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 full burden and does well: it discloses a key limitation ('Per pool, not per order: victim trade sizes are not stored'), the exact chain coverage, and a per-call price of 1 cent. It omits auth/permission requirements and any rate-limit detail, so it falls short of a 5.

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-loads the purpose, then packs constraints into one dense block with zero filler. However, it enumerates many return fields that the existing output schema already covers, adding length the structured data makes partially redundant.

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?

Given a 3-param tool with an output schema, an agent has everything it needs: what is checked, the required pool format, window bounds, chain coverage, cost, and the per-pool granularity caveat. Nothing material to correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does: pool (contract address or 32-byte Uniswap v4 / PancakeSwap Infinity pool id), window (minutes, default 1440, max 10080), and the four allowed chains. Every parameter gains meaning the raw schema lacks.

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?

Names a specific verb+resource ('Pre-trade MEV check of one pool on one chain') and scopes it to a single pool/chain, which separates it from pool-agnostic siblings like mev_intel or mev_pressure. It never names an alternative explicitly, so it stops short of full sibling differentiation.

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 context of use, and the description supplies defaults, max window, supported chains and price. It gives no explicit when-to-use/when-not guidance and never points to a competing MEV sibling for a different need.

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