Skip to main content
Glama

Swap Quote (Read-Only)

pumpfun_quote_swap
Read-only

Read-only price quote for a pump.fun AMM (PumpSwap) swap. No signing or tx sending. One of inputMint/outputMint must be wSOL (So11111111111111111111111111111111111111112). Only GRADUATED coins have an AMM pool; for a coin still on its bonding curve use get_bonding_curve instead. Pricing runs on the pool effective quote reserves (quote vault balance + pool.virtual_quote_reserves, a SIGNED i128 that is commonly negative because PumpSwap v2 trades keep waiting protocol and creator fees in the vault and subtract them there); the base side is the raw base vault balance. Returns amountOut, priceImpactBps, route, expiresAtMs, plus the reserves the quote was computed from so the number can be reproduced. Use this to size a trade on a graduated coin, or to measure its pool depth, before executing anywhere.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNomainnet
amountInYesInput amount in raw base units (lamports for SOL).
inputMintYesInput token mint (base58).
outputMintYesOutput token mint (base58).
slippageBpsNoSlippage tolerance in basis points (default 100 = 1%).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
routeYesAMM pool address the quote routes through (base58)
amountOutYesExpected output amount in raw base units
expiresAtMsYesEpoch ms after which the quote is stale
base_reserveNoRaw base vault balance. Unchanged by the virtual-reserve rollout.
quote_reserveNoRaw quote vault balance, before virtual reserves are added. Includes protocol and creator fees waiting for a sweep, so it overstates liquidity on its own; price on effective_quote_reserve.
priceImpactBpsYesPrice impact in basis points
virtual_quote_reservesNoPool.virtual_quote_reserves, a SIGNED i128 serialized as a decimal string. Positive values add depth held outside the vault; negative values remove fees that sit in the vault waiting for a sweep (common since the PumpSwap v2 trades). Parse it as a signed integer: never unsigned, never clamped to 0, never absolute-valued.
effective_quote_reserveNoquote_reserve + virtual_quote_reserves (signed addition). This is what the quote is priced against; the program guarantees it is never negative.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / effective_quote_reserve / description
      Previous value: -"quote_reserve + virtual_quote_reserves. This is what the quote is priced against."New value: +"quote_reserve + virtual_quote_reserves (signed addition). This is what the quote is priced against; the program guarantees it is never negative."
    • changedOutput schema / properties / quote_reserve / description
      Previous value: -"Raw quote vault balance, before virtual reserves are added."New value: +"Raw quote vault balance, before virtual reserves are added. Includes protocol and creator fees waiting for a sweep, so it overstates liquidity on its own; price on effective_quote_reserve."
    • changedOutput schema / properties / virtual_quote_reserves / description
      Previous value: -"Pool.virtual_quote_reserves. Quote-side liquidity the pool carries outside its vault. 0 on non-launchpad pools."New value: +"Pool.virtual_quote_reserves, a SIGNED i128 serialized as a decimal string. Positive values add depth held outside the vault; negative values remove fees that sit in the vault waiting for a sweep (common since the PumpSwap v2 trades). Parse it as a signed integer: never unsigned, never clamped to 0, never absolute-valued."
  2. Changed4 schema fields changed
    • addedOutput schema / properties / base_reserve
      Added value: +{
      +  "description": "Raw base vault balance. Unchanged by the virtual-reserve rollout.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / effective_quote_reserve
      Added value: +{
      +  "description": "quote_reserve + virtual_quote_reserves. This is what the quote is priced against.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / quote_reserve
      Added value: +{
      +  "description": "Raw quote vault balance, before virtual reserves are added.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / virtual_quote_reserves
      Added value: +{
      +  "description": "Pool.virtual_quote_reserves. Quote-side liquidity the pool carries outside its vault. 0 on non-launchpad pools.",
      +  "type": "string"
      +}
  3. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.