Algofinix Quant Desk — Blind Swarm, Trade Audit & Portfolio VaR
Blind Swarm stock debates, 7-engine FIFO trade/tilt audits & 95% VaR crash hedge stress-testing.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"quant-mcp": {
"url": "https://api.algofinix.ai/mcp"
}
}
}Remote endpoints
https://api.algofinix.ai/mcpstreamable-httpWhat it can do
Tool inventory
Tools (4)
🟢run_blind_swarm(ticker, thesis, agent_count, total_rounds, blind_rounds, ...)
Costs 5 credits fresh (only 1 credit if served from 60-min ticker cache). Stress-test any stock/ETF ticker or investment thesis with 12 specialist AI market archetypes across a 4-round Two-Phase Blind-then-Calibrated debate. Phase 1 runs strictly BLIND (Wall Street analyst consensus stripped) to compute an independent first-principles price target; Phase 2 reveals Wall Street consensus to measure exact Blind-vs-Street Divergence %, round-by-round trajectory, top bull/bear rebuttals, key risks, and a public shareable report URL.
Input Schema
{
"type": "object",
"properties": {
"ticker": {
"type": "string",
"description": "Uppercase stock or ETF symbol, e.g. 'NVDA', 'AAPL', 'TSLA', 'SPY'."
},
"thesis": {
"type": "string",
"description": "Optional investment question or thesis to debate, e.g. 'Will NVDA beat Q4 data-center margins?'"
},
"agent_count": {
"type": "integer",
"minimum": 4,
"maximum": 15,
"default": 12,
"description": "Number of specialist market agents (default full 12-archetype panel)."
},
"total_rounds": {
"type": "integer",
"minimum": 2,
"maximum": 6,
"default": 4,
"description": "Total debate rounds (default 4: 2 blind + 2 calibration)."
},
"blind_rounds": {
"type": "integer",
"minimum": 1,
"maximum": 5,
"default": 2,
"description": "Rounds run without Wall Street analyst ratings/targets before calibration."
},
"time_horizon_days": {
"type": "integer",
"minimum": 1,
"maximum": 730,
"description": "Optional forecast horizon in calendar days (default 60)."
},
"force_refresh": {
"type": "boolean",
"default": false,
"description": "Set true to bypass the 60-minute ticker+thesis cache."
},
"prefer_deterministic": {
"type": "boolean",
"default": false,
"description": "Set true for deterministic quantitative factor simulation (0 external LLM calls)."
},
"market_context_override": {
"type": "object",
"description": "Optional market seed override for deterministic backtests/evals."
}
},
"required": [
"ticker"
]
}🟢audit_trading_behavior(trades, account_equity, input_mode, prefer_deterministic)
Costs 2 credits. Audits closed trades OR raw BUY/SELL broker fills (automatically FIFO-paired) across 7 quantitative behavioral engines: Revenge Trading (re-entry <=30 min after a loss), Hold-Time Asymmetry (holding losers longer than winners), Overtrading, Symbol Obsession, Drawdown Tilt, Time-of-Day Win Windows, and Best Statistical Edge Setup. LLM EXTRACTION RULE: If the user uploads a broker CSV, PDF, or screenshot (Robinhood, IBKR, Webull, Topstep, Schwab, etc.), parse their rows into the `trades` array and call this tool directly—no broker account linking required.
Input Schema
{
"type": "object",
"properties": {
"trades": {
"type": "array",
"minItems": 1,
"description": "Closed round-trip trades or raw BUY/SELL execution fills.",
"items": {
"type": "object",
"required": [
"symbol"
],
"properties": {
"symbol": {
"type": "string",
"description": "Ticker symbol, e.g. 'NVDA'"
},
"side": {
"type": "string",
"enum": [
"buy",
"sell",
"long",
"short",
"sell_short",
"buy_to_cover"
],
"default": "buy"
},
"quantity": {
"type": "number",
"exclusiveMinimum": 0,
"default": 1
},
"entry_price": {
"type": "number",
"minimum": 0
},
"exit_price": {
"type": "number",
"minimum": 0
},
"price": {
"type": "number",
"minimum": 0,
"description": "Fill price for raw BUY/SELL legs"
},
"pnl": {
"type": "number",
"description": "Realized P&L in USD (optional if prices or raw fills given)"
},
"entry_timestamp": {
"type": "string",
"description": "ISO-8601 entry timestamp"
},
"exit_timestamp": {
"type": "string",
"description": "ISO-8601 exit timestamp"
},
"timestamp": {
"type": "string",
"description": "Execution timestamp for raw fills"
},
"duration_minutes": {
"type": "integer",
"minimum": 0
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"account_equity": {
"type": "number",
"minimum": 0,
"default": 0,
"description": "Optional current portfolio equity in USD for drawdown tilt & % sizing alerts."
},
"input_mode": {
"type": "string",
"enum": [
"auto",
"closed_trades",
"raw_fills"
],
"default": "auto"
},
"prefer_deterministic": {
"type": "boolean",
"default": false
}
},
"required": [
"trades"
]
}🟢stress_test_portfolio_hedge(positions, cash, risk_tolerance, scenario_shocks, strategy_style, ...)
Costs 2 credits. Stress-tests any equity/ETF portfolio across market crash scenarios (e.g. -5%, -10%, -15%, -20%), computes portfolio beta and HHI concentration risk, and generates concrete dollar-impact hedge actions enforcing a strict 25% max-trim guardrail. LLM EXTRACTION RULE: If the user shares a portfolio screenshot, table, or plain English holdings (e.g. '$50k NVDA, $30k QQQ, $20k cash'), extract `positions` and call this tool directly.
Input Schema
{
"type": "object",
"properties": {
"positions": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": [
"symbol"
],
"properties": {
"symbol": {
"type": "string",
"description": "Ticker symbol, e.g. 'NVDA', 'QQQ'"
},
"market_value": {
"type": "number",
"description": "Position value in USD"
},
"qty": {
"type": "number",
"description": "Share count (optional if market_value provided)"
},
"current_price": {
"type": "number",
"exclusiveMinimum": 0
},
"avg_entry_price": {
"type": "number",
"exclusiveMinimum": 0
},
"side": {
"type": "string",
"enum": [
"long",
"short"
],
"default": "long"
},
"beta": {
"type": "number",
"description": "Optional beta override vs S&P 500"
}
}
}
},
"cash": {
"type": "number",
"minimum": 0,
"default": 0
},
"risk_tolerance": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.5,
"description": "0.0 = maximum protection, 1.0 = aggressive risk tolerance."
},
"scenario_shocks": {
"type": "array",
"items": {
"type": "number"
},
"default": [
0.05,
0.1,
0.15,
0.2
],
"description": "Market drop shocks as decimals (0.10) or whole percentages (10)."
},
"strategy_style": {
"type": "string",
"enum": [
"taleb",
"dalio",
"buffett",
"growth"
],
"description": "Optional hedge philosophy."
},
"prefer_deterministic": {
"type": "boolean",
"default": false
}
},
"required": [
"positions"
]
}🟢check_algofinix_credits
Costs 0 credits (free). Returns your current Algofinix Agent credit balance, recent ledger activity, tool credit schedule, and one-click Stripe Checkout top-up URLs.
Input Schema
{
"type": "object",
"properties": {}
}Community
Evidence