Skip to main content
Glama

Uniswap v3 price impact

uniswap_price_impact
Read-only

Quote a single Uniswap v3 pool on-chain to get amount out, price impact, ticks crossed and gas estimate before swapping.

Instructions

On-chain Uniswap v3 QuoterV2 quote for a single pool: amount out, mid vs execution price, price impact, price after, ticks crossed, gas estimate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feeNo100, 500, 3000 or 10000
chainYes
tokenInYes
amountInYeshuman units, e.g. '10'
tokenOutYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds real behavioral value beyond that by disclosing that this is an on-chain QuoterV2 call and enumerating the returned quantities (amount out, mid vs execution price, price impact, ticks crossed, gas estimate), which matters given there is no output schema.

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?

A single front-loaded sentence that packs the operation and its outputs without filler. The dense output list is appropriate rather than padding, though the colon-separated enumeration reads as a fragment list.

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 5-parameter tool with 40% schema coverage and no output schema, the description covers the return values reasonably but leaves gaps: supported-chain behavior, token addressing, fee defaulting, and single-pool vs routed quote limitations are unaddressed.

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 only 40% (fee and amountIn are documented, but chain, tokenIn and tokenOut are not), so the description bears extra burden. It does not explain token address format, chain values, or that fee may default when omitted; 'single pool' only vaguely hints that pool identity is required.

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 names a specific verb and resource: an on-chain Uniswap v3 QuoterV2 quote for a single pool, and enumerates the computed quantities. It is unambiguous against siblings like bridge_quotes or dex_volumes, though it never explicitly contrasts itself with them.

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 phrase 'for a single pool' implies the tool is scoped to one pool rather than multi-hop routing, which is a mild usage constraint. However, there is no explicit when-to-use, when-not, or named alternative, so the agent must infer applicability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.