Skip to main content
Glama

pancakeswap-lp-route

pancakeswap_range_plan

Read-only

Replay real swaps to compare PRICE RANGE widths for a PancakeSwap V3 position: fees each width would have earned and how long it stayed in range. Use it after the pool is chosen (pancakeswap_fee_tiers picks the tier); for a position you already hold use pancakeswap_position_look. Read-only, free, no key. For a liquidity provider who has picked a PancakeSwap V3 pool and now has to pick a PRICE RANGE - the decision concentrated liquidity actually forces, and the one every interface answers with a preset. This does not model and does not forecast. It replays: the V3 Swap event carries the liquidity that was active when each trade went through, so a position of a stated size is walked through the swaps that really happened in a live window and asked, at each one, whether it was in range and what share of the active liquidity it was. Returns per candidate width the fees it would have collected, how much of the window it stayed in range, and how many times the price walked out. Impermanent loss is not in it, and it is worst exactly where the fees are best. The window is about an hour and travels with the answer.

Input Schema

NameRequiredDescriptionDefault
quoteNoThe other side of the pair, optional: BNB, USDT, USDC, USD1 or BUSD, or its address. Without it the quote with the deepest V3 pool is used, so pass it whenever a pair was named (CAKE/BNB)
addressYesA BSC token address, or a PancakeSwap V3 pool address to pin the pool
capitalUsdNoSize of the position in dollars, optional - defaults to 1000. It sets your share of the active liquidity at each swap, so the fees depend on it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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, yet the description still adds real value: the data source (V3 Swap event carrying active liquidity per trade), the observation window (~1 hour, travels with the answer), and an explicit limitation (no impermanent loss, no forecasting). It does not cover rate limits or failure modes for an invalid/pinned pool address, which keeps it short of a 5.

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 first sentence is well front-loaded, but the text runs long for a three-parameter tool and repeats itself: the 'picked a pool, now must pick a range' framing appears again after the sibling-routing sentence. The 'does not model and does not forecast / it replays' contrast is useful but phrased redundantly.

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

Completeness5/5

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

With no output schema, the description still enumerates what comes back (per-width fees, fraction of window in range, count of walk-outs) and flags the missing impermanent-loss dimension against fee maximization. The ~1-hour replay window is disclosed so the agent can frame the answer's scope correctly.

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?

Schema description coverage is 100%, so all three parameters (address, quote, capitalUsd) are already documented with defaults and fallback behavior. The description adds only indirect meaning — that position size sets the share of active liquidity and therefore the fees — which the schema also states. Baseline 3 is correct when the schema does the heavy lifting.

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?

Opens with a specific verb and resource: replay real swaps to compare price range widths for a PancakeSwap V3 position, and names the two outputs (fees earned, time in range). It explicitly distinguishes itself from siblings pancakeswap_fee_tiers (tier selection) and pancakeswap_position_look (existing positions), so an agent can route without opening schemas.

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

Usage Guidelines5/5

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

Gives an explicit sequencing rule ('use it after the pool is chosen, pancakeswap_fee_tiers picks the tier') and an explicit exclusion with the alternative ('for a position you already hold use pancakeswap_position_look'). The when-to-use condition is stated twice (pool picked, capital size known), leaving nothing to inference.

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