Skip to main content
Glama

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.

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": {
      "address": "<address>"
    },
    "name": "pancakeswap_range_plan"
  }
}

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. Changed1 schema field changed
    • addedInput schema / properties / address / examples
      Added value: +[
      +  "0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82"
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds materially beyond the readOnly/destructive annotations: it declares the method (replaying actual V3 Swap events, no modeling or forecasting), the data window ('about an hour'), the return dimensions (fees, share of time in range, number of exits), the explicit exclusion of impermanent loss, and the free/no-key access profile. The distinction between replay and forecast is exactly the kind of behavioral context annotations cannot convey.

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?

The core purpose and the sibling routing are front-loaded in the first sentence, which is correct. However, some editorializing ('the decision concentrated liquidity actually forces, and the one every interface answers with a preset') and the repeated restatement that it replays rather than models add length without new decision-relevant information.

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

Completeness4/5

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

For a simulation-style tool with no output schema, the description does well: it describes the three return dimensions and the approximate window length, and explicitly excludes impermanent loss so an agent does not over-claim results. The notable remaining gap is that the set of candidate widths evaluated is never specified, so the agent cannot tell what granularity of answer to expect.

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 the schema already documents address, quote, and capitalUsd thoroughly, including the default of 1000 and the 'deepest V3 pool' fallback. The description adds no parameter-specific guidance beyond what the schema states; it only implicitly reinforces that position size affects fee share, which the capitalUsd description already covers. Baseline 3 applies.

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: 'Replay real swaps to compare PRICE RANGE widths' for a PancakeSwap V3 position, and explicitly distinguishes itself from two named siblings (pancakeswap_fee_tiers for tier selection, pancakeswap_position_look for a held position). An agent can route to it without opening the schema.

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') and a named alternative for the adjacent case ('for a position you already hold use pancakeswap_position_look'). It also frames the decision context (LP has picked a pool, now must pick a range), leaving no inference needed about when this is the right tool.

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