Skip to main content
Glama

chain_v4_pool

Read-only

Uniswap v4 pool state — Live Uniswap v4 pool state straight from the StateView contract on base, ethereum, arbitrum, optimism or polygon: poolId (keccak of the PoolKey), sqrtPriceX96, tick, mid price both ways, active liquidity, LP and protocol fee. Without fee it checks all four standard tiers (0.01/0.05/0.3/1%) and ranks pools by liquidity. Required: chain, token0, token1 (0x address, ETH for native, or a common symbol). Optional: fee (e.g. 3000), tick_spacing, hooks (0x hook contract). 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>",
      "token0": "<token0>",
      "token1": "<token1>"
    },
    "name": "chain_v4_pool"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
token0YesETH
token1YesUSDC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. Beyond that the description adds real context: the on-chain source contract, the returned fields (poolId, sqrtPriceX96, tick, mid price both ways, liquidity, LP/protocol fee), the fee-tier fallback ranking behavior, and a disclosed per-call price ($0.003 USDC via x402). That cost and fallback disclosure is meaningful behavior an agent would not get from annotations.

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?

It is front-loaded with the resource and data source, then requirements, then optional params, then price — a sensible order. It is dense and somewhat run-on, and the optional-parameter sentence describes fields the schema doesn't expose, which is wasted or misleading text.

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?

For a 3-param read tool with no output schema, it is nearly complete: it enumerates the returned fields, the source, the chain set, and the cost. The main gap is the mismatch between the described optional parameters (fee, tick_spacing, hooks) and the schema, which lacks them, leaving the actual accepted inputs slightly ambiguous.

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 descriptions are only one-word examples ('base', 'ETH', 'USDC'), so the description carries the real semantic load: token0/token1 accept a 0x address, ETH for native, or a common symbol, and fee is given as an example (3000). It does add value beyond the schema, though it also describes optional fee/tick_spacing/hooks parameters that are absent from the input schema, which muddies rather than clarifies the actual call signature.

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 description opens with a specific verb+resource ('Live Uniswap v4 pool state') and names the data source (the StateView contract) and supported chains, so an agent knows exactly what it retrieves. It never names a sibling such as chain_dex_pool or chain_aerodrome_quote to contrast with, 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?

It conveys a useful usage rule — omit fee to sweep all four standard tiers and get pools ranked by liquidity — which strongly implies the right call pattern for discovery. It does not state when to prefer this over a sibling quote/pool tool, nor any exclusions, so guidance is implied rather than explicit.

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