Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP server listen host. Default is 127.0.0.1; Docker sets 0.0.0.0.127.0.0.1
PORTNoHTTP server listen port.8787
X402_PAY_TONoRecipient USDC address for x402 paid tools (token_risk and wallet_portfolio). The USDC token account must already exist.
X402_NETWORKNox402 network CAIP identifier. Default is Solana devnet; mainnet is solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp.solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1
X402_RPC_URLNoRPC URL used for x402 payment requirements. Defaults from X402_NETWORK and is never set from SOLANA_RPC_URL.
MAX_TRADE_USDNoMaximum trade size in USD. Set to 'off' to disable. A missing price refuses the trade while the cap is on.1000
CDP_API_KEY_IDNoCoinbase CDP API key ID. When set with CDP_API_KEY_SECRET, CDP is the primary x402 facilitator.
FEE_CHECK_MODENoFee validation mode. 'fail' withholds quotes/transactions when the referral fee is wrong; 'warn' returns them with feeCheck.ok false.fail
SOLANA_RPC_URLNoSolana RPC URL used for data reads and referral account checks. Defaults to the public mainnet-beta RPC.
USAGE_LOG_PATHNoPath to the JSONL usage log. The Docker image default is /data/usage.jsonl./data/usage.jsonl
X402_PRICE_USDNoPrice in USD per paid x402 call for token_risk and wallet_portfolio.0.01
JUPITER_API_KEYNoOptional Jupiter API key sent as x-api-key. Keyless access is rate-limited to about 0.5 requests per second.
PUBLIC_BASE_URLNoPublic origin used for x402 resource URLs and Bazaar metadata when TLS is terminated by a proxy.
MAX_INPUT_AMOUNTNoOptional maximum input amount in base units. If unset, a startup warning is printed.
MAX_SLIPPAGE_BPSNoMaximum allowed slippage in basis points.300
X402_PRICE_GUARDNoBehavior when X402_PRICE_USD is below X402_MIN_FEE_MULTIPLE times the facilitator fee. 'warn' logs a warning; 'refuse' exits at startup.warn
CDP_API_KEY_SECRETNoCoinbase CDP API key secret. When set with CDP_API_KEY_ID, CDP is the primary x402 facilitator.
ADVAN_ALLOWED_HOSTSNoAllowed HTTP hosts when binding a public interface.
MAX_PRICE_IMPACT_PCTNoMaximum absolute price impact percentage. Jupiter's priceImpactPct is treated as a fraction.5
X402_MIN_FEE_MULTIPLENoMinimum multiple of the applicable facilitator fee that X402_PRICE_USD must cover when X402_PRICE_GUARD is enforced.5
JUPITER_REFERRAL_ACCOUNTNoJupiter referral account. If unset, orders are sent with no referral and a startup warning is logged.
JUPITER_REFERRAL_FEE_BPSNoJupiter referral fee in basis points. Allowed range is 50–255; default is 50.50
JUPITER_REFERRAL_REQUIREDNoIf true, refuses to boot without JUPITER_REFERRAL_ACCOUNT and wSOL, USDC, and USDT referral token accounts.false
REFERRAL_MISSING_MINT_MODENoBehavior when a token-to-token route picks a fee mint without a configured referral token account. 'requote' requotes without referral fee, 'fail' refuses, 'warn' returns original with feeCheck.ok false.requote
SWAP_SELF_BROADCAST_DEFAULTNoDefault for build_swap_tx selfBroadcast. When true, JupiterZ routes are excluded and the taker broadcasts the transaction.false
X402_CDP_RECOVERY_INTERVAL_MSNoMilliseconds to wait before probing a failed CDP facilitator again. Default is 5 minutes.300000
JUPITER_REFERRAL_TOKEN_ACCOUNT_SOLNoReferral token account for the wSOL fee mint.
JUPITER_REFERRAL_TOKEN_ACCOUNT_USDCNoReferral token account for the USDC fee mint.
JUPITER_REFERRAL_TOKEN_ACCOUNT_USDTNoReferral token account for the USDT fee mint.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_quoteA

Free Jupiter Swap API V2 quote (GET /swap/v2/order, no taker). Returns amounts, route, slippage, and referral fee fields. Does not return a transaction.

build_swap_txA

Free. Returns an UNSIGNED base64 transaction for the taker wallet to sign. Advan never signs and never holds keys. Default (selfBroadcast false) keeps JupiterZ routes, which need Jupiter POST /swap/v2/execute to add the market-maker co-signature. Pass selfBroadcast true to exclude jupiterz so the taker can broadcast the signed transaction.

token_riskA

Paid token risk report ($0.01 USDC via x402 exact on solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1). Combines RPC mint/freeze authority, Jupiter Tokens V2, and RugCheck. Ordinary MCP clients that cannot pay receive a payment-required error.

wallet_portfolioB

Paid wallet portfolio ($0.01 USDC via x402 exact). SOL plus SPL Token and Token-2022 balances, priced with Jupiter Price V3.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a distinct resource+action: risk report for a token, swap quote, transaction construction, and wallet holdings. token_risk and wallet_portfolio share the paid x402 mechanism but operate on entirely different inputs and outputs, so misselection is unlikely. Descriptions explicitly note free vs paid and what each returns, further reducing confusion.

Naming Consistency3/5

Two tools are verb-first (get_quote, build_swap_tx) while two are noun-first (token_risk, wallet_portfolio), so there is no single predictable pattern. All are snake_case and readable, and the semantic grouping (noun = data report, verb = action) is at least defensible, but an agent cannot infer a name from intent reliably.

Tool Count4/5

Four tools is on the lean side but each earns its place in a focused swap/portfolio workflow, with no redundant or filler tools. The free/paid split is coherent. Slightly under-scoped rather than bloated.

Completeness3/5

The quote→build_tx→external-sign flow is covered and portfolio/risk reads exist, but there is no tool to submit or check transaction status (broadcasting is delegated to the taker with no confirmation path), and no token lookup/metadata or SPL balance query for a specific mint. These gaps are workable but will surface as dead ends for agents verifying outcomes.

Maintenance

ActivityMaintained
ResponsivenessLimited data