Skip to main content
Glama

compute_uniswap_v3_quote

Calculate exact Uniswap V3 swap quotes for concentrated liquidity pools on Base, including sqrtPriceX96 tick math, price impact, and output amounts.

Instructions

Calculates exact sqrtPriceX96 tick mathematics, price impact, and swap output amounts for concentrated liquidity pools on Base. (0.02 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

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. The description mentions 'exact sqrtPriceX96 tick mathematics' and 'price impact' but doesn't disclose whether this is a read-only computation, whether it requires network access, whether it simulates a swap, or what the output format is. The parenthetical '(0.02 USDC on Base L2)' is ambiguous and could mislead an agent into thinking the tool itself charges or transfers USDC. It doesn't clarify side effects, payment requirements, or failure modes.

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

Conciseness3/5

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

The main sentence is reasonably concise and front-loaded with the core action. However, the parenthetical '(0.02 USDC on Base L2)' is cryptic and wastes space without adding clear value. The description is short but not optimally structured because the parenthetical could confuse rather than inform. It earns a 3 because it's compact but contains an unclear element.

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?

Given the tool's complexity (Uniswap V3 concentrated liquidity math, price impact, swap outputs), the description is incomplete. There is no output schema, so the description should explain what the tool returns (e.g., expected output amount, price impact percentage, sqrtPriceX96 after swap). It doesn't mention required inputs like pool fee tier, liquidity, or current tick. The paymentSignature parameter is mentioned but its role is unclear. An agent would struggle to construct a valid payload or interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, but the descriptions are generic: 'Input parameters or JSON string payload for the tool execution' and 'Base L2 USDC micropayment signature or transaction hash for x402 settlement'. The tool description does not explain what fields the payload should contain (e.g., pool address, token amounts, fee tier, tick range). The paymentSignature parameter is mentioned in the schema but the description doesn't clarify whether it's required for all calls or only for paid usage. The description adds minimal value beyond the schema.

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 states a specific verb ('Calculates') and resource ('sqrtPriceX96 tick mathematics, price impact, and swap output amounts for concentrated liquidity pools on Base'). It clearly identifies the domain (Uniswap V3 concentrated liquidity on Base L2) and the outputs (price impact, swap output amounts). However, it doesn't explicitly distinguish itself from the sibling tool 'uniswap_v3_tick_math_precise' or 'calculate_dex_slippage_bounds', which could overlap in purpose. The parenthetical '(0.02 USDC on Base L2)' is confusing and appears to reference a payment amount rather than clarifying the tool's purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to use it instead of 'uniswap_v3_tick_math_precise' or 'calculate_dex_slippage_bounds'. The context of 'Base L2' and 'USDC' is mentioned but not explained as a usage condition. There is no when-to-use or when-not-to-use guidance, and no mention of prerequisites like needing a pool address or current tick.

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