Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TM_API_KEY | No | Override stored API key | |
| TM_AUTH_TOKEN | No | Override stored auth token |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| tm_get_price | Get the current price of a token in USDC by running a zero-cost quote. Resolves token symbols (SOL, ETH) to addresses automatically. Does NOT require an API key — only auth token. Args:
Returns: { token, chain, price_usdc, qty_in, qty_out } |
| tm_get_balances | Get token balances for the authenticated user across all chains. Args:
Returns: Array of { symbol, chain, balance, name } |
| tm_list_assets | List all tokens available for trading on True Markets. Args:
Returns: Array of { symbol, name, chain, address } |
| tm_get_profile | Get the authenticated user's profile including email and wallet addresses. Returns: { email, wallets: [{ chain, address }] } |
| tm_get_quote | Request a quote for buying or selling a token. Returns pricing info and a quote_id that can be passed to tm_execute_trade within 60 seconds. IMPORTANT: Always call this BEFORE tm_execute_trade. Inspect the quote (price, fee, issues) and only execute if acceptable. This solves the price uncertainty problem — you see the exact price you'll get. Args:
Returns: { quote_id: string, // Pass this to tm_execute_trade side, token, chain, you_pay: string, // Amount + asset you send you_receive: string, // Amount + asset you get fee: string, effective_price: string, // USDC per token issues: [], // Any problems (e.g. insufficient balance) expires_in_seconds: 60 } |
| tm_execute_trade | Execute a trade using a quote_id from tm_get_quote. IMPORTANT: Only call this after inspecting the quote from tm_get_quote. The quote must be less than 60 seconds old and have no issues. This tool signs the quote payloads with the user's Turnkey API key and submits the trade. It is irreversible. Args:
Returns: { success, order_id, tx_hash, explorer_url } |
| tm_prepare_transfer | Prepare a transfer to an external wallet address. Returns transfer details and a transfer_id for execution with tm_execute_transfer. Args:
Returns: { transfer_id, to, token, amount, chain } |
| tm_execute_transfer | Execute a transfer prepared with tm_prepare_transfer. Irreversible. Args:
Returns: { success, tx_hash, chain, sent, fee, explorer_url } |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |