Skip to main content
Glama

chain_dex_pool

Read-only

DEX pool state and spot price — Read a Uniswap v3-style (concentrated liquidity: Uniswap, Sushi v3, Aerodrome Slipstream, Pancake v3) or v2-style (constant product: Uniswap v2, Sushi, Aerodrome/Velodrome incl. stable flag) pool on ethereum, base, arbitrum, optimism or polygon: token0/token1 (symbol, decimals, pool balances), fee tier, tick, sqrtPriceX96, active liquidity or reserves, and the spot price both ways. pool= required, chain= default ethereum. 404 if the address is not a pool (Uniswap v4 PoolManager pools are not supported). Price: $0.003 USDC (Base, via x402).

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>",
      "pool": "<pool>"
    },
    "name": "chain_dex_pool"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolYes0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640
chainYesethereum

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

The annotations already declare readOnly/openWorld/non-destructive, and the description adds substantial context on top: the x402 micropayment cost ($0.003 USDC on Base), the 404 failure mode for non-pool addresses, and the v4 exclusion. That is exactly the kind of operational detail annotations cannot carry.

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?

Purpose and price are front-loaded, then a dense clause lists supported pool styles, chains and return fields. It is a single long sentence that packs a lot of necessary detail, though the protocol enumeration runs slightly long and could be broken up for scanability.

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?

With no output schema, the description fully compensates by naming the returned values (token symbols/decimals/balances, fee tier, tick, sqrtPriceX96, liquidity, both-way spot price). Defaults, error semantics and cost are all present, so an agent can call it correctly without further inference.

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 is 3, but the description adds real meaning beyond the schema's terse example values: it enumerates the supported chains and states the ethereum default for chain and that pool must be a pool contract address. The only gap is format/token-pair syntax for the pool argument.

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?

The description opens with a specific verb and resource ('DEX pool state and spot price — Read a Uniswap v3-style ... or v2-style ... pool') and enumerates the exact protocols, chains and returned fields. An agent can immediately tell this reads pool state and price, distinct from balance/price-feed siblings.

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?

It gives clear operating context: pool is required, chain defaults to ethereum, a 404 means the address is not a pool, and Uniswap v4 PoolManager pools are explicitly unsupported. It stops short of naming an alternative tool for the unsupported cases, so it is strong but not fully explicit about substitutes.

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