Skip to main content
Glama

uniswap_v3_tick_math_precise

Calculate Uniswap v3 square root prices, tick conversions, and exact fee compounding with arbitrary-precision Q64.96 fixed-point arithmetic.

Instructions

Arbitrary-precision Q64.96 fixed-point math calculator for Uniswap v3 square root price $(\sqrt{P})$, tick-to-price conversion, and exact liquidity fee compounding. (0.035 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral context. It does reveal a notable cost trait ('0.035 USDC on Base L2') and promises 'arbitrary-precision' and 'exact' compounding, which are useful behavioral details. However, it does not mention whether the operation is read-only, whether paymentSignature is mandatory, what the return value looks like, or any error/edge-case behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is a single, jargon-loaded but information-dense sentence that front-loads the core purpose and ends with a concise cost note. Every element—arbitrary precision, Q64.96, specific operations, and price—serves a distinct role, with no filler or repetition.

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

Completeness2/5

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

Despite the technical complexity and absence of an output schema, the description does not explain the expected payload structure, required fields, return format, or how paymentSignature fits into execution. An agent has enough to guess the domain but not enough to confidently construct a valid call without additional assumptions. The cost disclosure is helpful but does not fill the operational gaps.

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 schema has 100% description coverage, but the parameter descriptions are generic ('Input parameters or JSON string payload'). The tool description partially compensates by indicating what the payload should relate to (tick/price/fee compounding) and that paymentSignature is a Base L2 USDC micropayment. It does not specify required payload fields, format, or examples, so the added semantic value is moderate.

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 identifies a specific domain (Uniswap v3 tick/price math) and lists concrete operations: sqrt price, tick-to-price conversion, and liquidity fee compounding. It does not use an explicit verb like 'calculates' or 'converts', but the noun phrase 'math calculator for' is clear enough. It also implicitly distinguishes itself from the sibling compute_uniswap_v3_quote by focusing on mathematical conversion rather than quoting.

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 usage context is implied through the listed operations: an agent can infer this tool is for arbitrary-precision tick math rather than quote simulation or slippage bounds. However, there is no explicit guidance about when NOT to use it or which sibling tool to prefer for related tasks like compute_uniswap_v3_quote or calculate_dex_slippage_bounds.

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