Skip to main content
Glama

pancakeswap-lp-route

pancakeswap_best_route

Read-only

For an agent about to swap on PancakeSwap, and for the two questions it has to answer before signing. FIRST: which of the up-to-five pools the pair lives in actually returns the most AT THIS SIZE, quoted by the venue itself rather than ranked by depth - the deepest pool is regularly not the cheapest one for the trade being made. SECOND: what comes back if the proceeds are sold straight back on the same route, with the transfer tax (measured from executed trades, or simulated on chain when there was no trade to measure: transfer_tax.source says which) applied to the amounts carried between the legs, because the tax is taken outside the pool where no quoter can see it. Returns the best route, what every other route would have cost, the round trip with and without the tax, and the slippage this size really needs. It is not a safety certificate and does not use the word: it cannot see an owner who has not acted yet, and it says so.

Input Schema

NameRequiredDescriptionDefault
usdNoTrade size in dollars, optional - defaults to 250
addressYesA BSC token address, or a PancakeSwap pool address to pin the pair

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark it read-only, and the description adds substantial context beyond them: how the tax is derived (executed trades or on-chain simulation, flagged by transfer_tax.source), why the deepest pool isn't always cheapest, and a stated limitation that it cannot see an owner who hasn't acted yet. That is unusually rich disclosure of both derivation method and blind spots.

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 key point (best route at this size, plus round-trip tax) is front-loaded, but the prose is dense and meandering, with emphatic capitals and a self-referential closing aside about the word 'safety' that could be trimmed without losing 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?

With no output schema, the description carries the return-value burden and does list what comes back (best route, per-route costs, round trip with/without tax, required slippage). Given the tool's analytic complexity, that is sufficient, though it never specifies the response shape or units.

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

Parameters4/5

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

Schema coverage is 100%, so the parameters are already documented. The description still adds meaning by stressing that results are size-dependent ('most AT THIS SIZE'), explaining why the usd parameter matters, and noting the address can pin a pair via a pool address.

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?

It states a specific operation: quoting the best of up to five PancakeSwap pools for a given trade size, plus a round-trip sell-back with transfer tax and slippage. The wording clearly separates it from the other PancakeSwap siblings (fee tiers, position look, range plan) by focusing on pre-swap route selection.

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

Usage Guidelines4/5

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

It sets an explicit moment ('about to swap... before signing') and an explicit non-use ('not a safety certificate'), which steers the agent away from treating it as a rug/preflight check. It doesn't name another sibling tool as the alternative, so it stops short of a full routing instruction.

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