Skip to main content
Glama

chain_v3_tick_math

Read-only

Uniswap v3 tick math — Offline Uniswap v3/v4 concentrated-liquidity math: convert between tick, sqrtPriceX96 and human price (token1 per token0, decimal-adjusted). Give ONE of tick=, price= or sqrt_price_x96= plus decimals0= and decimals1= (default 18); fee= 100|500|3000|10000 (default 3000) sets tick spacing for nearestUsableTick and the containing range with its price bounds. Example tick=196240 with USDC(6)/WETH(18) = about 3005 USDC per ETH. Price: $0.001 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": {
      "tick": "<tick>",
      "decimals0": "<decimals0>",
      "decimals1": "<decimals1>"
    },
    "name": "chain_v3_tick_math"
  }
}

Input Schema

NameRequiredDescriptionDefault
tickYes196240
decimals0Yes6
decimals1Yes18

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 and destructiveHint=false, so the description's main added value is that the computation is offline (no RPC round-trip) and costs $0.001 USDC via x402 — a genuine cost disclosure an agent needs before calling. The 'Offline' claim sits in mild tension with openWorldHint=true, but the fee-tier/tick-spacing behavior and worked example add real context beyond the 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?

Front-loaded with the purpose, then inputs, then a concrete USDC/WETH example, then cost. Dense but every clause carries information; only the pricing sentence sits slightly awkwardly appended to a math description.

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?

For a computation tool with no output schema, the description never states what is returned — presumably tick, price, sqrtPriceX96, nearestUsableTick and range bounds, but the shape is left implicit. Combined with the description/schema parameter mismatch, an agent has gaps to close before invoking reliably.

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?

The description adds substantial meaning — mutual exclusivity of tick/price/sqrt_price_x96, decimals defaults, the fee tier set that drives nearestUsableTick and range bounds — but the schema only declares tick, decimals0 and decimals1, so the advertised price=, sqrt_price_x96= and fee= parameters do not exist in the schema. An agent following the prose could attempt invalid arguments; the schema's own 'descriptions' are bare literal examples rather than semantics.

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?

States a specific verb and resource — convert between tick, sqrtPriceX96 and human price — with explicit direction ('token1 per token0, decimal-adjusted') and v3/v4 scope. It is clearly distinguishable from the sibling chain_v3_position, which deals with positions rather than raw math.

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?

The description prescribes the input pattern ('Give ONE of tick=, price= or sqrt_price_x96=') and notes the tool is offline, which implies when it is appropriate. However, it never states when to prefer this over a sibling such as chain_v3_position or chain_dex_pool, and gives no exclusions or failure conditions.

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