Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
EXCHANGENoThe name of the cryptocurrency exchange to connect to (e.g., mexc, binance, bybit, okx).mexc
LOG_LEVELNoThe level of logging detail (e.g., info, debug, error).info
MAX_PAIRSNoMaximum number of pairs to scan during market analysis.100
MARKET_TYPENoThe type of market to trade in: 'spot' or 'swap' (perpetual futures).spot
MEXC_SECRETYesYour API secret for the exchange (required for authenticated operations).
MEXC_API_KEYYesYour API key for the exchange (required for authenticated operations).
TRADING_MODENoThe trading mode: 'demo' for simulated trading (safe for testing) or 'live' for real trading.demo
MIN_CONFIDENCENoMinimum Technical Analysis signal confidence (1-100) required for a recommendation.50
MIN_VOLUME_USDTNoMinimum 24h volume in USDT required for a pair to be analyzed by the scanner.50000

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_balanceA

Get account balance. Returns free, used, and total balance for all currencies or a specific one.

get_positionsA

Get open positions with P&L (futures/perpetual only)

get_tickerA

Get current price for a trading pair (e.g., BTC/USDT or BTC/USDT:USDT for perpetual)

get_multiple_tickersA

Get ticker data for multiple symbols at once (max 50 symbols)

get_orderbookC

Get order book depth for a trading pair

get_ohlcvC

Get historical candlestick data (OHLCV). Timeframes: 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w

get_spreadC

Get bid-ask spread for a trading pair

get_all_pairsC

Get all trading pairs with volume and spread data

place_orderA

Place a buy or sell order. Amounts and prices must be strings (e.g., "0.001", "89600.25"). In demo mode, orders are simulated.

cancel_orderB

Cancel an open order by order ID

get_open_ordersB

Get all open orders, optionally filtered by symbol

cancel_all_ordersB

Cancel all open orders, optionally for a specific symbol

set_leverageB

Set leverage for perpetual futures trading (e.g., BTC/USDT:USDT with 10x leverage). Supports isolated/cross margin.

get_leverageC

Get current leverage for a perpetual futures symbol

analyze_symbol_taA

Run full technical analysis on a symbol using RSI, MACD, EMA, Bollinger Bands, and Stochastic. Returns buy/sell/hold recommendation with confidence score.

get_indicatorC

Get a specific technical indicator value (rsi, macd, ema, bollinger, stochastic)

find_ta_signalsB

Scan trading pairs for technical analysis signals. Returns buy/sell opportunities ranked by confidence.

scan_spreadsC

Scan for wide bid-ask spreads across trading pairs. Useful for market-making opportunities.

scan_best_opportunitiesC

Comprehensive market scan combining spread, volume, and TA signals. Returns the best trading opportunities.

get_modeA

Get current trading mode (demo/live)

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/TigranPetosyants/trading-mcp-server'

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