milo

v1.0.0
io.github.and-milo/milo Checked 1 day ago Published 2 days ago

AI trading agents and market research: insider and congress trades, 8-K filings, Solana trading.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

prepare_signup_message Prepare signup message

Step 1 of signup: asks the Milo server to generate the SIWX message that the Solana wallet must sign to prove ownership. Returns the message text and all siwx data fields. The wallet owner must sign the `message` bytes (UTF-8 encoded) using their ed25519 private key and base58-encode the signature. Then call `signup` with the result.

ParameterTypeDescription
walletAddress *stringThe Solana wallet address to register
chainIdstringChain ID (default: solana mainnet "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")
inviteCodestringOptional invite code

signup Sign up (create account & API key)

Step 2 of signup: submit the signed SIWX proof to register. Returns user info, wallet IDs, and an API key. The API key is auto-configured for this MCP session only. **Save the returned apiKey and send it as the `X-API-Key` header on every MCP request** — clients that open a new session per call (most hosted connectors) lose the auto-configured key otherwise.

ParameterTypeDescription
signupWallet *stringThe Solana wallet address (must match siwx.data.accountAddress)
siwx *objectSIWX proof: data + message + signature

get_me Get current user

Get the current user profile and wallets for the authenticated API key. Returns userId, walletIds, and wallet addresses — use this to discover your IDs before calling other endpoints.

get_stock_research_digest Stock research digest (insider, congress, 8-K)

One-call disclosure digest for a US stock over the last 90 days: SEC Form 4 insider open-market purchases, congressional (Senate/House PTR) trades and SEC 8-K material events — counts, the most notable rows and links to the source filings. Source: public SEC EDGAR and congressional disclosures ingested by Milo (8-K polled ~every 30 min, PTRs every 1-4h; PTRs lag the trade by up to 30-45 days). Insider coverage is limited to Milo's tracked US-equity universe — check `insider.tracked`. Returns structured JSON.

ParameterTypeDescription
ticker *stringUS stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)

get_insider_transactions Insider transactions (SEC Form 4)

SEC Form 4 insider open-market purchases for a US stock, newest filing first, with filer name/role, shares, price, USD value and an EDGAR filing link. Source: SEC EDGAR filings ingested by Milo — purchases only (transaction code P), for Milo's tracked US-equity universe (`meta.coverage.tickers` lists exactly which tickers are polled); an empty result for an untracked ticker does NOT mean no insider activity. Returns structured JSON.

ParameterTypeDescription
ticker *stringUS stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)
daysintegerLook-back window in days (default 90, max 365)
limitintegerMax rows (default 50, max 100)

get_recent_insider_buys Recent notable insider buys (SEC Form 4)

Notable SEC Form 4 insider open-market purchases across Milo's tracked US-equity universe, newest filing first, optionally filtered by minimum USD value. Source: SEC EDGAR filings ingested by Milo (purchases only; `meta.coverage.tickers` lists the universe). Returns structured JSON.

ParameterTypeDescription
daysintegerLook-back window in days (default 30, max 365)
limitintegerMax rows (default 50, max 100)
minValueUsdnumberOnly purchases worth at least this many USD

get_congress_trades Congressional trades (PTR disclosures)

Congressional stock-trade disclosures (Senate eFD / House Clerk Periodic Transaction Reports) for a US stock, or market-wide when `ticker` is omitted — member, chamber, purchase/sale, disclosed amount range, transaction and disclosure dates, and the official filing link. Source: public congressional disclosures ingested by Milo, polled every 1-4h; PTRs report amount ranges (not exact amounts) and lag the trade by up to 30-45 days. Returns structured JSON.

ParameterTypeDescription
daysintegerLook-back window in days by disclosure date (default 90, max 365)
limitintegerMax rows (default 50, max 100)
tickerstringUS stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)

get_8k_events SEC 8-K material events

Recent SEC 8-K material-event filings for a US stock, newest acceptance first, with 8-K item codes and their titles (e.g. 2.02 Results of Operations, 5.02 Officer/Director changes, 8.01 Other Events) plus filing links. Source: SEC 8-K filings ingested by Milo, polled ~every 30 minutes. Returns structured JSON.

ParameterTypeDescription
ticker *stringUS stock ticker symbol, e.g. NVDA (1-6 chars, case-insensitive)
daysintegerLook-back window in days by filing date (default 90, max 365)
limitintegerMax rows (default 50, max 100)

get_perp_markets Perpetuals board (Hyperliquid)

Ranked Hyperliquid perpetual futures: `funding_high` = longs paying the most (crowded longs), `funding_low` = shorts paying the most (crowded shorts), `open_interest`, `volume` (24h) or `movers` (largest absolute 24h move). `scope` = `crypto` for crypto perps, `builder` for builder-deployed perps on stocks, indices, commodities, pre-IPO, FX and rates (e.g. xyz:TSLA, xyz:GOLD, io:ANTH). Each row: price, 24h change, funding (hourly rate and APR), open interest, volume, max leverage, isolated-only flag, category. Funding boards skip markets under $1M open interest and only list the matching fundi…

ParameterTypeDescription
limitintegerMax rows (default 20, max 50)
scopestringall (default), crypto, or builder
sortstringRanking (default open_interest)

get_perp_market Perpetual market detail (Hyperliquid)

One Hyperliquid perpetual by symbol ("BTC", "ETH", "TSLA", "GOLD") or venue id ("xyz:TSLA"): mark/oracle price, 24h change, current funding (positive = longs pay shorts) plus the average and an 8h-bucketed history, open interest, 24h volume, max leverage, isolated-only flag, category and daily candles; other listings of the same symbol come back as `alternatives`. Source: Hyperliquid public market data. Read-only: Milo does not place perp orders. Returns structured JSON.

ParameterTypeDescription
symbol *stringPerp symbol or venue coin id
candleDaysintegerDaily candles window (default 30, max 90)
fundingDaysintegerFunding history window (default 7, max 30)

search_prediction_markets Search prediction markets (Kalshi, Polymarket)

Open prediction markets on a topic ("fed rate october", "bitcoin 100k", "nvidia earnings") from Kalshi (CFTC-regulated, the US venue) and Polymarket (international; not available to US persons), venues interleaved. Each market: event title, outcome, YES implied probability (0..1), bid/ask, 24h move, volume (Kalshi in contracts, Polymarket in USD), close time, venue link, plus the `venue` and `id` to pass to `get_prediction_market`. Only open markets are returned. Source: Kalshi and Polymarket public market data. Read-only: Milo does not place prediction-market orders. Returns structured JSON.

ParameterTypeDescription
query *stringTopic to search
limitintegerMax markets (default 8, max 20)
venuestringLimit to one venue

get_prediction_market Prediction market detail (Kalshi, Polymarket)

One open prediction market by `venue` and `id` (a Kalshi market ticker or a Polymarket market slug, from `search_prediction_markets`): YES implied probability with bid/ask and 24h move, odds history (t = unix seconds, p = YES 0..1), the other outcomes of the same event, resolution rules and, for Polymarket, the largest holders. Settled or closed markets return not_found. Source: Kalshi and Polymarket public market data. Read-only: Milo does not place prediction-market orders. Returns structured JSON.

ParameterTypeDescription
id *stringKalshi market ticker or Polymarket market slug
venue *stringkalshi or polymarket
historyDaysintegerOdds history window (default 30, max 90)

get_holdings Get wallet holdings

Get the latest token holdings for a wallet, including balances and USD/SOL values

ParameterTypeDescription
walletId *stringThe wallet ID to get holdings for

list_positions List positions

List investment positions (theses) with PnL data. Each position represents a trading thesis Milo is tracking — includes entry orders, linked TP/SL orders, invested amount, unrealized PnL, and current status. Milo revalidates theses every ~3 days. Wallet-backed positions include wallet order/TP/SL data; stock brokerage positions return walletId null, tradingAccountType stock_brokerage, and linked brokerage order/position-derived PnL.

ParameterTypeDescription
pageintegerPage number (default: 1, max: 100)
pageSizeintegerItems per page (default: 25, max: 100)
statusstringFilter by position status
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

close_position Close position (sells holdings)

⚠️ Irreversible: this executes a real on-chain sell of the position's remaining holdings. Close a specific position — cancels pending orders and creates a sell order for remaining holdings

ParameterTypeDescription
thesisId *stringThe position thesis ID to close
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

close_all_positions Close all positions (sells everything)

⚠️ Irreversible: this sells every active position for the user and cannot be undone. Close all active/pending positions for a user

ParameterTypeDescription
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

create_order Create order (executes a trade)

⚠️ Moves funds: this places a real order that will execute a trade from the user's wallet. Create a buy or sell order on a wallet, with optional take-profit and stop-loss ladder

ParameterTypeDescription
payload *objectOrder payload with amount, trigger, and execution settings
tokenAddress *stringToken mint address
type *stringOrder type
walletId *stringThe wallet ID to create the order on
positionThesisIdLink to a position thesis
statusstringOrder status (default: active)
stopLossesarrayOptional stop-loss ladder
takeProfitsarrayOptional take-profit ladder

list_orders List orders

List orders for a user with optional filters

ParameterTypeDescription
pageintegerPage number (default: 1, max: 100)
pageSizeintegerItems per page (default: 25, max: 100)
statusstringFilter by order status
tokenAddressstringFilter by token address
typestringFilter by order type
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

get_order Get order

Get details of a specific order

ParameterTypeDescription
orderId *stringThe order ID
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

pause_order Pause order (can disable a stop-loss)

⚠️ Replaces live state: pausing an active order stops it from executing — pausing a stop-loss or take-profit leaves the position unprotected until the order is re-activated. Confirm with the user first. Pause an active order

ParameterTypeDescription
orderId *stringThe order ID to pause
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

activate_order Activate order (makes it executable)

⚠️ Moves funds: activating a draft order makes it live and able to execute a real trade. Activate a draft order

ParameterTypeDescription
orderId *stringThe order ID to activate
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

delete_order Delete order

⚠️ Irreversible: this archives the order; it cannot be restored afterwards. Delete (archive) an order

ParameterTypeDescription
orderId *stringThe order ID to delete
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

send_tokens Send tokens (moves funds)

⚠️ Moves funds: this transfers tokens out of the user's wallet to another address and cannot be reversed. Send tokens from a wallet to a recipient address

ParameterTypeDescription
amount *numberAmount to send (human-readable, e.g. 1.5 SOL)
recipient *stringRecipient Solana address
token *stringToken mint address
walletId *stringThe wallet ID to send from

list_trading_accounts List trading accounts

List trading accounts for the authenticated API key. `milo_wallet` accounts are linked to Milo wallets. `stock_brokerage` accounts have null wallet fields and sanitized brokerage broker, display, paper-mode, capability, and sync fields only.

get_autotrade_settings Get autotrade settings

Get the user's default trading account autotrade configuration: isActive flag, risk tolerance (conservative/balanced/degen), risk policy, linked strategy, allocation across asset classes, custom instructions for Milo, and per-class overrides.

ParameterTypeDescription
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

get_account_autotrade_settings Get account autotrade settings

Get autotrade configuration for a specific trading account.

ParameterTypeDescription
tradingAccountId *stringThe trading account ID

update_autotrade_settings Update autotrade settings (can enable autonomous trading)

⚠️ Moves funds: enabling autotrade lets Milo trade the user's wallet autonomously, starting with a sweep of existing holdings into USDC. Update the user's default trading account autotrade settings. Set `isActive: true` to activate Milo's autonomous trading (he will sweep holdings to USDC dry powder and begin trading within ~30 min). Change risk tolerance, strategy (VALUE INVESTOR / SWING TRADER / SCALPER / CUSTOM), allocation across asset classes (memes, promising-memes, staking, native, majors, alt-coins, stables, xStocks, stocks, rwa-stocks, rwa-etfs, rwa-metals, rwa-currencies, rwa-pre…

ParameterTypeDescription
allocationobjectTarget allocation by asset class, e.g. { "majors": 40, "stables": 30, "memes": 20, "native": 10 }
customTickersarraySpecific token symbols for Milo to watch (e.g. ["JUP", "BONK", "WIF"])
instructionsstringFree-text instructions for Milo — e.g. "focus on AI tokens, avoid memecoins, max 5% per position"
isActivebooleanEnable (true) or disable (false) autonomous trading
riskPolicyobjectStructured user-level risk overlay. If omitted, riskTolerance derives the default policy.
riskTolerancestringRisk profile. Updating it derives the saved riskPolicy overlay and does not rewrite linked strategy instructions.
strategystringTrading strategy: VALUE INVESTOR, SWING TRADER, SCALPER, or CUSTOM
strategyIdLink to a saved strategy (takes a snapshot of its settings)
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

update_account_autotrade_settings Update account autotrade settings (can enable autonomous trading)

⚠️ Moves funds: enabling autotrade on an account lets Milo trade that account autonomously, starting with a sweep of existing holdings into USDC. Update autotrade settings for a specific trading account. Use this for explicit account routing.

ParameterTypeDescription
tradingAccountId *stringThe trading account ID
allocationobjectTarget allocation by asset class, e.g. { "majors": 40, "stables": 30, "memes": 20, "native": 10 }
customTickersarraySpecific token symbols for Milo to watch (e.g. ["JUP", "BONK", "WIF"])
instructionsstringFree-text instructions for Milo — e.g. "focus on AI tokens, avoid memecoins, max 5% per position"
isActivebooleanEnable (true) or disable (false) autonomous trading
riskPolicyobjectStructured user-level risk overlay. If omitted, riskTolerance derives the default policy.
riskTolerancestringRisk profile. Updating it derives the saved riskPolicy overlay and does not rewrite linked strategy instructions.
strategystringTrading strategy: VALUE INVESTOR, SWING TRADER, SCALPER, or CUSTOM
strategyIdLink to a saved strategy (takes a snapshot of its settings)

list_strategies List strategies

List saved autotrade strategies. Strategies are reusable presets for Milo's strategy content (allocation, instructions, custom tickers, and per-asset settings). Users can create their own or browse public strategies shared by others.

ParameterTypeDescription
pageintegerPage number (default: 1, max: 100)
pageSizeintegerItems per page (default: 25, max: 100)
qstringSearch query (matches name/description)
scopestringFilter: all, owned (user's), or public (community)
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

get_strategy Get strategy

Get details of a specific strategy

ParameterTypeDescription
strategyId *stringThe strategy ID
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

create_strategy Create strategy

Create a new autotrade strategy preset. After creating, link it to the user via `update_autotrade_settings` with `strategyId` to activate it. Make it public to share with the community.

ParameterTypeDescription
name *stringStrategy name (e.g. "DeFi Blue Chips")
strategy *stringTrading strategy type: VALUE INVESTOR, SWING TRADER, SCALPER, or CUSTOM
allocationobjectTarget allocation by asset class
customTickersSpecific tokens to focus on
descriptionHuman-readable description of what this strategy does
instructionsstringFree-text instructions for Milo when following this strategy
isPublicbooleanMake discoverable by other users
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

update_strategy Update strategy (overwrites saved fields)

⚠️ Replaces live state: every field you pass overwrites the saved value (allocation, instructions, custom tickers) — there is no merge — and a strategy linked to an active trading account changes what that account trades once re-synced. Confirm with the user first. Update an existing strategy

ParameterTypeDescription
strategyId *stringThe strategy ID
allocationobjectAsset class allocation
customTickersCustom tokens
descriptionStrategy description
instructionsstringAI instructions
isPublicbooleanMake public
namestringStrategy name
strategystringTrading strategy type
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

delete_strategy Delete strategy

⚠️ Irreversible: this permanently deletes the strategy preset. Delete a strategy

ParameterTypeDescription
strategyId *stringThe strategy ID to delete
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

sync_strategy Sync strategy to settings (replaces live allocation)

⚠️ Replaces live state: re-applies the strategy's allocation and instructions onto the live trading account's autotrade settings, replacing the current ones while trading stays active — the account starts trading the new configuration immediately. Confirm with the user first. Re-sync autotrade settings with a linked strategy. When a strategy is updated after being linked, the settings become out of sync. Call this to re-apply the strategy's latest configuration onto the live trading account. Requires the `trade` scope when connected with OAuth (it changes what the account trades).

ParameterTypeDescription
strategyId *stringThe strategy ID to sync
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

deploy_arena_strategy Deploy strategy to arena (moves funds)

⚠️ Moves funds: this transfers SOL (≥1 SOL) from the owner's wallet into a new arena wallet and starts autonomous trading there. Deploy a strategy to the arena — creates an arena user and wallet, funds it from the owner's custodial wallet, and activates auto-trading. The strategy must be public and owned by the user. `fundingAmountSol` is optional, defaults to 1 SOL, and must be at least 1 SOL.

ParameterTypeDescription
strategyId *stringThe strategy ID to deploy to the arena
fundingAmountSolnumberSOL amount to transfer into the arena wallet. Defaults to 1.
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

withdraw_arena_strategy Withdraw strategy from arena (moves funds)

⚠️ Moves funds: this liquidates the arena wallet and transfers all holdings back to the owner's wallet. Withdraw from the arena — transfers all holdings back to the owner's custodial wallet and deactivates the arena strategy. Only the strategy owner can withdraw.

ParameterTypeDescription
strategyId *stringThe strategy ID to withdraw from the arena
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

get_arena_leaderboard Get arena leaderboard

Get the arena leaderboard — ranked strategies with PnL, win rate, return percentage, account value, and current holdings. Supports timeframe filtering and sorting.

ParameterTypeDescription
pageintegerPage number (default: 1, max: 100)
pageSizeintegerItems per page (default: 25, max: 100)
sortDirectionstringSort direction (default: desc)
sortKeystringSort by metric (default: pnl)
timeframestringLeaderboard timeframe (default: 30d)
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

list_quests List quests

List quests with progress, requirements, and bones (reward points). By default returns unlocked quests (available to complete). Filter by unclaimed (completed but bones not yet claimed) or claimed (bones collected). Check regularly for unclaimed quests to collect bones.

ParameterTypeDescription
claimedbooleanFilter for claimed quests (bones already collected)
modestringSort mode: completed_last puts completed quests at the end
pageintegerPage number (default: 1, max: 100)
pageSizeintegerItems per page (default: 25, max: 100)
unclaimedbooleanFilter for unclaimed quests (completed but bones not yet claimed)
unlockedbooleanFilter for unlocked quests (default: true). Set to false to include all quests.
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

claim_quest Claim quest bones

Claim bones (reward points) for a completed quest. The quest must be completed and unclaimed. Call list_quests with unclaimed=true first to find quests ready to claim.

ParameterTypeDescription
questId *stringThe quest ID to claim
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

get_bones_balance Get bones balance

Get the user's bones (reward points) balance. Returns claimed balance and unclaimed bones that can be collected by claiming completed quests. Check this regularly to keep the user informed about their rewards.

ParameterTypeDescription
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

create_conversation Create conversation (agent may act on it)

⚠️ May trigger trades: the agent that answers can ACT on the message, not just reply — the auto-trader agent can update autotrade settings and close positions, so a message that asks for a trading action has the same effect as calling the destructive trading tools. Confirm with the user before sending a message that requests any trading action. Start a new conversation with a Milo AI agent. Agent types: **market-analyst** (deep research — token fundamentals, technicals, sentiment, risk analysis), **auto-trader** (discuss strategy, review positions, ask Milo to adjust settings or close…

ParameterTypeDescription
message *stringThe initial message to send
agentTypestringAgent: market-analyst (research & analysis) or auto-trader (strategy/settings/positions). Default: market-analyst
paymentobjectOptional x402 payment proof. Include after a 402 payment_required response.
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

list_conversations List conversations

List conversations for a user

ParameterTypeDescription
pageintegerPage number (default: 1, max: 100)
pageSizeintegerItems per page (default: 25, max: 100)
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

get_conversation Get conversation

Get details of a specific conversation

ParameterTypeDescription
conversationId *stringThe conversation ID
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

send_message Send message (agent may act on it)

⚠️ May trigger trades: the agent that answers can ACT on the message, not just reply — the auto-trader agent can update autotrade settings and close positions, so a message that asks for a trading action has the same effect as calling the destructive trading tools. Confirm with the user before sending a message that requests any trading action. Money-moving actions never run straight from a message: the agent replies with an approval request (`approvalRequest` on the message from get_messages) and the action runs only after the user approves it — send `approval: { approvalId, decision…

ParameterTypeDescription
conversationId *stringThe conversation ID
message *stringThe message to send
approvalobjectApprove or reject a pending money action. Only send 'approve' after the user explicitly approved that exact action.
paymentobjectOptional x402 payment proof. Include after a 402 payment_required response.
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).

get_messages Get conversation messages

Get messages from a conversation. Check the `processing` flag — if true, the AI agent is still generating a response.

ParameterTypeDescription
conversationId *stringThe conversation ID
pageintegerPage number (default: 1, max: 100)
pageSizeintegerItems per page (default: 25, max: 100)
userIdstringThe user ID. Optional when connected with OAuth (defaults to the authorized user); required with an API key (call get_me).