Skip to main content
Glama

mev_pool_check

Read-only

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

NameRequiredDescriptionDefault
poolYesPool: a 0x address of 40 hex characters or a 0x pool id of 64 hex characters. Example: 0x36696169c63e42cd08ce11f5deebbcebae652050
chainNoOne of bnb, ethereum, polygon, avalanche; default bnb. Example: ethereum
windowNoWindow in whole minutes, 1 to 10080, default 1440. Example: 4320

Output 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. Changed3 schema fields changed
    • addedInput schema / properties / chain / description
      Added value: +"One of bnb, ethereum, polygon, avalanche; default bnb. Example: ethereum"
    • addedInput schema / properties / pool / description
      Added value: +"Pool: a 0x address of 40 hex characters or a 0x pool id of 64 hex characters. Example: 0x36696169c63e42cd08ce11f5deebbcebae652050"
    • addedInput schema / properties / window / description
      Added value: +"Window in whole minutes, 1 to 10080, default 1440. Example: 4320"
  2. Changed1 schema field changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"670f7504e3de5031beccee25a2d24e4515f68b893295f6d5b0d3a0665498b2c9"New value: +"25cc80db6d8e9eac73d47a50f7ad6333a21f1972d008a8fed0159de8bfb4b519"
  3. 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"
  4. Added

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the readOnlyHint annotation by disclosing cost (1 cent per call), the four supported chains, the window bounds, and a genuine data limitation (no per-order victim trade sizes). Missing only depth on the result's shape, which the output schema covers.

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?

Front-loaded with the purpose and constraints, which is good, but the opening sentence is a single sprawling enumeration of return metrics that duplicates the output schema. That list should be trimmed so the operational constraints (pool type, window, chains, price) carry the weight.

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

Completeness4/5

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

With an output schema present and full schema coverage, the description supplies the remaining essentials: accepted pool identifier types, window bounds and default, chain coverage, per-pool granularity caveat, and cost. Only the absence of sibling routing guidance keeps it short of complete.

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 pool, chain and window are already documented with formats and examples. The description restates the same facts (address or 32-byte v4/Infinity pool id, window default 1440 max 10080) and adds only the qualifier about which pool types accept a bytes32 id.

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?

Names a specific verb (check) plus a tightly scoped resource: MEV activity for one pool on one chain, pre-trade. The metric list (sandwiched/backrun/frontrun/JIT counts, victims per hour, attackers, profit medians) makes it unmistakably different from generic flow tools like mev_pressure or victim_flow.

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

Usage Guidelines4/5

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

Establishes the when ('Pre-trade MEV check') and a clear scope exclusion ('Per pool, not per order: victim trade sizes are not stored'), plus the covered chains and price. It never names an alternative sibling tool or states when not to use it, so routing still requires inference.

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