Skip to main content
Glama

evm_get_pool_info

Retrieves DEX liquidity pool reserves, token prices, total liquidity, and LP token details across EVM chains to assess pool health before adding or removing liquidity.

Instructions

Get liquidity pool information including reserves, price, and LP token details.

Queries DEX pair contract for current pool state. Shows token reserves, exchange rate, total liquidity, and LP token address. Essential before adding/removing liquidity or analyzing pool health. No gas cost.

CRITICAL RULES:

  • Read-only operation, no transaction

  • Pool must exist (tokens must have been paired)

  • Reserves change with every swap

  • Price calculated from reserve ratio

  • LP token represents share of pool

PARAMETERS:

  • chain: EVM chain where pool exists (required)

  • dex: DEX protocol name (required)

  • tokenA: First token in pair (required)

  • tokenB: Second token in pair (required)

EXAMPLES: ✅ Get USDC/WETH pool on Polygon QuickSwap: {chain: "polygon", dex: "quickswap", tokenA: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174", tokenB: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}

OUTPUT: • reserveA, reserveB: Token amounts in pool • priceAtoB, priceBtoA: Exchange rates • lpTokenAddress: LP token contract • totalSupply: Total LP tokens • share: Your pool ownership percentage

SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559

CRITICAL GAS CONSIDERATIONS:

  • Ethereum: High gas costs, use gas oracle for timing

  • Polygon/BSC: Very low gas, safe for frequent transactions

  • Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum

  • Avalanche: Dynamic fees, can spike during congestion

  • Always check gas price before executing transactions

TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.

Running on Linux.

LINUX-SPECIFIC NOTES:

  • Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)

  • Python 3 is typically 'python3' command

  • GNU tools are standard

  • Use 'xdg-open' command to open files/applications

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": {
      "chain": "<chain>",
      "dex": "<dex>",
      "tokenA": "<tokenA>",
      "tokenB": "<tokenB>"
    },
    "name": "evm_get_pool_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
dexYesDEX name (e.g., "uniswap", "quickswap", "traderjoe", "pancakeswap")
chainYesEVM chain to query
tokenAYesFirst token address (0x...)
tokenBYesSecond token address (0x...)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 declares read-only/no-transaction behavior, 'No gas cost', that reserves change with every swap, that price derives from reserve ratio, and what the LP token represents. The large gas-cost and 'check gas price before executing transactions' block is irrelevant and mildly confusing for a read-only call, preventing 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.

Conciseness2/5

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

The core is front-loaded, but roughly half the text is irrelevant: a gas-consideration section for a read-only call, a testnet-token/faucet note, and an entirely off-topic 'LINUX-SPECIFIC NOTES' block about apt/yum/xdg-open. These sections do not earn their place and dilute the actionable content.

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?

There is no output schema, so the OUTPUT section listing reserveA/reserveB, priceAtoB/priceBtoA, lpTokenAddress, totalSupply, and share is genuinely valuable and fills that gap. However, the trailing gas, testnet, and Linux sections add no information an agent needs to invoke this tool and make the definition noisier than it needs to be.

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 coverage is 100%, so the schema already documents all four parameters with descriptions and a chain enum; baseline is 3. The description adds the worked example with real addresses and the supported-chain list, but nothing about address normalization, checksum requirements, or how tokenA/tokenB ordering affects the returned prices.

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?

The opening line states a specific verb and resource: 'Get liquidity pool information including reserves, price, and LP token details,' and the follow-up names the underlying action ('Queries DEX pair contract for current pool state'). It does not differentiate from nearby siblings such as evm_get_dex_quote or evm_get_impermanent_loss, so it falls short of a 5.

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?

'Essential before adding/removing liquidity or analyzing pool health' gives concrete when-to-use context, and 'Pool must exist (tokens must have been paired)' states a precondition. There is no explicit when-not guidance or named alternative for price-only queries, which keeps it at 4.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools