Skip to main content
Glama

prepare_pancakeswap_v3_swap

Prepare a user-signable exact-input swap against one allowlisted Base PancakeSwap V3 pool. Insight obtains a pinned quote and re-verifies the Factory, QuoterV2, Pool, and Router runtime identities before returning unsigned approval and swap calldata. It never receives a key, signs, relays, or broadcasts a transaction.

Input Schema

NameRequiredDescriptionDefault
amountInYesExact USDC input amount; the tool never handles native ETH or reverse direction
profileIdNoReviewed PancakeSwap V3 pool id; defaults to Base USDC/USDT 0.01%
recipientYesUSDT recipient
maxSlippageBpsYesMaximum quote shortfall in bps
deadlineUnixSecondsYesUser-selected short Unix deadline

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so: it discloses that a pinned quote is obtained, that Factory/QuoterV2/Pool/Router runtime identities are re-verified, that the return is unsigned approval plus swap calldata, and explicitly that it never receives a key, signs, relays, or broadcasts. This is a complete safety and output profile.

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

Conciseness5/5

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

Two sentences, zero filler, and the operative purpose is front-loaded before the behavioral and safety disclosures. Each sentence contributes distinct 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 5-parameter tool with full schema coverage and no output schema, the description covers purpose, verification behavior, return shape (unsigned approval and swap calldata), and non-custodial guarantees. It omits failure modes such as quote unavailability or allowlist rejection, which an agent preparing a transaction would benefit from knowing.

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 amountIn, recipient, maxSlippageBps, deadlineUnixSeconds, and profileId. The description adds only directional context (exact-input, USDC in / USDT out, single allowlisted pool) and no per-parameter semantics beyond what the schema provides. 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?

The first clause states a specific verb, resource, and scope: prepare a user-signable exact-input swap against one allowlisted Base PancakeSwap V3 pool. That is enough to distinguish it from sibling preparation tools such as prepare_aerodrome_slipstream_swap (different venue) and from read-only market tools like get_pancakeswap_v3_market.

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?

The description establishes clear context for use: exact-input direction, single allowlisted Base PancakeSwap V3 pool, unsigned output for a user to sign. It does not, however, name a sibling alternative or state when NOT to use it (e.g., use get_pancakeswap_v3_market for quotes-only, or the Aerodrome variant for a different venue).

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.