get_wallet_address | Returns the public Solana wallet address derived from the TRADEROUTER_PRIVATE_KEY environment variable, and triggers the persistent WebSocket connecti | |
build_swap | Builds an unsigned Solana swap transaction via POST /swap. Returns the transaction as base58 — the caller must decode, sign locally, re-encode as base | |
submit_signed_swap | Submits a fully-signed, base64-encoded Solana transaction via POST /protect (Jito MEV-protected lane). Blocks until the transaction confirms on-chain. | |
auto_swap | Builds, signs, and submits a Solana swap in a single call. Equivalent to build_swap → local sign → submit_signed_swap, but the MCP server handles the | |
get_holdings | Scans every SPL token account on a wallet and returns the holdings list. Most accurate Solana wallet scanner available — catches tokens that standard | |
get_mcap | Returns market-cap and price data for one or more SPL tokens. Used by limit-order strategies to compute target market caps relative to current.
WHEN | |
get_flex_card | Returns the URL of a flex trade-card PNG that visualizes a wallet's position in a token (entry price, current PnL, etc.). Used for sharing trades on s | |
connect_websocket | Opens (or reuses) the persistent WebSocket connection to wss://api.traderouter.ai/ws for a wallet, performs the Ed25519 challenge-response handshake, | |
connection_status | Returns the current state of the persistent WebSocket connection for a wallet (connected, registered, last heartbeat time, queued message count).
WHE | |
get_fill_log | Returns the in-memory log of all order_filled events received over the WebSocket since the MCP server process started (capped at 200 entries).
WHEN T | |
place_limit_order | Places a market-cap-triggered limit order over the WebSocket. The server polls market cap ~every 5 seconds and fires the swap when the target is cross | |
place_trailing_order | Places a trailing-stop sell or trailing buy order over the WebSocket. The server tracks the high-water mark (or low-water mark for buy) of mcap and fi | |
place_twap_order | Places a Time-Weighted Average Price (TWAP) buy or sell order. The total amount is split into N equal slices executed every (duration / frequency) sec | |
place_limit_twap_order | COMBO ORDER: Wait for a market-cap target to be crossed, then execute the entry/exit as a TWAP rather than a single swap. Server-orchestrated; no clie | |
place_trailing_twap_order | COMBO ORDER: Wait for a trailing-stop trigger, then execute the exit as a TWAP rather than a single swap.
WHEN TO USE: To ride a trend with a trailin | |
place_limit_trailing_order | COMBO ORDER: Wait for a limit target, then activate a trailing stop. When the trail triggers, execute as a SINGLE swap (not TWAP).
WHEN TO USE: To en | |
place_limit_trailing_twap_order | COMBO ORDER (the full chain): Wait for a market-cap limit target → activate trailing stop → on trail trigger, execute exit/entry as TWAP slices.
WHEN | |
list_orders | Returns all currently active orders (limit, trailing, TWAP, combo) for a wallet. Used to audit pending orders and find order_ids for cancel_order or e | |
check_order | Returns the current status of a specific order by order_id. More targeted than list_orders.
WHEN TO USE: To check whether a known order has triggered | |
cancel_order | Cancels an active limit, trailing, TWAP, or combo order. Once cancelled, the order is removed server-side and no further fills will arrive.
WHEN TO U | |
extend_order | Extends the expiry time of an active limit or trailing order. expiry_hours sets the NEW total lifetime (counted from order creation, not from now).
W | |