agent-trade
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AT_EVM_RPC | No | Custom EVM RPC URL. Defaults to public RPC. | |
| PM_API_KEY | No | Derived Polymarket API key. Required for Polymarket trading. | |
| WM_API_URL | No | Whales Market API base URL. Defaults to mainnet. | |
| AT_SOLANA_RPC | No | Custom Solana RPC URL. Defaults to public RPC. | |
| MCP_HTTP_HOST | No | HTTP bind address. | 127.0.0.1 |
| MCP_HTTP_PORT | No | Enable HTTP transport on this port. Defaults to stdio when unset. | |
| PM_API_SECRET | No | Derived Polymarket API secret. Required for Polymarket trading. | |
| WM_AUTH_TOKEN | No | Whales Market auth token for private endpoints. Required for portfolio access. | |
| AT_DAILY_LIMIT | No | Max daily spend (USD). | 200 |
| AT_WALLET_TYPE | No | Wallet type: `solana` or `evm`. | solana |
| PM_PRIVATE_KEY | No | Polygon wallet private key. Required for Polymarket trading. | |
| PM_API_PASSPHRASE | No | Derived Polymarket API passphrase. Required for Polymarket trading. | |
| AGENT_TRADE_VENUES | No | Enabled venues (comma-separated). Defaults to all available. | |
| AT_AGENT_PRIVATE_KEY | No | Agent wallet private key. | |
| AT_SPEND_LIMIT_PER_TX | No | Max spend per transaction (USD). | 50 |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_venuesA | List all available and configured trading venues. |
| search_marketsB | Search and list markets across trading venues. Filter by venue, category, name/symbol. |
| get_marketC | Get detailed information about a specific market/token. |
| get_order_bookB | Get the order book for a market: bids, asks, spread. |
| get_recent_tradesB | Get recent trades for a market or across all markets. |
| tradeB | Create a buy/sell order. Agent mode: validates limits, signs, and executes. User mode: returns preview. |
| cancelC | Cancel an open order/offer. |
| get_positionsC | Get portfolio/positions for your wallet or a specific address. |
| get_ordersC | Get open orders for your wallet or a specific address. |
| wallet_statusB | Get wallet configuration, balance, and spend limits. |
| setup_walletB | Wallet setup guide. Check config, generate a new agent wallet, or show setup instructions. |
| wm_get_token_chartB | Get historical price chart data for a Whales Market token |
| wm_get_market_statsB | Get Whales Market overall statistics and volume data |
| wm_get_wallet_infoC | Get Whales Market wallet info, tier, discount for an address |
| wm_get_upcoming_tokensB | Get upcoming tokens on Whales Market |
| wm_get_leaderboardC | Get Whales Market referral leaderboard and live stats |
| wm_get_networksA | List supported blockchain networks on Whales Market |
| wm_react_to_offerC | Accept/fill an existing offer on Whales Market (agent mode only) |
| wm_cancel_orderA | Cancel an unfilled order on Whales Market (settleCancelled on-chain) |
| wm_check_offer_statusB | Check the status of an offer on Whales Market |
| pm_list_tagsB | List available Polymarket tags/categories for filtering markets |
| pm_get_eventA | Get a full Polymarket event with all its markets by slug |
| pm_derive_api_keyA | Derive Polymarket API credentials from your private key (one-time setup). Requires PM_PRIVATE_KEY. |
| pm_price_historyB | Get price history for a Polymarket market. Returns time series data for trend analysis. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 24 tools
Most tools target recognizable resources, but there is real overlap between generic and venue-specific operations. In particular, cancel vs wm_cancel_order, get_market vs venue-specific market/token tools, and wallet_status vs wm_get_wallet_info require careful reading to choose correctly.
Names are consistently snake_case and mostly follow a verb_noun or prefix_verb_noun pattern, with wm_ and pm_ prefixes clearly marking venue-specific tools. Minor deviations like bare cancel/trade and noun-style wallet_status keep it from being fully uniform.
At 24 tools the surface is heavy and verges on overloaded. The count is somewhat justified because the server spans generic trading plus Whales Market and Polymarket-specific operations, but there is still visible duplication across categories.
Core market, order, position, wallet, and basic trading workflows are covered, and Whales Market has useful offer support. However, gaps remain around personal trade history/order status, order modification, funds movement, and Polymarket-specific trading lifecycle operations beyond market data and API setup.