Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
X402_API_BASE_URLNoOverride API URLhttps://x402-api.fly.dev
X402_WALLET_PRIVATE_KEYNoPrivate key for auto-pay (e.g. 0x...). If set, x402-fetch handles payments automatically.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_crypto_prices

Get live cryptocurrency prices and top 24h movers. Returns BTC, ETH, SOL prices plus top gainers/losers. Costs 0.001 USDC per call (x402 micropayment on Base). Data sourced live from CoinGecko.

get_gas_prices

Get current gas prices across multiple chains: Ethereum, Base, Polygon, and Arbitrum. Returns slow/standard/fast tiers in gwei and estimated USD cost. Costs 0.001 USDC per call (x402 micropayment on Base).

get_dex_quotes

Compare swap quotes across DEXes: Uniswap, SushiSwap, and 1inch. Returns best price, price impact, liquidity, and estimated fees for each venue. Costs 0.002 USDC per call (x402 micropayment on Base).

scan_token

Perform a security scan on a token contract. Detects rug-pull risks, honeypot patterns, ownership concentration, mint authority, and other red flags. Costs 0.003 USDC per call (x402 micropayment on Base).

track_whales

Analyze whale activity and holder concentration for a token. Returns top holders, Gini coefficient, whale alerts (large recent buys/sells), and distribution breakdown. Costs 0.005 USDC per call (x402 micropayment on Base).

scan_yields

Scan top DeFi yield opportunities across protocols: Aave, Compound, Morpho, Lido, Pendle, and more. Filter by chain, asset, and minimum TVL. Returns APY, TVL, risk score, and protocol details. Costs 0.005 USDC per call (x402 micropayment on Base).

get_funding_rates

Get perpetual futures funding rates across 6 venues: Hyperliquid, dYdX v4, Aevo, GMX, Drift, and Vertex. Returns per-8h funding rate, annualized APR, predicted rate, open interest, and next funding time for each venue. Also returns ranked arbitrage opportunities (long low-rate venue, short high-rate venue) with spread in bps and annualized carry. Costs 0.008 USDC per call (x402 micropayment on Base).

profile_wallet

Generate a full portfolio profile for an Ethereum/Base wallet address. Returns token holdings, NFTs, DeFi positions, transaction history summary, PnL estimate, and risk profile score. Costs 0.008 USDC per call (x402 micropayment on Base).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fernsugi/x402-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server