AlgoChains MCP Server
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ALPACA_PAPER | No | Set to 'true' to use Alpaca paper trading (default: true) | |
| DATA_BACKEND | No | Force data backend: databento, massive, polygon, or yfinance | |
| ALPACA_API_KEY | No | Alpaca API key (paper or live) | |
| OWNER_API_TOKEN | No | Owner API token for order execution and destructive tools | |
| ALPACA_SECRET_KEY | No | Alpaca secret key | |
| ALGOCHAINS_TOOL_MODE | No | Tool mode: 'smart' (default, 168 tools) or 'full' (503 tools) | smart |
| ALGOCHAINS_TOWER_HOST | No | Hostname of desktop tower for dispatching ML jobs | |
| ALGOCHAINS_BRIDGE_API_KEY | No | Team bridge API key for read-only bot metrics and positions | |
| ALGOCHAINS_SUBSCRIBER_KEY | No | Your AlgoChains subscriber API key (starts with sub_live_ or sub_test_) | |
| ALGOCHAINS_HTTP_TRANSPORT_SECRET | No | Bearer token for HTTP/SSE transport security |
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": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_accountB | Get account information (equity, cash, buying power) from a broker. |
| get_positionsA | broker_truth / live ops — open positions from a connected broker (flat check, exposure, unrealized P&L only). Use for 'am I flat', 'open positions', 'exposure'. Do NOT substitute web search or memory. unrealized_pnl ≠ realized session P&L. |
| get_ordersA | broker_truth / live ops — working/open/closed orders from a connected broker. Use for 'working orders', 'pending orders'. Do NOT use web search. |
| portfolio_summaryA | broker_truth / live ops — unified portfolio across connected brokers (equity, positions, P&L). Use for owner 'today's P&L' / 'how did we do'. Do NOT invent numbers from web search or memory. Subscribers should use get_my_pnl / get_my_portfolio instead. |
| get_quoteA | broker_truth / live ops — right-now bid/ask/last for a symbol from a connected broker. Use for 'MNQ price right now' / live quote. Do NOT scrape CME/Yahoo via web search. For historical OHLCV bars use data/backtest tools. |
| get_bot_healthA | broker_truth / live ops — unified health for live futures bots (MNQ, CL, MES, NQ) and Kalshi: process up?, log mtime, last signal, regime, recent errors, token expiry, e2e_sentinel. Use for 'MNQ health check', 'is the bot running', 'bot status'. Do NOT use web search (CME/Yahoo) for bot liveness — that is market news, not AlgoChains processes. For live market price use get_quote. Pure read-only on control-tower host (logs/, state/, ps). |
| graphiti_searchA | Hybrid (semantic + keyword + graph-traversal) search over the AlgoChains TEMPORAL knowledge graph (getzep/graphiti). Returns advisory facts with validity windows (valid_from/valid_to) extracted from REAL signal traces, debate transcripts, and Hive Brain synthesis. Use for 'what was true / what changed / what preceded what, over time' — e.g. 'MNQ behavior in trending regime'. agent_memory authority: ADVISORY ONLY, never broker truth (P&L/fills still require broker verification). Complements rag_search/onyx (semantic) and query_codegraph (structural). Fails closed with graphiti_unavailable. |
| graphiti_healthA | Health probe for the Graphiti temporal knowledge-graph backend (Neo4j + graphiti-core, advisory/agent_memory). Reports provider, Neo4j URI, group_id, and reachability. Fails closed with graphiti_unavailable + recovery_command (per-host; not synced across machines). |
| connect_brokerC | Connect to a specific broker. Must be configured via environment variables. |
| validate_strategy_metricsA | Run the marketplace validation gates against reported strategy metrics (Sharpe, OOS trades, drawdown, win rate, MCPT). This is distinct from validate_strategy, which validates a StrategySpec schema. |
| validate_strategyA | Validate a StrategySpec for schema correctness, parameter ranges, and internal consistency. |
| run_backtestB | Run a backtest on a StrategySpec using the Rust engine. Returns Sharpe, drawdown, win rate, P&L. |
| optimize_strategyC | Run Optuna-based parameter optimization on a StrategySpec. Finds best params across n_trials. |
| massive_search_endpointsA | BM25 search over all Massive market data API endpoints. Use this FIRST to find the right endpoint for stocks, options, futures, forex, crypto, or SEC filings. |
| massive_get_endpoint_docsA | Get parameter documentation for a Massive API endpoint. Pass the docs_url from massive_search_endpoints results. |
| massive_call_apiA | Execute a Massive market data API call. Optionally store results as an in-memory DataFrame for SQL querying. Supports pagination auto-detection — check _next_page in results. |
| massive_query_dataB | SQL queries over stored DataFrames from massive_call_api. Supports SHOW TABLES, DESCRIBE , DROP TABLE , and full SQL with JOIN/GROUP BY/window functions. Use apply for server-side Greeks and technicals. |
| massive_run_pipelineA | Composable pipeline: search→fetch→store→query→apply in 1 call (saves 4 round-trips). Describe what data you want, optionally filter with SQL and apply Greeks/technicals. |
| discover_toolsA | Search for relevant AlgoChains tools using natural language. Returns the top-K most relevant tools with descriptions. Use this FIRST to find which tools are available for your task — 90%+ context reduction vs listing all 533 tools. |
| get_tool_detailsA | Get full details for a specific tool including its input schema, parameter types, and usage examples. Call after discover_tools to get the full spec before execution. |
| execute_dynamic_toolA | Execute any discovered tool by name with arguments. Use discover_tools first, then get_tool_details for the schema, then call this to execute. ORDER_EXEC and DESTRUCTIVE tools require owner_token and confirm=true inside arguments. |
| mcp_tool_manifestA | Return JSON manifest of all registered MCP tools with implementation_status (full|partial|stub), required env vars, and Tier-1 flags. Use for CI, Onyx indexing, and honest agent planning — call before relying on V8-V20 tools. |
| execute_intentA | Transform a natural language trading intent into a concrete plan and execute it. Example: 'Get me $10K AI exposure, max 2% per stock'. Parses intent → solves constraints → presents plan for approval → executes. |
| approve_intentA | Approve a pending intent plan for execution. The plan must be in 'pending_approval' status. |
| create_shadow_portfolioA | Create a shadow (paper) portfolio to forward-test a strategy without risking capital. Track P&L, fills, and metrics alongside your real portfolio. |
| detect_market_regimeB | Detect current market regime from VIX, SPY trend, breadth, and credit signals. Returns regime classification (bull/bear/range/volatile/crisis), recommended strategies, and risk multiplier for position sizing. |
| check_order_safetyB | Run 13 pre-trade safety checks before placing an order. Checks position sizing, daily loss limits, drawdown, fat fingers, buying power, concentration, VIX killswitch, margin, correlation, and more. Returns ALLOW or BLOCK with reasons. |
| get_protection_configA | View current account protection settings including daily loss limits, drawdown thresholds, position size caps, VIX killswitch levels, and max positions. |
| query_data_warehouseB | Query AlgoChains data warehouses (Builder tier $199/mo). Access 3.09B+ rows: 409M crypto, 1.3B stocks, 1.4B forex minute bars. Returns OHLCV data for backtesting. |
| start_sandboxed_agentA | Start an AlgoClaw MCP-only agent session in an app-owned sandbox (path allowlist, no inherited broker/owner env, runtime quotas). Requires agent:sandbox scope. Fail closed without the scope. |
| reserve_llm_budgetA | Atomically reserve USD against the developer key's daily LLM budget (spend:llm_budget). Fail closed on ledger errors or exhaustion. |
| submit_to_marketplaceB | Validate a strategy for marketplace readiness. Tier-1 calls are dry-run unless LISTING_API_KEY is configured; staging then requires a verified local artifact path + SHA-256 that VirusTotal reports clean (Django scan-hash; 5 scans/person/day). |
| compute_volatility_surfaceA | Compute full implied volatility surface from real Polygon options chain: IV per strike/expiry, 25-delta skew, term structure, IV rank (0-1), IV percentile, and vol regime (low/normal/elevated/extreme). Generates actionable signal: long_vol/short_vol/sell_skew/buy_skew. |
| compute_factor_exposureA | Decompose a symbol's returns into Fama-French 5-factor + momentum exposures using real Polygon daily data. Returns alpha, market beta, SMB/HML/momentum betas, R-squared, information ratio, tracking error. Identifies alpha-generating vs factor-exposed regimes. |
| detect_regime_hmmA | Detect market regime using Hidden Markov Model on real daily returns: bull_trending, bear_trending, choppy, or crisis. Returns regime probability, days in current regime, transition probabilities, vol regime, and Sharpe. Uses hmmlearn if available, statistical fallback otherwise. Real Polygon data only. |
| get_quant_regime_stateA | Aggregate shadow-only quant regime telemetry from bot_metrics_live and state/quant_shadow_snapshot.json: GARCH status, OFI intensity, Kalman shadow slope, HMM regime status, and 7-day agreement summary when available. Does not compute models. |
| get_vix_term_structureA | Get VIX term structure from real CBOE data: spot VIX, VIX3M, VIX6M contango/backwardation. High contango (>10%) is bullish for equities; backwardation signals fear. Returns regime: contango, backwardation, flat. |
| compute_correlation_matrixA | Compute real-time cross-asset correlation matrix for a list of symbols using actual daily returns. Detects regime changes (correlation spikes during crises). Returns heatmap data, average pairwise correlation, and risk concentration score. |
| request_trade_confirmationB | MCP Elicitation: request structured human confirmation before executing a high-value or destructive trade action. Shows the user a form with trade details; execution is gated on approval. |
| submit_long_running_taskA | Submit a durable long-running MCP Task (backtest, optimization, ML retrain). Returns a task_id immediately. Use get_task_status to poll. Tasks persist across disconnects. |
| get_task_statusA | Get status and progress of a long-running MCP Task. Returns phase, progress percentage, result (when done), or error. |
| run_evolution_cycleB | Trigger an AlphaLoop evolution cycle: SCAN underperformers → MUTATE parameters via Optuna → VALIDATE against real trade history → PROMOTE winner. Uses RL reward model. Requires real trade history (min 5 trades). |
| get_footprint_chartA | Compute footprint chart for a symbol: bid/ask volume at each price level per candle, detecting absorption (sellers absorbed at support), imbalance (>3:1 ratio), and delta exhaustion. Uses real Databento tick data. |
| get_dark_pool_volume_v21A | Fetch dark pool volume for a symbol from real FINRA ATS reports + Polygon off-exchange trade conditions. Returns dark pool %, total off-exchange volume, and institutional activity score. NO synthetic data — fails if real sources unavailable. |
| get_earnings_catalystA | Run earnings NLP pipeline: fetch SEC EDGAR filing, compute FinBERT sentiment, extract key themes (guidance, EPS beat/miss, capex), detect tone shift vs prior quarter. Returns catalyst score and actionable signal. |
| get_prediction_marketsA | Fetch real prediction market probabilities from Polymarket and Kalshi for macro events (Fed rate decisions, election outcomes, economic releases). Derives equity market signals from contract odds. |
| search_prediction_marketsA | Search live Polymarket and/or Kalshi markets by keyword. Returns real contract YES/NO prices, volume, liquidity, and URLs. Fails closed if no API data. |
| get_polymarket_high_volumeA | List highest 24h-volume Polymarket markets right now (real Gamma API). Useful for Roo-style early YES/NO flow and liquidity discovery. |
| get_prediction_market_bot_metricsA | Read recent JSONL metric entries for a prediction-market bot_id from the local audit log. |
| get_polymarket_marketA | Fetch detailed info for a specific Polymarket market by condition ID or event slug. Returns question, YES/NO prices, volume, liquidity, resolution date, and status. More precise than search — use when you have a specific market ID. |
| get_polymarket_market_historyA | Get historical YES price data for a specific Polymarket market. Returns timestamped price series. Accepts slug, Gamma numeric ID, or CLOB token ID — auto-resolves. Useful for charting probability movement, analyzing market efficiency, and detecting smart money flow timing. |
| list_polymarket_marketsA | List Polymarket prediction markets with status filtering and pagination. Unlike search, this returns all markets in a category. status=open (default) | closed | resolved. Sorts by 24h volume descending. |
| get_algochains_telosA | Read AlgoChains business identity files (TELOS system, adapted from PAI). Returns mission, goals, strategies, mental models, lessons learned, challenges, ideas, and KPIs. Use section='all' for full context or specify: mission|goals|strategies|models|learned|challenges|ideas|metrics. Every agent should read TELOS at session start for full business context. |
| update_algochains_telosA | Append a new entry to an AlgoChains TELOS file (goals, learned, ideas, challenges, etc.). Use to capture new lessons learned, ideas, or goal updates during a session. The log is append-only — entries are never overwritten. |
| get_us_economic_indicatorsA | Fetch US economic indicators from FRED (Federal Reserve Economic Data). Covers 16 key indicators: VIX, Fed Funds Rate, CPI, PCE, 10Y-2Y Treasury spread, unemployment, M2, GDP, housing starts, consumer sentiment. Requires FRED_API_KEY (free at fred.stlouisfed.org). Results cached 6h. Essential for regime detection across all bots. |
| get_crude_oil_inventoriesA | Fetch EIA weekly crude oil inventory data — critical signal for the CL (crude oil) futures bot. Covers US commercial crude stocks, Cushing Oklahoma (WTI delivery point), and field production. Released every Wednesday ~10:30 AM ET. Build above estimate = bearish CL; draw below = bullish. Requires EIA_API_KEY (free at eia.gov/opendata). |
| get_fed_policy_signalsA | Get the 7 most important Fed policy indicators in one call: Fed Funds Rate, CPI, PCE, 10Y-2Y spread, VIX, 10Y yield, 2Y yield — with AI-derived regime interpretation (restrictive/neutral/accommodative, crisis/normal, inverted/normal yield curve). Use for MNQ/NQ regime context before trading sessions. Requires FRED_API_KEY. |
| capture_learning_signalA | Record the outcome of an agent action or skill invocation for continuous learning. After 30+ signals, patterns emerge: which skills produce the best outcomes, where failure is common, what to improve. Stored in state/learning_signals.jsonl (append-only audit log). Use after any significant agent action. |
| get_learning_signalsA | Retrieve and analyze historical learning signals from state/learning_signals.jsonl. Returns signals with optional summary statistics: success rate by action type, top skills by effectiveness, bot activity, average ratings. Use to identify where agent performance is strongest/weakest and drive improvement priorities. |
| send_ntfy_notificationA | Send a mobile push notification via ntfy (https://ntfy.sh). Topics: bots (bot up/down/trade), risk (circuit breaker, daily loss), marketplace (new subscriber, bot promoted), ops (deploy, system health), alpha (high-confidence signal). Priority: max/urgent = always-on screen; high = with sound; default = normal; low/min = silent. Requires NTFY_BASE_URL + optional NTFY_AUTH_TOKEN. |
| check_propagation_healthA | Check if the AlgoChains Django signal propagation service (Roo architecture) is reachable and whether copy-trade paper fanout has active backlog. Separates active_lag_seconds from idle_since_last_signal_seconds so quiet markets do not look stalled. |
| run_guardrailA | Run the GUARDRAIL pre-flight middleware chain before placing any order. Executes 6 gates: VIX, daily-loss, stoploss-guard, cooldown, confidence, R/R. Returns approved=true only if all gates pass. Wire this before every order execution. |
| get_macro_signalsA | Get pre-computed macro alpha signal fabric: yield curve shape (2y-10y), credit spreads (HY-IG), DXY momentum, PMI regime, VIX term structure contango/backwardation. All from real FRED/CBOE/Polygon APIs. |
| get_bot_dashboardA | Get real-time dashboard of all live trading bots: PIDs, positions, today's P&L, signal counts, win rates computed from actual fill history. Data from ~/.algochains/bot_metrics.db. |
| subscribe_bot_metricsA | Subscribe to real-time bot metrics stream via MCP resource notifications. Fires on every fill, signal, and position update. Perfect for the private bot showcase on AlgoChains marketplace. |
| list_skillsA | List all available AlgoChains skills from OpenClaw (363+), Windsurf (80+), Cursor (15), and Claude (8) skill libraries. Filter by category (trading, research, operations, intelligence, agent, comms, risk, data, ml, marketplace) or platform. Returns name, description, categories, tools used, and trigger type. |
| get_skill_detailA | Get the full SKILL.md content and metadata for any skill by name (e.g. 'moltbook-debate', 'bot-diagnostics', 'autonomous-researcher', 'backtest-governance'). Returns complete instructions, tool requirements, trigger conditions, and schedule. Use list_skills or search_skills to discover skill names. |
| search_skillsA | Search across all 450+ skills by keyword. Returns ranked matches from OpenClaw, Windsurf, Cursor, and Claude libraries. Use to find the right skill for a task before reading its full SKILL.md. |
| get_skills_for_taskA | Given a task description in plain language, return the 3-5 best skills to use. Matches your task against skill descriptions across all platforms. Use when you do not know which skill to call. |
| get_openclaw_memoryB | Read the OpenClaw agent memory store. Contains trade lessons, regime history, signal quality scores, and cross-session agent context. Filter by key_prefix (e.g. 'trade', 'regime', 'bot') to narrow results. |
| store_trade_lessonA | Persist a trade lesson to OpenClaw memory so autonomous agents can learn from it. Lessons are retrieved during future trade decisions for similar setups. Required: symbol, direction, outcome, lesson text. |
| get_current_regimeA | Read the current market regime from OpenClaw state (written by autonomous regime_detector skill). Returns regime label, confidence, and timestamp. This is the regime all live bots use for signal filtering. |
| get_bot_heartbeat_openclawA | Read ~/.openclaw/bot_heartbeat.json. This file is MNQ-only and fill-triggered (written by FUTURES_SCALPER_UPGRADED._track_openclaw_feedback on slippage/fill feedback), NOT by autonomous_watchdog every 5 minutes. Schema is typically {ts, bot, symbol}. For fleet process liveness use get_bot_health / get_all_bot_ops_status; for failover primary use control-tower logs/bot_heartbeat.json. |
| get_openclaw_state_summaryA | Get existence, size, and last-modified time for all OpenClaw state files (memory, regime, heartbeat, monitor, evaluations, AI cost, calibration). Use to verify OpenClaw is healthy and its state files are current. |
| invoke_moltbook_debateA | Trigger a Moltbook bull/bear multi-agent debate for a trading signal. Shadow mode — does NOT place orders. Returns consensus direction, confidence, agreement %, and per-agent reasoning. Use before significant trades for multi-agent validation. |
| run_mcpt_pipelineA | Run the MCPT marketplace autopilot pipeline. Steps: decay (check edge decay), graduate (30-day paper trading gates), audit (batch MCPT re-validation), listing (generate marketplace JSON), slack (post summary to #quant-lab). Calls scripts/mcpt_autopilot.py. |
| run_regime_detectionC | Run the regime detection pipeline — analyzes VIX term structure, market breadth, and price action to classify current market as trending/choppy/volatile/mean_reverting. Updates OpenClaw current_regime.json used by all live bots. |
| onyx_searchA | Semantic search over the AlgoChains Onyx knowledge base: 400+ strategy research JSONs, 45+ blueprints, 126 skills, live bot logs. Returns ranked documents with relevance scores. |
| onyx_askA | Ask a natural language question against the Onyx knowledge base with RAG grounding. Returns an answer with cited sources. E.g. 'What is the best CL swing setup in trending regimes?' or 'How do I configure Token Guardian?' |
| get_funding_rateA | Get real-time perpetual futures funding rates from Binance, Bybit, and Hyperliquid. Identifies funding rate arbitrage opportunities and predicts funding-driven price pressure. |
| get_staking_yieldsB | Get real staking APY from Lido Finance (stETH), Binance Simple Earn, Cosmos validators, and Ethereum Beacon Chain. Compares yield opportunities across protocols. |
| get_tower_job_statusA | Get status and result of a dispatched tower job. Polls the tower via SSH for the result file. |
| get_tower_healthA | Check the configured compute node (ALGOCHAINS_TOWER_HOST) health: reachable, memory, active jobs, GPU status. |
| run_marketplace_autopilotA | Run the autonomous marketplace pipeline: Research→Backtest→MCPT Validate→Stage for marketplace. Scans recent strategy research, runs tick backtests, applies 5-gate validation, stages passing strategies as marketplace JSON listings. Triggers Onyx ingest and Slack notification. No synthetic data — real tick engines only. |
| get_marketplace_listingsA | Get all staged marketplace bot listings with real metrics: futures (owner-only), equities, crypto, forex. Includes Sharpe, win rate, max DD, subscription pricing, and paper trading status. Supabase-first with local filesystem fallback. |
| get_onyx_statusA | Check Onyx knowledge base status: health, last sync time, total indexed documents, connector status (self-hosted host via ONYX_API_URL). |
| get_learn_hub_healthA | Check AlgoChains Learn Hub health: HTTP status of /learn/, /learn/feed.xml RSS MIME, and learn.algochains.ai subdomain redirect. Read-only — does NOT deploy. Use to verify the live Learn Hub is up and public (no login required). |
| get_live_bot_metricsA | Get real-time trading metrics for live bots (Tradovate + Alpaca paper). Supabase-first (bot_metrics_live table). Returns daily P&L, win rate, last signal, confidence, error count. Bot IDs: mnq, cl, mes, nq, alpaca_paper_equities, alpaca_paper_crypto. Omit bot_id to get all. Falls back to log parser if Supabase unavailable. |
| get_all_bot_metricsA | Get real-time trading metrics for all 4 live Tradovate bots (MNQ, CL, MES, NQ) in a single call. Returns daily P&L, win rates, signals, error states, and MCPT validation badges. Data from real log files. |
| get_system_heartbeatA | Check whether this MCP server node is the primary trader (MacBook offline) or standby (MacBook alive). Reads the Mac heartbeat file to determine heartbeat age, Mac liveness, desktop bot process counts (expected 5: MNQ/CL/MES/NQ + Kalshi), and which node is currently running the bots. Critical for dual-node failover awareness. |
| get_adaptive_brain_statusA | Read adaptive_brain.py daemon liveness from bounded process, script, state, and log evidence. Read-only; does not restart or mutate daemon state. |
| get_system_healthA | Run the trading-system-health audit: bot process/log liveness (with legacy log alias resolution), disk space on control-tower and home volumes, and optional health_snapshot.json. Use to triage SEV1 trading-system-health watchdog alerts without false inactive signals from stale cl_bot_live.log. |
| get_strategy_academic_citationsA | Get all academic citations, SSRN papers, and published works that provide the theoretical basis for a specific bot's strategy. Includes authors, year, venue, DOI/SSRN link, and relevance explanation. Bot IDs: mnq, cl, mes, nq. |
| get_bot_card_dataA | Get the complete bot card data payload for algochains.ai marketplace display. Includes strategy summary, academic citations, backtest artifact paths (MCPT JSON, whitepapers, blueprints), skills references, and subscription tier. Use to populate or refresh a bot card on the marketplace site. |
| list_bot_research_attachmentsA | List all research attachments available for a bot: MCPT validation JSON files, backtest PDFs, whitepapers, and blueprint markdown files. Shows local path and whether the file exists. Use to prepare uploads to Supabase storage for bot card attachment panel. |
| get_bot_position_stateA | Read the persisted position state file for a bot. Returns direction (BUY/SELL/null), qty, entry_price, and flat status. This is the bot's internal tracking — compare to Tradovate get_positions() to detect drift. |
| get_bot_bracket_statusB | Parse the bot log to determine current bracket order status. Returns mode (live/oso_only/none/unknown), stop/target order IDs and prices, and whether the position is unprotected. Critical for detecting missing stops after an entry. |
| get_ai_pipeline_healthA | Check AI ensemble/debate pipeline health. Detects Anthropic quota errors, Cerebras model errors (llama3.1-8b), pipeline timeout events, and shadow mode. The pipeline is ADVISORY ONLY — primary confidence gate controls all trades regardless of pipeline state. |
| check_unprotected_positionsA | broker_truth / live ops — cross-check ALL open Tradovate positions vs working orders to find unprotected exposure (position open, no stop/target). Use for 'unprotected?', 'do I have stops?', 'bracket check'. Do NOT use web search. Returns OK | UNPROTECTED_EXPOSURE. Run before P&L reports and after restarts (prevents Apr 14 2026 -$4.9k class). |
| bracket_integrity_checkA | Live Tradovate bracket audit for non-MNQ positions (CL/MES/NQ). Each open position must have BOTH a working stop and target order. Returns checked_count, missing_brackets, and formatted_line for BRACKET-INTEGRITY-MONITOR. Status DEGRADED when bot state files show open exposure but broker returns zero positions (fail-closed). |
| get_bracket_guardian_statusA | Read the bracket integrity guardian daemon state. Returns last check time, any unprotected positions currently flagged, and whether auto-flatten has fired. When guardian positions_count is 0 (or guardian inactive), also runs live bracket_integrity_check against Tradovate so watchdogs cannot report OK with 0 checked without broker verification. |
| start_onboardingA | Begin the AlgoChains setup wizard. Shows risk disclosure, privacy notice, and compliance acknowledgment. MUST be called first by new users before connecting any broker. Returns the disclosure text and required acknowledgment string. |
| acknowledge_risk_disclosureB | Acknowledge the AlgoChains risk disclosure to unlock trading tools. User must type the exact acknowledgment text shown by start_onboarding(). Creates an auditable timestamp of acknowledgment. |
| get_broker_setup_guideA | Get step-by-step setup guide for a broker: required env vars, where to get credentials, paper trading instructions, rate limits. Includes broker-specific risk warnings. Brokers: tradovate | alpaca | oanda |
| validate_broker_connectionA | Test broker connectivity using credentials from environment variables. Returns success/failure with specific error messages. Fails loudly if credentials are missing or invalid — never silently proceeds. |
| get_data_provider_setup_guideA | Get setup guide for a market data provider: required env vars, where to get API keys, free tier details. Providers: polygon | databento | onyx | fred |
| validate_data_providerA | Test market data provider connectivity: polygon, databento, onyx, or fred. Uses credentials from environment variables. Returns connected/failed with error details. |
| run_onboarding_smoke_testA | Run end-to-end connectivity smoke test for all configured brokers and data providers. Marks onboarding complete if all pass. Call this after setting up credentials to verify everything works before trading. |
| get_onboarding_statusA | Check current onboarding progress: steps completed, steps remaining, connected brokers/providers, AlgoChains API key status, guardrail prefs, and next required action. |
| set_algochains_api_keyA | Step 4: Set your AlgoChains developer API key (ac_live_* or ac_test_*) for marketplace and bridge access. Validates against the bridge health endpoint. Get a key via create_developer_key tool or at algochains.ai/account/developer-keys/. |
| set_guardrail_preferencesA | Step 6: Configure guardrail notification thresholds. Hard-coded limits (daily loss $500, max drawdown 15%, VIX>35 gate) cannot be changed — this only controls when you are notified. |
| generate_ide_configA | Generate the MCP config file (mcporter.json / mcp.json) for your IDE based on your connected brokers and data providers. IDEs: cursor | windsurf | claude | vscode. Mode: smart (default, 181 tools) | full (533 tools). Output includes install instructions. |
| get_circuit_breaker_statusA | Read current state of all hard-coded trading circuit breakers. Shows which brokers are OPEN/CLOSED/HALF_OPEN, trip reasons, cooldown timers, and current order velocity. These limits are code-level constants — the AI cannot modify them. Use to understand why orders are being blocked. |
| get_daily_loss_proximityA | Read daily loss proximity guard status: today's P&L vs the $500 hard limit, utilization %, alert/block thresholds (80% alert, 95% block scalpers, MNQ swing exempt), and whether P&L evidence is verified. Returns DEGRADED when P&L source is unknown instead of fail-open OK. |
| get_agent_loop_statusA | Check AI agent loop detection metrics: calls in last 60s, unique call signatures, max identical call count, and loop risk level (LOW/MEDIUM/HIGH). If loop risk is HIGH, a circuit breaker may trip on the next repeated call. Read-only — limits are hard-coded constants. |
| get_latency_profileA | Get real-time latency profile for this MCP session: tool call overhead, broker API round-trip times, and current execution tier. Includes a reminder that MCP AI-assisted execution is Tier 4 (120ms-2s) — not suitable for HFT. Use to set correct expectations for strategy timing. |
| ingest_csv_dataA | Ingest a user-provided CSV file of OHLCV market data into AlgoChains. Validates columns, parses rows, and stores in state/custom_data/. The data becomes available for backtesting via run_backtest(data_source='custom'). Requires real file on disk — no synthetic substitution. |
| ingest_json_signalsA | Ingest a JSON file of pre-computed signals, ML features, labels, or regime tags into AlgoChains. Supports entry/exit signals, feature vectors, classification labels, and regime classifications. Data becomes available for ML training. |
| connect_onyx_docsA | Index local research documents (PDF, Markdown, JSON, TXT) into the Onyx RAG knowledge base. Documents become searchable via onyx_ask() and onyx_search(). Supports recursive directory scanning. Requires Onyx to be running at ONYX_API_URL. Owner-only side effect (AC-MCP-009). |
| register_strategyA | Register a custom strategy spec JSON with the AlgoChains platform. The spec must contain entry_rules and exit_rules. Once registered, the strategy can be backtested via run_backtest(strategy_id=...). Validates the spec file before registering. |
| list_ingested_dataA | List all custom OHLCV datasets, signal files, Onyx document ingestions, and registered strategies. Shows what proprietary data has been brought into AlgoChains. |
| generate_broker_auth_urlA | Generate an OAuth authorization URL for a user to connect their broker account (Schwab, Alpaca, Tradovate, OANDA). Returns the URL to redirect the user to. |
| exchange_broker_oauth_codeA | Exchange an OAuth authorization code for broker access/refresh tokens. Call this after the user returns from the broker's authorization page. |
| get_connected_brokersC | List all brokers a user has connected via OAuth, with token expiry and scope information. |
| revoke_broker_connectionA | Disconnect a broker OAuth connection and remove stored tokens. |
| signup_algochainsA | Create a new AlgoChains account with email + password via Supabase Auth. Returns session on success or requires_email_confirm. Next step: verify_email_otp → enroll_mfa → create_developer_key. |
| verify_email_otpA | Verify the email OTP token from the AlgoChains confirmation email. Activates your account and starts a session. |
| login_algochainsA | Login to AlgoChains with email + password. Stores session locally for subsequent MFA and key operations. |
| refresh_sessionA | Refresh an expiring AlgoChains session using the stored refresh_token. Call before session expires to stay logged in. |
| logout_algochainsA | Revoke current AlgoChains session and clear stored credentials. |
| enroll_mfaA | Enroll a new MFA factor (TOTP authenticator app or SMS). Returns QR code URI for TOTP — scan with Google Authenticator, Authy, etc. Then call verify_mfa to complete and upgrade session to AAL2. |
| challenge_mfaA | Create an MFA challenge for login step-up verification. Required before verify_mfa during subsequent logins. |
| verify_mfaA | Verify MFA code to complete enrollment or step up to AAL2 session. AAL2 is required for create_developer_key, rotate_developer_key, revoke_developer_key. |
| list_mfa_factorsA | List enrolled MFA factors for the current session. |
| remove_mfa_factorA | Remove an enrolled MFA factor. Requires owner_token — destructive, downgrades session to AAL1. |
| create_developer_keyA | Mint a new ac_live_* or ac_test_* developer API key. Requires AAL2 session (enroll_mfa + verify_mfa first). Plaintext key returned ONCE ONLY — save immediately. |
| list_developer_keysA | List your developer API keys (masked — plaintext never returned after creation). |
| rotate_developer_keyA | Atomically rotate a developer key (revoke old, mint new). Requires AAL2 session. New plaintext returned ONCE ONLY. |
| revoke_developer_keyA | Revoke (soft-delete) a developer API key. Requires AAL2 session. |
| get_developer_key_usageA | Get usage metadata for a developer key (last used, scopes, active status). |
| test_bridge_connectionA | Test a developer API key against the hosted AlgoChains bridge (mcp.algochains.ai). Returns auth status and scopes. |
| get_startedA | START HERE. Guided next-steps for a brand-new user, by goal. No auth, no setup. Call get_started(goal='subscriber') for copy-trade signals, 'creator' to publish a strategy, 'developer' to build on the API, or 'explore' to look around with zero signup. Returns the exact tool calls to make next. |
| get_pricingA | Transparent AlgoChains pricing: paper ($29/mo) and live ($99/mo) tiers, what's included, usage overage, the 20%/3-month referral reward, and the 80% creator revenue share. Flat subscription + usage; no performance fees. No auth required. |
| get_system_statusA | Consumer-facing platform health: version, live signal-bot roster (MNQ/CL/MES/NQ), tool count, and public marketplace listing count. No auth, no secrets — safe to call anytime. |
| get_checkout_urlB | Generate a Stripe checkout URL for an AlgoChains subscription. Returns a URL the user clicks once to pay — Stripe handles the payment UI. After payment, a sub_live_… key is emailed automatically and the subscriber can subscribe to MNQ copy-trade signals (delivered for the subscriber to review and act on — no automated execution; the subscriber stays in control). Tiers: 'paper' ($29/mo — subscriber tools + MNQ copy-trade signals, simulated paper account, no broker needed) or 'live' ($99/mo — subscriber connects their own broker and places their own trades). Flat subscription only. Set ALGOCHAINS_SUBSCRIBER_KEY= to activate. |
| generate_payment_linkA | Return a direct payment link for an AlgoChains subscription tier. Unlike get_checkout_url, this returns a pre-configured shareable URL that works without entering an email first. paper=$29/mo, live=$99/mo. After payment, set ALGOCHAINS_SUBSCRIBER_KEY=. |
| join_botA | Subscribe the authenticated subscriber to a strategy's published copy-trade SIGNALS (the subscriber reviews and acts on them — the platform does not auto-execute or exercise discretion). The subscriber sets their own size and can pause/leave anytime. Strategies: MNQ (micro Nasdaq scalper), CL (crude oil scalper), MES (micro S&P swing), NQ (Nasdaq swing). Enforces a seat cap per strategy — returns bot_at_capacity if full. Requires the futures risk disclosure to be acknowledged first (accept_subscriber_terms) and ALGOCHAINS_SUBSCRIBER_KEY to be set. Re-calling with an existing subscription updates size_multiplier and un-pauses. |
| get_subscriber_statusA | Return a full status snapshot for the authenticated subscriber: which bots they're assigned to, paper account balance, key_active flag, and suggested next_steps based on their current state. Good first call after setting ALGOCHAINS_SUBSCRIBER_KEY. Requires ALGOCHAINS_SUBSCRIBER_KEY to be set. |
| accept_subscriber_termsA | Record the authenticated subscriber's explicit acknowledgment of the futures risk disclosure and Terms of Service. REQUIRED before active copy-trade (join_bot). Call once with no arguments to retrieve the disclosure text and the exact acknowledgment phrase, then call again with acknowledgment= to record consent. CFTC/NFA compliance gate. Requires ALGOCHAINS_SUBSCRIBER_KEY. |
| get_my_usageA | Your current-month MCP API usage: total metered calls, included quota, overage calls, overage cost (USD), and a projected month-end overage cost. Read-only; reflects this subscriber's billing tier. Requires ALGOCHAINS_SUBSCRIBER_KEY. |
| create_referral_codeA | Create (or fetch) the authenticated subscriber's shareable referral code. Returns the code and a share_url (https://algochains.ai/r/). One active code per subscriber. Referrers earn 20% of each referral's subscription for their first 3 months. Requires ALGOCHAINS_SUBSCRIBER_KEY. |
| get_my_referralsA | Return the authenticated subscriber's referral summary: their referral code, count of subscribers referred, and commission counts + sums by status. Requires ALGOCHAINS_SUBSCRIBER_KEY. |
| get_referral_earningsA | Return total referral earnings (pending + paid commission_usd) for the authenticated subscriber, with the 20%/3-month policy and compliance disclaimer. Requires ALGOCHAINS_SUBSCRIBER_KEY. |
| get_my_realized_pnlA | Your realized P&L with LIVE (real broker) and PAPER (simulated) results STRICTLY segregated. Paper results carry the CFTC Reg. 4.41(b) hypothetical-performance disclaimer; they are never co-mingled with live results. Requires ALGOCHAINS_SUBSCRIBER_KEY. |
| join_waitlistA | Add an email to the AlgoChains waitlist. Stores in Supabase, sends welcome email via Resend. Returns waitlist position. |
| get_waitlist_statsA | Get waitlist aggregate statistics: total signups, by status, by broker interest. |
| verify_codeA | Verify a code sent via email or SMS. Returns valid=true if the code is correct and not expired. |
| track_platform_eventA | Track a platform analytics event (page_view, signup, broker_connected, purchase, etc.). Used for soft-launch funnel monitoring. |
| get_analytics_summaryA | Get platform analytics summary for the last N days: total events, unique users, conversion funnel, top pages, by-day breakdown. |
| initiate_password_resetA | Send a password reset link to a user's email via Supabase Auth. Always returns success to prevent user enumeration. |
| complete_password_resetA | Complete a password reset using the access token from the reset email link. Validates password policy (12 chars, upper/lower/number/special). |
| initiate_account_recoveryA | Start account recovery for users who cannot receive the reset email. Creates a support ticket and provides recovery instructions. |
| get_password_policyA | Return the current password policy requirements for AlgoChains accounts. |
| get_kronos_shadow_statsA | Get Kronos foundation model shadow-mode prediction statistics per bot. Shows agreement_rate, total_logged, direction accuracy, and promotion readiness vs the Bayesian ensemble. Read-only observer — Kronos has zero influence on live trades until manually graduated. |
| get_signal_trade_correlationA | Read-only signal->trade traceability audit. Joins signals_trace to trade_log and returns NULL-rate KPIs (fill_id_coverage, placed_price_coverage, bracket intent nulls, P&L gap, per-column null rates). Thin wrapper over the control-tower correlation-audit script (runs --json --no-slack) — does not post to Slack. Defaults to filled-only rows so unfilled signal-only rows do not inflate fill-stage NULL rates. |
| list_prop_fundsA | List supported prop firms with 2026-verified rules (Apex, Topstep, MyFundedFutures, TradeDay, Bulenox, Earn2Trade, FTMO, Tradeify). Returns fees, profit targets, drawdown type/limits, consistency rules, automation policy, and rules_verified_date. |
| evaluate_strategy_for_prop_fundA | Score a strategy against every supported prop firm (or a specific one) using its live stats. Returns ranked eligible funds with strengths/warnings. |
| numerai_statusA | Return Numerai tournament configuration status: env vars as booleans (never key values), dataset version, round cadence, and proxy_mmc labeling notes. Safe to call anytime — no API calls made. HK-6: NUMERAI_SECRET_KEY never appears in response. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| trade | Place a trade on any broker with proper risk checks. |
| portfolio_review | Get a comprehensive portfolio review across all connected brokers. |
| submit_strategy | Walk through submitting a strategy for MCPT validation. |
| browse_bots | Explore the AlgoChains marketplace for validated trading bots. |
| risk_review | Comprehensive portfolio risk review: VaR, stress tests, concentration, margin. |
| compliance_check | Run a full compliance health check: kill switch status, violations, audit integrity. |
| onboard_tenant | Walk through onboarding a new white-label tenant step by step. |
| build_strategy | AI-guided strategy creation using the Strategy Builder SDK. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| V17 Tool Mode Status | Current tool exposure mode (smart/full), Tier 1 tool count, total tool count, and index stats. |
| MCP Tool Implementation Manifest | All tools with implementation_status (full|partial|stub), required env vars, Tier-1 flags. For CI and Onyx. |
| Broker Connection Status | Live status of all configured and connected brokers. |
| Validation Gate Thresholds | Current thresholds for all 6 strategy validation gates. |
| Server Diagnostics | Tool call statistics, error rates, and recent call history. |
| V10 ML Model Registry | Registered ML models, their stages, and metrics. |
| V10 Feature Sets | Defined feature sets for ML training pipelines. |
| V10 RL Agents | Reinforcement learning agents, training state, and metrics. |
| V11 Order State | Institutional order manager state — active orders and history. |
| V11 Algo Executors | Active algorithmic execution engines and their status. |
| V12 Market Regimes | Detected market regimes and transition probabilities. |
| V12 Active Alerts | Configured market alerts and their trigger history. |
| V13 Scrape Jobs | Web scraping jobs and their status. |
| V14 Agent Swarms | Active agent swarms, members, and task status. |
| V15 DeFi Positions | DeFi protocol positions, yields, and risk status. |
| V16 SaaS Tenants | Multi-tenant SaaS platform tenants and subscription status. |
| Rate Limit Status | Current rate limit bucket status for all categories. |
| Circuit Breaker Status | Circuit breaker state for each engine category — failures, open/closed, cooldown. |