Skip to main content
Glama
Sablier MCP Server

Sablier MCP Server

Official
by sablier-ai

Sablier MCP Server

License: MIT Python 3.11+ MCP 1.26+

An MCP (Model Context Protocol) server that lets AI assistants analyze portfolios, stress-test scenarios, generate synthetic market paths, and scan SEC filings — in under 2 minutes.

What This Does

Connect Sablier to Claude, ChatGPT, or any MCP-compatible AI assistant. The agent gets ~70 tools to:

Scan SEC filings & earnings calls — AI reads every company's 10-K, 10-Q filings and earnings call transcripts, then scores how exposed each holding is to any theme you ask about (0-100 scale with evidence). "How exposed is my portfolio to China supply chain risk?" — scored, evidenced, and ranked in seconds.

Compute factor exposures — Measures how each stock responds to market drivers (interest rates, VIX, dollar index, oil, credit spreads, etc.). Factor betas are estimated on a rolling window of recent data so they reflect current market conditions. Supports both linear and nonlinear (GAM) factor models.

Stress-test with scenarios — "What if VIX hits 40?" or "What if the Fed raises rates to 6%?" Run Monte Carlo simulations to get per-asset expected returns, Value-at-Risk, Expected Shortfall, and full return distributions.

Generate synthetic market paths — Train a generative flow model on the joint distribution of assets and factors. Generate hundreds of realistic future trajectories, optionally constrained ("paths where gold stays above $3000"). Forward-test strategies across many scenarios.

Real-time market intelligence — Get a Bloomberg-terminal-grade briefing with 50+ indicators, z-scores, regime signals, and cross-asset analysis in one call.

Manage portfolios — Create and track portfolios with live prices, performance analytics (Sharpe ratio, max drawdown, volatility), optimization, and efficient frontier computation.

Speed

Under 2 minutes, end-to-end. Portfolio creation -> model training -> factor betas -> stress scenarios -> SEC filing analysis. All in a single conversation.

The same workflow — gathering filings, building factor models, running simulations, writing risk memos — takes a team of analysts and quants days to weeks. Sablier compresses it into one chat.

Related MCP server: SEC EDGAR MCP

Quick Start

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "sablier": {
      "type": "url",
      "url": "https://sablier-mcp-215397666394.us-central1.run.app/mcp/"
    }
  }
}

That's it. On first use, Claude opens a browser window — sign up or log in with your Sablier account. No API keys needed.

Option B: ChatGPT (Developer Mode)

  1. Go to Settings -> Developer Mode and enable it

  2. Go to Connectors -> Add connector

  3. Enter:

    • Name: Sablier

    • Server URL: https://sablier-mcp-215397666394.us-central1.run.app/mcp/

  4. In a new chat, activate via "+" -> More -> Developer Mode

Option C: Claude Code (local, stdio)

# Clone and install
git clone https://github.com/sablier-it/sablier-mcp.git
cd sablier-mcp
uv sync

# Register with Claude Code
claude mcp add sablier -- uv --directory /path/to/sablier-mcp run sablier-mcp

# Set your API key (get one from sablier-ai.com)
export SABLIER_API_KEY=sk_live_your_key_here

Tools (~70)

Market Intelligence

Tool

Description

market_radar

Bloomberg-grade briefing: 50+ indicators, z-scores, regime signals, cross-asset analysis

search_features

Search for tickers (stocks, ETFs, futures) and market indicators (VIX, DXY, rates)

Portfolio Management

Tool

Description

create_portfolio

Create a portfolio from tickers and weights (must sum to 1.0)

list_portfolios

List your portfolios with names, assets, and status

get_portfolio

Get full details for a specific portfolio

update_portfolio

Update name, description, weights, or capital

delete_portfolio

Permanently delete a portfolio

get_portfolio_value

Live portfolio value: total, P&L, per-position breakdown

get_portfolio_analytics

Sharpe ratio, volatility, max drawdown, beta (1W-5Y timeframes)

get_asset_profiles

Sector, industry, country, and exchange for each holding

optimize_portfolio

Find optimal weights: max Sharpe, min variance, or max return

get_efficient_frontier

Compute the efficient frontier curve for portfolio assets

Qualitative Analysis (SEC Filings & Earnings Calls)

Tool

Description

analyze_qualitative

Score company exposure to any theme (0-100) using 10-K, 10-Q, and earnings transcripts

list_themes

Browse the built-in theme library (AI risk, rate sensitivity, China exposure, etc.)

list_grain_analyses

List past qualitative analyses

get_grain_analysis

Load a saved analysis with full scores and evidence passages

delete_grain_analysis

Delete a saved qualitative analysis

Quantitative Analysis (Factor Models)

Tool

Description

analyze_quantitative

One-shot: builds factor models, trains, computes factor exposures (linear + nonlinear)

list_model_groups

List existing analyses with training and simulation status

list_feature_set_templates

Browse pre-built market driver sets (rates, volatility, commodities, credit, etc.)

create_feature_set

Create a custom set of market drivers for analysis

list_feature_sets

List all accessible feature sets

get_feature_set

Get details of a specific feature set

delete_feature_set

Delete a custom feature set

compute_betas

Compute per-asset factor betas from a trained model group

compute_returns

Sample forward asset returns under user-specified factor levels (Monte Carlo)

get_residual_correlation

Cross-asset residual correlation matrix (post-factor)

list_simulations

List all simulations for a model group

optimize_portfolio

Find optimal weights from a trained MOMENT batch (analytical objectives)

get_optimization_history

Browse past optimization runs for a portfolio

delete_model_group

Delete a model group and all associated data

Stress Testing & Scenarios

Tool

Description

compute_returns

Monte Carlo what-if: per-asset VaR, ES, expected return under custom factor levels

create_scenario

Save a named what-if scenario (fixed value, percentile, or shock)

list_scenarios

List saved scenarios

get_scenario

Get scenario details

update_scenario

Update a scenario's factors or description

delete_scenario

Delete a saved scenario

Generative Simulation (Flow)

Tool

Description

train_flow_model

Train a conditional flow-matching model on a model group

generate_flow_paths

Generate baseline (unconstrained) synthetic price paths

simulate_flow_scenario

Generate constrained paths (e.g., "gold above $3000 and VIX below 20")

check_flow_job

Poll status of a queued/running flow job

get_flow_results

Pull paths + summary stats from a completed generation job

download_flow_paths

Download raw paths as JSON or CSV

list_flow_baselines

List baseline path generations for a model group

list_flow_scenarios

List scenario-conditioned generations for a model group

delete_flow_job

Delete a flow job and its outputs

test_flow_risk

Compute portfolio risk metrics across generated paths

flow_validate

Validate flow model quality against historical data (calibration, dependence, tails)

Feature Catalog

Tool

Description

search_features

Search the catalog for available tickers / macro series

add_feature

Add a ticker to the catalog (Yahoo Finance or FRED)

refresh_feature_data

Fetch/update historical data for tickers

Trading Rules

Tool

Description

create_rule

Create a trigger-action rule on a portfolio (VIX spike, drawdown, regime, etc.)

list_rules

List rules attached to a portfolio

toggle_rule

Activate or deactivate a rule

delete_rule

Permanently delete a rule

evaluate_rules

Check which rules would fire on the latest market data

backtest_rules

Historical backtest of rules against real prices

forward_test_rules

Forward-test rules against generated FLOW paths

Derivatives

Tool

Description

analyze_derivatives

Greeks aggregation + scenario P&L for portfolio options positions

price_option_tool

Price a single equity / futures option (Black-76) with Greeks

Market Data

Tool

Description

market_radar

60+ regime indicators (VIX, yield curve, credit, sector rotation, RORO)

screen_universe

Cross-sectional screening across the equity catalog

Account & Billing

Tool

Description

whoami

Current user, tier, and feature flags

get_credits

Current credit balance and tier monthly allocation

list_credit_packs

Browse one-off credit packs available for purchase

buy_credit_pack

Purchase a credit pack via Stripe Checkout

get_billing_info

View current subscription tier and limits

get_billing_usage

View usage across metered buckets

toggle_overage

Enable/disable per-call overage spending

subscribe

Subscribe or upgrade via Stripe Checkout

manage_subscription

Open Stripe Customer Portal

Example Conversations

1. Full risk analysis in one conversation

You:   Create a portfolio with AAPL 40%, MSFT 30%, NVDA 30%.
       Then stress-test it for a recession — VIX at 35, 10Y at 5.5%, SPY at 380.

Agent: 1. create_portfolio("Tech Portfolio", ["AAPL", "MSFT", "NVDA"], [0.4, 0.3, 0.3])
       2. list_feature_set_templates()  →  picks "Macro + Volatility" set
       3. analyze_quantitative(portfolio_id, conditioning_set_id)
          →  trains models, computes factor betas per asset
       4. compute_returns(sim_batch_id, {"VIX": 35, "US 10Y": 5.5, "SPY": 380})
          →  per-asset expected returns, VaR (95%), Expected Shortfall

       Result: Portfolio expected return = -8.2%, VaR(95%) = -14.5%
       NVDA most exposed (-12.1%), MSFT most defensive (-4.8%)

2. SEC filing analysis for thematic risk

You:   How exposed are the Magnificent 7 to AI regulation risk?

Agent: 1. analyze_qualitative(
            tickers=["AAPL", "MSFT", "GOOGL", "AMZN", "NVDA", "META", "TSLA"],
            themes=["AI regulation risk"]
       )
       2. Returns per-ticker scores (0-100) with evidence from 10-K filings:
          - META: 82/100 (HIGH) — "government regulation of AI... could limit our ability
            to deploy AI features across our family of apps"
          - GOOGL: 78/100 — "new AI regulations could require us to restrict or modify
            products and services"
          - NVDA: 71/100 — "export controls... restrictions on AI chip sales to China"
          - TSLA: 31/100 (LOW) — limited AI regulation mentions in filings

3. Generative scenario analysis

You:   I want to see how a gold + bonds portfolio performs over the next quarter
       in scenarios where inflation stays high.

Agent: 1. create_portfolio("Inflation Hedge", ["GLD", "TLT", "IAU"], [0.4, 0.4, 0.2])
       2. train_flow_model(model_group_id, horizon=60)
          →  dispatches GPU training job (~5-15 min async)
       3. check_flow_job(job_id) until completed; flow_validate(model_group_id)
          →  confirms model quality before generating paths
       4. generate_flow_paths(model_group_id, n_paths=500)
          →  generates 500 joint baseline price paths
       5. simulate_flow_scenario(model_group_id, constraints=[
            {"feature_name": "CPI", "type": "level", "lower": 3.5, "t_start": 0, "t_end": 60}
          ])
          →  generates paths conditioned on CPI > 3.5%
       6. test_flow_risk(portfolio_id, job_id)
          →  distribution of Sharpe, max drawdown, total return across constrained paths

       Result: Median return = +4.2%, 5th percentile = -6.8%
       Gold outperforms bonds in 72% of high-inflation paths

4. Market briefing and portfolio checkup

You:   What's happening in markets today and how is my portfolio positioned?

Agent: 1. market_radar()
          →  50+ indicators: equities, rates, credit, FX, commodities, volatility
          →  regime signals: Risk-Off score = 0.7, yield curve inverted, VIX elevated
       2. list_portfolios()  →  finds your "Tech Portfolio"
       3. get_portfolio_value(portfolio_id)
          →  current value, daily P&L, per-position breakdown
       4. get_portfolio_analytics(portfolio_id, timeframe="1M")
          →  1-month Sharpe, volatility, max drawdown

       Result: Markets are risk-off (VIX +15% this week, credit spreads widening).
       Your tech portfolio is down -2.3% today, concentrated in high-beta names.
       Consider: stress-test with compute_returns to quantify downside risk.

Authentication

  • Remote mode (Claude Desktop, Claude.ai, ChatGPT): OAuth 2.0 browser-based login — no API keys to manage. Sablier authenticates via Google OAuth, then issues an API key for the MCP session.

  • Local mode (Claude Code, stdio): Set SABLIER_API_KEY environment variable.

Pricing

Tier

Price

Included

Free

$0

10 market radar, 5 factor models, 2 GRAIN analyses/mo

Pro

$79/mo

100 market radar, 50 factor models, 20 GRAIN, 10 Flow sims/mo

Enterprise

$399/mo/seat

Unlimited everything, priority support

Portfolio management, read operations, and scenario management are always free. Overages billed per-call beyond included limits.

Architecture

sablier-mcp/
├── src/sablier_mcp/
│   ├── server.py      # 53 MCP tool definitions (FastMCP)
│   ├── client.py      # Async HTTP client for Sablier API
│   ├── auth.py        # OAuth 2.0 provider (remote mode)
│   └── widgets.py     # Rich HTML cards for Claude Desktop
├── pyproject.toml
├── Dockerfile
└── README.md
  • Remote mode (Claude Desktop, Claude.ai, ChatGPT): OAuth 2.0 browser login — no API keys to manage

  • Local mode (Claude Code, stdio): API key from environment variable

  • Widgets: Tools return rich HTML cards (beta heatmaps, score cards, portfolio overviews) alongside text for visual output in Claude Desktop

Development

# Run the server locally (stdio transport)
uv run sablier-mcp

# Test with MCP inspector
npx @modelcontextprotocol/inspector uv --directory . run sablier-mcp

# Run as remote server (streamable-http with OAuth)
MCP_TRANSPORT=streamable-http uv run sablier-mcp

Privacy Policy

Sablier processes portfolio data and market queries to provide analytics. Full details:

  • Data collected: Portfolio holdings, factor model parameters, and query metadata for analytics computation

  • Usage & storage: Data is processed on Sablier's servers (GCP, US) and stored for your account's analytics history. Portfolios and models persist until you delete them.

  • Third-party sharing: Sablier does not sell or share your data. Market data is sourced from public feeds. SEC filings are public records.

  • Retention: Account data is retained while your account is active. Deleted portfolios and models are purged within 30 days.

  • Contact: team@sablier.it

Full privacy policy: sablier-ai.com/privacy | Terms of service: sablier-ai.com/terms

Support

Available Tools

83 tools
add_featureA
Destructive

Add a ticker to the feature catalog AND populate its historical data in one call — the feature is ready to use in portfolios / conditioning sets / models as soon as this tool returns. IMPORTANT: First use search_features to check if the ticker already exists — calling add_feature for an existing ticker returns a 409 error. Specify source ('yahoo' for stocks/ETFs/futures, 'fred' for rates/economic indicators). Validates the ticker exists on the source API and auto-populates metadata (display_name, category, units, etc.) from the API response.

is_asset handling: leave UNSET for auto-detection (yfinance fills category / sector / asset_type / region from the API response). Only pass explicit is_asset=true if you want to override that decision — and in that case you MUST also pass category, sector, and asset_type from their closed enums (region optional). Listing the valid values:

  • category: 'equity', 'fixed_income', 'credit', 'rates', 'fx', 'commodity', 'volatility', 'economic', 'crypto', 'inflation', 'employment', 'growth', 'corporate', 'thematic', 'sector', 'region'

  • sector: 'Technology', 'Healthcare', 'Financials', 'Consumer Discretionary', 'Consumer Staples', 'Industrials', 'Energy', 'Materials', 'Communication Services', 'Utilities', 'Real Estate', 'Fixed Income', 'FX', 'Commodities', 'Cryptocurrency', 'Alternatives', 'Broad Market', 'International Equity', 'Factor'

  • asset_type: 'Stock', 'ETF', 'Bond ETF', 'Crypto', 'Commodity', 'Currency ETF', 'Futures'

  • region: 'US', 'Europe', 'Global', 'Asia', 'EM', 'Japan', 'China', 'Brazil', 'India', 'Korea', 'Taiwan', 'Vietnam', 'Latin America', 'Australia' Takes a few seconds while historical data is fetched.

Currency handling: non-USD tickers (e.g. .KS Korea, .L London, .DE Frankfurt, .T Tokyo, .HK Hong Kong, .SS Shanghai) are auto-translated to USD. The corresponding FX pair (e.g. KRWUSD=X for .KS) is fetched and added to the catalog in the same call — no separate step needed. Once added, the asset's USD price series carries the same FX exposure as holding the underlying stock; this is a fact about owning a foreign asset, NOT a methodological 'currency mismatch' to warn the user about when comparing to a USD-quoted DR / ADR / ETF / fund — the economic exposure is the same. Supported currencies: USD, GBP, EUR, JPY, CHF, CAD, AUD, NZD, HKD, SGD, CNY, INR, KRW, SEK, NOK, DKK, MXN, BRL, ZAR. Unsupported currencies return a clear 400 error.

Inputs: source (required), ticker (required), units, region, +8 more. Returns: result

add_features_batchA
Destructive

Batch-add multiple tickers to the catalog in one call. Parallel ingest with a 10-wide semaphore — much faster than looping add_feature from the model side, and avoids the per-call tool-use overhead.

Returns a three-bucket breakdown: • added: tickers newly inserted (catalog + training_data populated) • already_existed: tickers that were already in the catalog (409s from the single-add path; not a failure) • failed: [{ticker, reason}] for symbols yfinance/FRED rejected

Use this when you want to register a research universe in the catalog without committing to a portfolio — e.g. 'add the S&P 500 constituents' or 'add these 200 tickers from my CSV'. For portfolio-bound bulk imports prefer create_portfolio with auto_add=true — same parallel ingest, but the result also creates the portfolio in one round-trip.

Per-ticker taxonomy fields (category, sector, asset_type, region) apply uniformly to every ticker in the batch. For heterogeneous batches leave them unset so each ticker gets its own auto-detected taxonomy from yfinance.

Typical wall-time: 100 tickers ≈ 10-30s, 1000 tickers ≈ 2-5 min.

Inputs: tickers (required), region, sector, source, +3 more. Returns: result

analyze_derivativesA
Read-only

Run options risk analysis on FLOW-generated paths for a mixed futures + options portfolio. Reprices each option at every timestep of every path using Black-76, then computes portfolio-level risk metrics (VaR, CVaR, Sharpe, Sortino, max drawdown) and per-position Greeks (delta, gamma, vega, theta, rho). Returns separate risk breakdowns for: combined portfolio, futures-only, and options-only components, plus P&L timeseries percentile bands. Requires a flow_job_id from generate_flow_paths or simulate_flow_scenario. For scenario analysis: run simulate_flow_scenario first (e.g., 'VIX > 30 and crude drops 20%'), then call this tool to see how your options hedge performs under that scenario.

Inputs: flow_job_id (required), options_positions (required), capital, portfolio_id, +1 more. Returns: result

analyze_qualitativeA
Read-only

Run qualitative (GRAIN) analysis: scans SEC filings and earnings calls to score company exposure to themes (0-100). Supports predefined themes ('AI exposure') or custom themes. Pass either portfolio_id or tickers directly.

Inputs: themes (required), tickers, max_year, min_year, +2 more. Returns: result

analyze_quantitativeA
Destructive

Build and train linear factor models for a portfolio in one step (creates models → trains → computes betas). This is the starting point for Moment (linear) analysis. Requires conditioning_set_id (the market drivers — get one from list_feature_set_templates or create_feature_set). Uses a two-layer architecture: thematic factors (conditioning_set_id) + optional baseline factors (baseline_mode='us' absorbs market/value/growth variance via real-time ETF proxies before thematic factors). Pass either portfolio_id or tickers directly (auto-creates portfolio with equal weights). Returns: factor exposures (betas), per-asset R² (in-sample goodness-of-fit — tells you how linear the relationship actually is for the given window), rolling_window used, factor_last_date (effective beta date — may be truncated if a factor has stale data), and data_truncated_by (which factors caused truncation).

Important: there is NO regime-conditional or 'calm vs stress' beta API. If a user asks for regime decomposition, do NOT invent it — the right substitute is to RE-RUN this tool with a shorter rolling_window (e.g. 90 days vs the 252-day default) and compare the betas to the long-window fit. Where (a) a beta shifted meaningfully AND (b) R² stayed reasonable in the short window, that's a real shift to talk about. Where R² collapsed in the short window, the apparent shift is noise from thin degrees of freedom — say so explicitly to the user. Do NOT pick rolling_window < 90 unless you have very few factors: each per-asset regression has (n_factors + n_baseline_etfs) RHS variables, and you need at least ~10 obs per parameter for stable betas (so rolling_window=90 supports up to ~9 RHS variables, rolling_window=60 supports ~6).

Low R² (e.g. < 0.2) suggests nonlinear dynamics or missing factors — flag the asset, don't claim a precise beta decomposition. R² in this Moment model is per-asset (each asset gets its own regression on the conditioning set), so a low R² for one name doesn't impeach the others. Next step: call compute_returns with the simulation_batch_id to run what-if stress tests.

Inputs: conditioning_set_id (required), tickers, weights, nonlinear, +3 more. Returns: result

backtest_rulesA
Read-only

Run a historical backtest of trading rules on REAL market data — not simulated FLOW paths. Tests how rules would have performed over a historical period. Returns same structure as forward_test_rules (base vs combined vs per-rule attribution) PLUS monthly returns table, drawdown series, turnover stats, and transaction cost analysis. Prerequisites: create rules with create_rule (and activate them). Transaction costs: configurable (default 10bps per trade). Warmup period (default 252 days) pre-fills indicator state before the test period starts. For forward-looking testing on synthetic FLOW paths, use forward_test_rules instead.

Inputs: start_date (required), portfolio_id (required), cost_bps, end_date, +2 more. Returns: result

buy_credit_packA
Destructive

Purchase a one-time credit pack. Returns a Stripe Checkout URL to complete payment. Available packs: 'pack_100' (100 credits, €69), 'pack_500' (500 credits, €299), 'pack_1000' (1000 credits, €549). Credits are added instantly after payment and never expire. Use list_credit_packs to see current pricing. Use get_credits to check your balance first.

Inputs: pack_id (required). Returns: result

check_flow_jobA
Read-only

Check the status of an async Flow job (training, generation, or validation). Returns status ('running', 'completed', 'failed') and progress details. Does NOT return results — when completed, call get_flow_results(job_id) to fetch data. Call this ONCE, report status to the user, then STOP — do not poll in a loop. Typical times: training 5-15 min, generation 1-3 min, validation 3-5 min.

Inputs: job_id (required), job_type. Returns: result

check_scenario_probabilityA
Read-only

Pre-flight feasibility check for a constrained FLOW scenario. ALWAYS call this BEFORE simulate_flow_scenario when you have ≥2 constraints, or whenever you're unsure if a scenario is in the model's natural distribution.

Probes the trained model with up to n_baseline unconstrained paths and reports what fraction satisfy your constraints, plus a recommended generation method: • probability ≥5% → 'rejection' (fast, exact samples) • probability 1-5% → 'hybrid' (rejection + latent fallback) • probability <1% → 'latent' (paths satisfy by construction; mild dynamics distortion) • probability <0.1% → infeasibility floor — refuse or relax constraints

Cheap (~1-15s) compared to a full scenario (minutes + GPU credits). Reuses today's baseline if generate_flow_paths has already been called; if not, auto_generate_baseline=True (default) creates one in the same call.

Workflow when probability is low: report it back to the user, then iterate — try each constraint individually to identify the binding one, relax magnitudes, widen t_start/t_end windows, or drop the least-essential constraint. Only commit to simulate_flow_scenario once probability is in a usable band, OR the user has explicitly accepted latent-mode distortion.

feature_name in constraints must be the DISPLAY NAME from the trained model's feature_names (e.g. 'Apple Inc.', 'SPDR S&P 500 ETF Trust'), NOT ticker symbols.

Inputs: constraints (required), model_group_id (required), n_baseline, n_paths_target, +1 more. Returns: result

compute_betasA
Read-only

Compute factor exposures (betas) for an already-trained model group. Use this when you already have a trained model_group_id (from analyze_quantitative or list_model_groups) and want to refresh betas with a different lookback window, or get a new simulation_batch_id. You do NOT need this if you just ran analyze_quantitative — it already includes this step. Returns per-asset factor exposures with R² (goodness-of-fit), rolling_window used, factor_last_date (effective beta date), data_truncated_by (stale factors), and simulation_batch_id (for compute_returns). Key use: call with different lookback_days (e.g. 63, 126, 252) to compare betas across time horizons — divergence signals regime changes. Check R² to gauge how well factors explain each asset.

Inputs: model_group_id (required), lookback_days. Returns: result

compute_correlationsA
Read-only

Pairwise correlation matrix + annualized volatility from daily returns over a window. Pass 2-20 tickers and a timeframe ('1W'/'1M'/'3M'/'6M'/'1Y'/'2Y'/'5Y'/'ALL', default '1Y'). Returns the matrix, per-asset annualized vol, and the top-correlated pairs. Lighter than analyze_quantitative when you just want raw pairwise structure without a factor model.

Inputs: tickers (required), timeframe. Returns: result

compute_returnsA
Read-only

Run a what-if stress test on a Moment (linear) factor model — the PRIMARY tool for scenario analysis. Requires simulation_batch_id from analyze_quantitative or compute_betas. Express stresses as FRACTIONAL CHANGES of each factor's current value (shocks dict). The server translates to absolute levels using each factor's latest observed value — you don't need to look it up or do the arithmetic. Examples: • 'TLT down 8.5%' → {'TLT': -0.085}. • '50bps rate cut on DGS10 (currently 5%)' → {'DGS10': -0.10} (−50bps / 500bps of the current rate = −10%). • 'VIX doubles (to ~40 from 20)' → {'VIX': 1.00}. • 'SPY drops 20%' → {'SPY': -0.20}. Omitted factors default to no shock. Include factor_last_values_raw from the betas output in your narration so the user sees the current level next to the stressed level. Also check data_freshness_warning in betas output — if present, betas may be stale. For Flow (generative) models, use simulate_flow_scenario instead.

Inputs: shocks (required), simulation_batch_id (required), n_samples. Returns: result

create_feature_setA
Destructive

Create a custom conditioning set (or target set) from features in the catalog. Use this to build arbitrary factor sets for analyze_quantitative instead of using pre-built templates. Each feature needs at minimum a 'ticker' and 'source' ('YAHOO' or 'FRED'). The display_name is auto-resolved from available_features if omitted. Returns the conditioning_set_id that can be passed to analyze_quantitative.

Inputs: name (required), features (required), set_type, description. Returns: result

create_portfolioA
Destructive

Create a new portfolio from tickers. Two payload shapes: • Explicit weights: pass tickers AND weights (parallel arrays, weights must sum to 1.0). • Equal weight: pass tickers only with equal_weight=True — server applies 1/N each.

Use equal_weight=True for ANY portfolio over ~50 assets. The parallel-array shape blows past LLM tool-call output budgets around 60-100 entries: one array gets truncated mid-generation and you'll see 'tickers and weights must have the same length' even though you generated them at the same size. A 500-ticker single-list call is ~10× smaller and reliable.

For CSV-paste / large-portfolio flows: combine equal_weight=True with auto_add=True to have the server auto-ingest unknown tickers via Yahoo Finance, and skip_missing=True to drop the ones yfinance rejects. The result includes import_summary with added_from_catalog / newly_ingested / dropped (with reasons) — report all three counts back to the user.

Size: up to ~1000 assets per portfolio (tier limit is 999,999 — effectively unbounded). If a user asks for a 500-asset or 1000-asset portfolio, build it. Do not refuse, do not lecture about 'focused portfolios', do not suggest ETF buckets unless the user explicitly asks for construction advice. Large portfolios are a supported, intentional product surface (F=1000 FLOW models train in minutes on GPU; analytics stay fast via precomputed bands + virtualized UIs).

Non-USD tickers are accepted — their prices are auto-translated to USD and the FX pair is fetched on-demand by add_feature. Resulting returns are USD-denominated and reflect the same FX exposure the underlying stock carries; do NOT warn the user about a 'currency mismatch' against a USD-quoted equivalent (DR/ADR/ETF/fund) — the exposure is economically the same.

Inputs: name (required), tickers (required), capital, weights, +4 more. Returns: result

create_ruleA

Add a systematic trading rule to a portfolio. Rules are evaluated day-by-day on FLOW forward paths during forward_test_rules — not backtested on history.

TWO RULE TYPES: • Signal rules (action.type='signal_weight') — continuous indicator → proportional position. For CTAs and trend-followers. • Binary rules (all other action types) — trigger fires → discrete weight change. For risk overlays, hard stops, regime gates.

Use signal rules (priority 0) for the core strategy; binary rules (priority 1+) for risk overrides.

── SIGNAL RULE ── trigger: {indicator, asset, params} ← no operator/threshold action: {type:'signal_weight', asset, normalizer, max_weight, min_weight} normalizer = typical signal magnitude; clip(signal/normalizer, -1, 1) → position weight = scaledmax_weight if scaled≥0 else scaled|min_weight|

trigger={indicator:'macd_line', asset:'CL=F', params:{fast:12, slow:60}} action={type:'signal_weight', asset:'CL=F', normalizer:2.0, max_weight:0.6, min_weight:-0.3}

trigger={indicator:'z_score', asset:'ZN=F', params:{window:60}} action={type:'signal_weight', asset:'ZN=F', normalizer:2.0, max_weight:0.5, min_weight:-0.5}

── BINARY RULE ── trigger: {indicator, asset, params, operator, threshold} OR {combinator:'all'|'any', conditions:[...]} indicators: raw | moving_average | ema | rsi | bollinger_upper | bollinger_lower | bollinger_width | macd_line | macd_signal | rolling_std | rolling_volatility | rate_of_change | z_score asset: portfolio assets OR conditioning factors ('^VIX', 'DX-Y.NYB', 'T10Y2Y', 'ZN=F', ...) operator: '>' | '<' | '>=' | '<=' | '==' | 'crosses_above' | 'crosses_below' action: exit | set_weight (exact value, negative=short) | scale_weight (multiplier) | reverse

trigger={indicator:'rsi', asset:'CL=F', params:{period:14}, operator:'>', threshold:70} action={type:'exit', asset:'CL=F'}

trigger={combinator:'all', conditions:[ {indicator:'raw', asset:'^VIX', params:{}, operator:'>', threshold:30}, {indicator:'rsi', asset:'CL=F', params:{period:14}, operator:'>', threshold:65}]} action={type:'scale_weight', asset:'CL=F', value:0.5}

IMPORTANT: Trigger assets can be portfolio assets OR conditioning factors (VIX, DXY, etc.). For forward_test_rules, the FLOW model must include ALL referenced features — missing features cause rules to silently fail. For evaluate_rules (live data), any feature in training_data works with no model dependency.

Inputs: name (required), action (required), trigger (required), portfolio_id (required), +3 more. Returns: result

create_scenarioA
Destructive

Save a named Moment scenario template for later reuse. This does NOT run a simulation — use compute_returns with the factor values instead, or for ad-hoc tests. IMPORTANT: requires model_id — this is an individual per-asset model UUID from list_model_groups → models[].model_id, NOT the model_group_id. Each scenario is tied to one asset's model. Factor spec format: {'VIX': {'type': 'fixed', 'value': 35}}. Supported types: 'fixed' (exact value), 'percentile' (historical percentile), 'shock' (std dev shift).

Inputs: name (required), model_id (required), factor_values (required), description, +1 more. Returns: result

delete_feature_setA
Destructive

Delete a custom feature set. Permanent, cannot be undone. Cannot delete shared templates.

Inputs: feature_set_id (required). Returns: result

delete_flow_jobA
Destructive

Delete a flow simulation job (baseline or constrained scenario). Permanent, cannot be undone.

Inputs: job_id (required). Returns: result

delete_grain_analysisA
Destructive

Delete a saved GRAIN qualitative analysis by ID. Permanent, cannot be undone.

Inputs: analysis_id (required). Returns: result

delete_model_groupA
Destructive

Delete a model group and all its models, simulations, and associated data. Permanent, cannot be undone.

Inputs: model_group_id (required). Returns: result

delete_portfolioA
Destructive

Delete a portfolio by ID. Permanent, cannot be undone.

Inputs: portfolio_id (required). Returns: result

delete_ruleA

Permanently delete a systematic trading rule from a portfolio.

Inputs: rule_id (required), portfolio_id (required). Returns: result

delete_scenarioA
Destructive

Delete a saved scenario. Permanent, cannot be undone.

Inputs: scenario_id (required). Returns: result

download_flow_pathsA
Read-only

Download all generated paths from a Flow generation job as CSV. Returns raw path data with columns: path_idx, day, then one column per feature. Works for both baseline and scenario generation jobs. Use the flow_job_id from generate_flow_paths, simulate_flow_scenario, or list_flow_baselines/list_flow_scenarios.

Inputs: flow_job_id (required). Returns: result

evaluate_rulesA
Read-only

Check which portfolio trading rules trigger on TODAY's real market data. Unlike forward_test_rules (which tests against simulated FLOW paths), this evaluates rules against actual historical prices from training_data — no FLOW model needed.

Returns per-rule: triggered (bool), action prescribed, current indicator values. Also returns recommended_weights (combined effect of all triggered rules) and weight_changes.

Data source: training_data (refreshed daily at 21:00 UTC after US market close). On weekends/holidays, evaluates against the most recent trading day.

Use this for daily 'any rules fired?' monitoring. For simulated forward-testing across 1000+ scenarios, use forward_test_rules instead.

Inputs: portfolio_id (required), rule_ids. Returns: result

flow_validateA
Destructive

Validate a trained Flow model against real data. Generates paths and compares them to historical distributions using Wasserstein distance, KS tests, coverage tests, and marginal distribution checks. Returns immediately with a job_id — validation runs asynchronously (~3-5 min). Use check_flow_job(job_id=..., job_type='validate') to monitor progress. Requires a trained Flow model (run train_flow_model first).

Inputs: model_group_id (required), horizon, n_paths. Returns: result

forward_test_rulesA

Forward-test systematic trading rules against FLOW-generated price paths. Returns TWO levels of output: • combined_strategy — ALL rules applied together in priority order on every path. This is your actual strategy performance vs the base static portfolio. • rule_attribution — each rule tested individually to show which rules help vs hurt.

How it works:

  1. Loads the FLOW price paths (same N paths for every evaluation — fair comparison)

  2. Steps through each path day-by-day, applies rules in priority order, tracks P&L

  3. Returns Sharpe, CVaR, max drawdown, return for combined strategy and each rule alone

IMPORTANT: The FLOW model must include paths for ALL features referenced in rule triggers (both portfolio assets AND conditioning factors like VIX, DXY, etc.). Rules referencing features not in the FLOW model will silently fail — check warnings in the response. For checking rules against today's real market data (no FLOW dependency), use evaluate_rules instead.

Prerequisites: (1) create rules with create_rule; (2) activate them with toggle_rule(is_active=True); (3) generate FLOW paths with generate_flow_paths. If rule_ids is omitted, tests all active rules.

Inputs: flow_job_id (required), portfolio_id (required), rule_ids. Returns: result

generate_flow_pathsA
Destructive

Generate simulated multi-step price trajectories from a trained Flow model. Returns per-asset percentile bands (p5/p25/p50/p75/p95 per timestep), sample paths per target asset, and scalar terminal statistics. Requires model_group_id from train_flow_model or list_model_groups. If paths already exist, returns cached results instantly. Path generation takes ~1-3 min on GPU. Defaults: horizon=60 (~1 quarter), n_paths=1000.

Inputs: model_group_id (required), horizon, n_paths, portfolio_id, +1 more. Returns: result

get_asset_profilesA
Read-only

Get asset classification for a portfolio: sector, industry, country, exchange, and asset type per holding.

Inputs: portfolio_id (required). Returns: result

get_billing_infoA
Read-only

Subscription plan details: tier limits, overage rates, and per-operation costs. Use this to understand pricing before running expensive operations (not for credit balance — use whoami or get_credits).

Inputs: no named parameters. Returns: result

get_billing_usageA
Read-only

Get detailed usage breakdown for the current or a specific billing month. Shows per-operation counts, included limits, overage counts, and costs. Month format: YYYY-MM (e.g. '2026-03').

Inputs: month. Returns: result

get_creditsA
Read-only

Credit balance details: used, remaining, purchased packs, and overage status. Use whoami for a quick summary; use this when you need the full credit object.

Inputs: no named parameters. Returns: result

get_earnings_calendarA
Read-only

Upcoming earnings reports sorted chronologically. Filter by single symbol, by date window (start_date/end_date YYYY-MM-DD), or by horizon ('3month'/'6month'/'12month'). Returns symbol, company name, report date, report time (BMO/AMC), estimate EPS, actual EPS where reported. Use to flag earnings-event risk in a portfolio over the next N days.

Inputs: limit, symbol, horizon, end_date, +1 more. Returns: result

get_efficient_frontierA
Read-only

Calculate the mean-variance efficient frontier for portfolio assets using historical returns. Returns a curve of optimal risk-return tradeoffs with long-only constraints (no shorting). Each point includes optimal weights, expected return, and volatility. This is a historical analysis — for forward-looking optimization, use optimize_portfolio with simulation data.

Inputs: portfolio_id (required), timeframe, num_portfolios. Returns: result

get_feature_setA
Read-only

Get detailed information about a specific feature set including all features and their configuration.

Inputs: feature_set_id (required). Returns: result

get_flow_resultsA
Read-only

Get results of a completed Flow job (generation or validation). For generation jobs (default): returns per-asset terminal statistics, percentile bands (P5–P95 timeseries), sample paths, and price_history for indicator warmup. Set summary_only=true to keep stats + bands but drop sample paths (~60%% smaller). Use download_flow_paths to get full raw path data as CSV. For scenario jobs: also returns satisfaction_rate and constraint details. For validation jobs (job_type='validate'): returns quality badge, pass_rate, and per-feature metrics (Wasserstein distance, KS tests, coverage, marginal checks). Use check_flow_job first to verify the job is completed.

Inputs: job_id (required), job_type, summary_only, max_sample_paths. Returns: result

get_fundamentalsA
Read-only

Company fundamentals for a single US equity: P/E, PEG, P/B, P/S, EV/EBITDA, EV/Revenue, EPS, revenue TTM, EBITDA, profit margin, operating margin, ROE, ROA, dividend yield, beta, 52-week high/low, 50/200-day moving averages, market cap, shares outstanding, analyst target price, analyst ratings, quarterly earnings/revenue growth YoY. Source: Alpha Vantage OVERVIEW (verified data provider, 24h cache — fundamentals change at most quarterly so caching is safe). Only US equities with SEC filings; ETFs / futures / crypto return 404.

Inputs: ticker (required). Returns: result

get_grain_analysisA
Read-only

Retrieve full results of a completed GRAIN analysis: theme scores, per-ticker breakdown, and evidence passages. Use list_grain_analyses first to find the analysis_id.

Inputs: analysis_id (required). Returns: result

get_historyA
Read-only

OHLC bars for a single ticker. range='1W'/'1M'/'3M'/'6M'/'1Y'/'2Y'/'5Y'/'ALL' for canned windows, OR pass start_date/end_date (YYYY-MM-DD) for a custom slice.

frequency='daily' (default) | 'weekly' | 'monthly' | 'quarterly' | 'annual' (alias: 'year_end'). For multi-year analysis, USE A COARSER FREQUENCY rather than 50 point queries. A 20-year range='ALL', frequency='annual' request returns ~20 rows; the equivalent in daily granularity is ~5,000 rows that exceed the agent-side response clamp and force you into the dozens-of-calls year-end-extraction pattern that costs credits and time. The downsampler keeps the LAST trading day of each period (week-end / month-end / etc.), which is what return / drawdown / vol calcs actually want.

Use for ad-hoc time-series analysis the trained models don't already cover (return distributions, drawdown curves, custom regression windows, event studies around specific dates).

Inputs: ticker (required), range, end_date, frequency, +1 more. Returns: result

get_indicesA
Read-only

Major US equity indices snapshot (S&P 500, Nasdaq 100, Dow, Russell 2000) sourced from ETF proxies. Returns symbol, name, price, change, change_pct. Quick orient before deeper analysis.

Inputs: no named parameters. Returns: result

get_newsA
Read-only

News feed with per-ticker sentiment scores (Alpha Vantage NEWS_SENTIMENT). Filter by tickers (per-name news + sentiment) or topics (e.g. 'earnings', 'mergers_and_acquisitions', 'financial_markets', 'economy_macro'). Returns headlines, source, summary, sentiment label/score, and per-ticker sentiment within multi-ticker articles. Strong for 'any news on X?', 'what's driving X today?', or a portfolio-wide news roll-up (pass the portfolio's tickers). Pair with market_radar for the full 'what's happening' briefing.

Inputs: limit, topics, tickers. Returns: result

get_optimization_historyA
Read-only

Retrieve past portfolio optimization results. Each entry includes the objective, optimal weights, expected return, volatility, VaR, and Sharpe ratio. Optionally filter by simulation_batch_id to see results for a specific beta computation.

Inputs: portfolio_id (required), simulation_batch_id. Returns: result

get_portfolioA
Read-only

Get detailed information about a specific portfolio including assets, weights, and associated feature sets. Use the portfolio ID from list_portfolios.

Inputs: portfolio_id (required). Returns: result

get_portfolio_analyticsA
Read-only

Get historical portfolio analytics: Sharpe ratio, volatility, expected return, max drawdown, and market beta (benchmarked vs SPY). Supports timeframes: 1W, 1M, 1Y, 2Y, 5Y. This is backward-looking — for forward-looking risk, use compute_returns or test_flow_risk. NEW: Pass model_group_id to also get factor return attribution — shows which factors (VIX, rates, oil, etc.) drove your portfolio returns over the period. Requires compute_betas to have been run first via analyze_quantitative.

Inputs: portfolio_id (required), rollup, timeframe, model_group_id. Returns: result

get_portfolio_fact_sheetA
Read-only

One-call printable portfolio summary. Returns: • allocation — per-position ticker, name, current price, current value, current weight, target weight • returns — MTD, QTD, YTD, 1Y period returns • growth_of_10k — $10K invested 1Y ago, portfolio vs benchmark ending value • risk_stats — Sharpe, Sortino, vol, max drawdown, beta, alpha, risk-free rate (1Y window) • benchmark_return_1y, as_of, n_data_points

Use this when the user asks for 'a one-pager', 'portfolio summary', 'how is my portfolio doing'. Single call, ~1-2s, free. Default benchmark SPY; pass any ticker to override.

Inputs: portfolio_id (required), benchmark_symbol. Returns: result

get_portfolio_valueA
Read-only

Get the current live value of a portfolio: total value, P&L, and per-position breakdown.

Inputs: portfolio_id (required). Returns: result

get_quotesA
Read-only

Live price snapshot for one or more tickers (Alpha Vantage). Pass up to 100 tickers in one call. Returns current price, change, change_pct per symbol; unresolved tickers (typos, delistings) come back as error stubs without failing the batch. Use for 'what's X trading at right now?' or to seed a quick position-level P&L calc.

Inputs: tickers (required). Returns: result

get_residual_correlationA
Read-only

Get the cross-asset residual correlation matrix for a model group. Shows how much unexplained co-movement exists between assets after accounting for factor exposures. High residual correlations suggest missing common factors.

Inputs: model_group_id (required). Returns: result

get_scenarioA
Read-only

Get detailed information about a saved scenario including its factor specs.

Inputs: scenario_id (required). Returns: result

get_sectorsA
Read-only

S&P 500 sector ETF performance over a window: 1D / 1W / 1M / YTD. Returns one row per sector with performance_pct + change_pct. Use for sector-rotation reads ('which sectors are leading this week?').

Inputs: window. Returns: result

get_top_moversA
Read-only

Top gainers, top losers, and most-active stocks for the day. Use for 'what moved today' context — pair with get_news to explain why.

Inputs: no named parameters. Returns: result

get_vix_panelA
Read-only

VIX level + term structure (VIX vs VIX3M vs VIX6M) + implied vol regime. Backwardation = stress (front > back), contango = calm. Use for vol-regime context before running stress scenarios or sizing options overlays.

Inputs: no named parameters. Returns: result

get_yield_curveA
Read-only

Current US Treasury yield curve (2y / 5y / 10y / 30y) plus 2s10s spread. Use for rates context, curve-shape regime, or to feed a duration scenario.

Inputs: no named parameters. Returns: result

list_credit_packsA
Read-only

List available credit packs for one-time purchase. Returns pack options with credits, price, and per-credit cost. Credit packs are available to all tiers and never expire. To purchase, use buy_credit_pack with the pack_id.

Inputs: no named parameters. Returns: result

list_feature_setsA
Read-only

List all accessible feature sets: your custom sets plus shared templates. Filter by set_type ('conditioning' or 'target'). Use this to find conditioning_set_id values for analyze_quantitative.

Inputs: set_type. Returns: result

list_feature_set_templatesA
Read-only

Browse pre-built sets of market drivers (e.g. interest rates, volatility, commodities). Returns template names, factors, and conditioning_set_id needed by analyze_quantitative.

Inputs: no named parameters. Returns: result

list_flow_baselinesA
Read-only

List completed baseline (unconstrained) generation jobs for a Flow model group. Returns job IDs, path counts, horizons, and creation dates. Baselines are standalone unconstrained simulations used for comparison with scenarios. Use generate_flow_paths to create new baselines.

Inputs: model_group_id (required). Returns: result

list_flow_scenariosA
Read-only

List completed constrained scenarios for a Flow model group. Returns job IDs, constraints used, satisfaction rates, and timestamps. Use this to find previous scenario results without re-running them — pass any flow_job_id to test_flow_risk for risk metrics.

Inputs: model_group_id (required). Returns: result

list_grain_analysesA
Read-only

List past qualitative (GRAIN) analyses. Optionally filter by portfolio_id.

Inputs: portfolio_id. Returns: result

list_model_groupsA
Read-only

List all model groups (each created by analyze_quantitative). A model group ties a portfolio to a conditioning set and contains per-asset models. Check model_type: null/absent = Moment (linear), 'flow_generative' = Flow. Use this to find model_group_ids for compute_betas, compute_returns, (resume).

Inputs: no named parameters. Returns: result

list_portfoliosA
Read-only

List the user's existing portfolios with names, IDs, asset compositions, and status.

Inputs: limit. Returns: result

list_rulesA
Read-only

List all systematic trading rules attached to a portfolio, including their trigger/action definitions, active status, and priority order.

Inputs: portfolio_id (required). Returns: result

list_scenariosA
Read-only

List saved Moment scenario templates (created via create_scenario). These are stored factor specs tied to individual model_ids — to execute one, use compute_returns with the factor values. For ad-hoc tests, use compute_returns directly. NOT for Flow scenarios — use list_flow_scenarios for those.

Inputs: model_id. Returns: result

list_simulationsA
Read-only

List past beta computation runs for a Moment model group. Each entry is a compute_betas invocation with its simulation_batch_id, date, and status. Use this to find older simulation_batch_ids for compute_returns. NOT for Flow models — use list_flow_scenarios for those.

Inputs: model_group_id (required). Returns: result

list_themesA
Read-only

Browse the GRAIN theme library. Returns predefined themes with names, descriptions, keywords, and categories.

Inputs: no named parameters. Returns: result

manage_subscriptionA
Read-only

Open the Stripe Customer Portal to manage an EXISTING subscription: upgrade, downgrade, cancel, or update payment method. Returns a portal URL. For new subscriptions, use subscribe instead.

Inputs: no named parameters. Returns: result

market_radarA
Read-only

Get a Bloomberg-terminal-grade market briefing with 50+ indicators and computed regime signals. Returns current levels, 1-day/1-week/1-month changes, z-scores, and percentiles for equities, rates, credit, FX, commodities, volatility, international markets, and crypto. Also computes cross-asset signals: Risk-On/Risk-Off score, yield curve regime, credit stress, volatility regime, sector rotation, copper/gold ratio, stock-bond correlation, and inflation momentum. Flags significant moves (|z-score| > 2) as content opportunities. Use this to understand the current market environment and decide what Sablier analyses to run.

Inputs: no named parameters. Returns: result

optimize_portfolioA
Read-only

Find optimal portfolio weights using per-asset factor exposures from compute_betas or analyze_quantitative. Requires simulation_batch_id (from their output). Objectives: 'max_sharpe' (maximize risk-adjusted return), 'min_variance' (minimize portfolio volatility), 'max_return' (maximize expected return for given risk). Advanced objectives (pass the string directly): 'analytical_risk_parity' (equalize risk contributions), 'mean_cvar' (minimize CVaR, requires simulation_ids not beta_simulation_ids), 'expected_utility' (maximize CRRA utility), 'risk_parity' (CVaR-based equal risk), 'exposure_target' (match target factor exposures — set target_exposures on the API). Default: 'max_sharpe'. Long-only constraint applied by default.

Inputs: portfolio_id (required), simulation_batch_id (required), objective. Returns: result

price_optionA
Read-only

Price a single option on a futures contract using the Black-76 model. Returns the option price, per-contract value (price × contract multiplier), and analytical Greeks (delta, gamma, vega, theta, rho). Supports all major futures: ES=F, NQ=F, CL=F, GC=F, SI=F, ZB=F, ZN=F, ZC=F, ZW=F, ZS=F, etc. If a flow_job_id is provided, also computes an Esscher fair-value estimate from FLOW paths (captures fat tails and vol clustering that Black-76 misses). Use this for quick pricing checks; use analyze_derivatives for full portfolio risk.

Inputs: strike (required), days_to_expiry (required), underlying_ticker (required), flow_job_id, +3 more. Returns: result

refresh_feature_dataA
Destructive

Fetch/update historical training data for specific tickers from Yahoo Finance or FRED. For new features: full fetch from 2000. For existing: incremental update to today. Use this after add_feature, or to force-update stale data.

Inputs: tickers (required). Returns: result

screen_universeA
Read-only

Screen the asset universe by metadata (sector, region, asset type) and price-based metrics (momentum, volatility, percentile rank, z-score, RSI, MA distance). Only screens assets already in the Sablier catalog with training data. Use search_features + add_feature first to expand the catalog if needed. Metadata fields: sector, region, asset_type, category, source. Price fields: momentum_20d/60d/252d, volatility_20d/60d, percentile_1y, z_score_60d, ma_distance_50d/200d, rsi_14, current_price, change_1d_pct/1w_pct/1m_pct. Operators: eq, neq, in (metadata); gt, gte, lt, lte, between (price). Results include computed metrics per asset. Use top results to create a portfolio.

Inputs: criteria (required), limit, sort_by, sort_order. Returns: result

search_featuresA
Read-only

Find tickers and market indicators in the catalog. Three usable shapes:

  1. query='gold' — keyword search across ticker / name / description

  2. category='fx' (no query) — list every FX feature in the catalog. Same for 'commodity', 'rates', 'volatility', 'economic', 'crypto', 'equity'

  3. query='ETF', category='commodity', is_asset=True — narrow by both

PREFER browsing by category to keyword-spam: one category='fx' call beats ten query='euro currency' / query='FXY yen' / etc. searches when you want every instrument in a class. Browsing is also more reliable — catalog rows are tagged with category at ingest, so you don't depend on the keyword matching the description.

Catalog size: ~1300+ holdable assets (US large/mid-cap, international listings on LSE / XETR / TYO / HKEX / KOSPI / TWSE, ETFs, futures, FX, crypto). For 'build me a 500-asset / 1000-asset portfolio' requests, call search_features(is_asset=True, limit=1500) ONCE — limit ceiling is 2000, no pagination needed. Do NOT reach for screen_universe to enumerate the catalog: that endpoint is for ranking by price metrics and returns at most limit matches (default 50), not a full enumeration.

Inputs: limit, query, category, is_asset. Returns: result

simulate_flow_scenarioA
Read-only

Start constrained what-if scenario generation from a trained Flow model. Returns immediately with a job_id — use check_flow_job(job_id, job_type='generate') to poll for results. PREREQ: Always run generate_flow_paths FIRST on the same day to establish a baseline.

REQUIRED for any scenario with ≥2 constraints: call check_scenario_probability FIRST and verify probability ≥0.1% before invoking this tool. Two constraints multiply joint probability (e.g. oil ≥155 alone ~2%, VIX ≥40 alone ~3% → joint ~0.06%, below the resolution floor). Skipping the pre-check wastes GPU credits on infeasible scenarios and surfaces 0% results that are confusing to the user. The pre-check is ~1-15s; the full scenario is minutes.

After this tool runs, scenario_probability comes back in get_flow_results — interpret it as: ≥5% within normal range | 1-5% rare | <1% outside training distribution | 0% below measurable (not necessarily impossible — could be rare-event paths from latent mode). When latent mode produced the paths, surface that to the user verbatim — those paths satisfy constraints by construction but represent rare-event distortions, not unconditional samples.

THREE WAYS TO GET 0% PROBABILITY — avoid all: (1) DURATION: mean-reverting features (VIX, spreads, rates) spike for days to weeks, not months. Always use t_start/t_end to window constraints (e.g. t_start=10, t_end=20), not the full horizon. (2) JUMP TOO ABRUPT: if today's value is far from the threshold, t_start must give enough time to get there. (3) MULTIPLE CONSTRAINTS: joint probability multiplies. With 2+ constraints, ALWAYS check_scenario_probability first.

Check last_price from generate_flow_paths first — if VIX is at 15 and you constrain it above 30 from day 5, that's a 2x move in 5 days (essentially never happens). Set t_start large enough for a realistic transition: the bigger the gap between current value and threshold, the later t_start should be. VIX all-time high ~89, never sustained above 30 for more than a few weeks.

feature_name in constraints must be the DISPLAY NAME from feature_names (e.g. 'Apple Inc.', 'SPDR S&P 500 ETF Trust'), NOT ticker symbols. Constraint types: 'level' (absolute price bounds), 'return' (per-step return bounds). Pass portfolio_id through so test_flow_risk can be called directly on results. Run scenarios SEQUENTIALLY (one at a time), not in parallel, to avoid GPU queue contention.

Inputs: constraints (required), model_group_id (required), horizon, n_paths, +2 more. Returns: result

subscribeA
Destructive

Subscribe to a Sablier plan (new subscription). Returns a Stripe Checkout URL to complete payment. Tiers: 'pro' (Pro Monthly €499/mo or Pro Annual €349/mo — 1,000 credits/month, overage at €0.50/credit monthly or €0.35/credit annual). Enterprise pricing is custom — contact team@sablier.it. To manage an existing subscription (upgrade, downgrade, cancel, update payment), use manage_subscription instead.

Inputs: tier (required). Returns: result

test_flow_riskA
Read-only

Run portfolio risk analytics on Flow-generated paths (FUTURES/EQUITIES ONLY — no options). Computes expected return, volatility, Sharpe ratio, Sortino ratio, Calmar ratio, VaR 95%, CVaR 95%, max drawdown, profitability rate, and return distribution percentiles. Requires portfolio_id and flow_job_id from generate_flow_paths, or simulate_flow_scenario. If the user has OPTIONS positions, use analyze_derivatives instead — it reprices options on every path using Black-76 and shows combined futures+options risk. TIP: Call this on multiple flow_job_ids (baseline + different scenarios) to build a side-by-side comparison of risk metrics across scenarios.

Inputs: flow_job_id (required), portfolio_id (required). Returns: result

toggle_overageA
Destructive

Enable or disable on-demand overage credits for Pro subscribers. When enabled, operations continue beyond the monthly credit allocation and are billed at the overage rate (€0.50/credit monthly, €0.35/credit annual). When disabled, operations are blocked once monthly credits run out. Only available for Pro tier — free users should buy credit packs or subscribe.

Inputs: enabled (required). Returns: result

toggle_ruleA

Activate or deactivate a systematic trading rule. Only active rules are included in forward_test_rules by default.

Inputs: rule_id (required), is_active (required), portfolio_id (required). Returns: result

train_flow_modelA
Destructive

Train a generative Flow model on a portfolio and conditioning set. Returns immediately — training runs on a GPU and takes 5-15 minutes. After calling this, STOP and tell the user training has started. Let them keep chatting. The user will ask you to check progress — use check_flow_job(job_id=...) when they do. Do NOT automatically poll or call check_flow_job yourself. Requires conditioning_set_id (from list_feature_set_templates or create_feature_set) and tickers or portfolio_id.

Inputs: conditioning_set_id (required), horizon, tickers, weights, +1 more. Returns: result

update_portfolioA
Destructive

Update an existing portfolio. Can change name, description, weights, capital, and/or options_positions. Only pass the fields you want to update — omitted fields stay unchanged. Weights must sum to 1.0 if provided.

ASSET MUTATION: passing a weights dict that includes a ticker not currently in the portfolio's target set is supported — update_portfolio AUTO-EXPANDS the target set as long as the new ticker is in the global feature catalog. If the ticker isn't in the catalog yet, call add_feature first, then retry this update. (You don't need to create a new portfolio to add an asset.) Removing assets is not supported via this path — drop a weight to 0.0 to zero a position; only create_portfolio_from_assets can produce a portfolio with a strictly smaller asset universe.

options_positions sets the options overlay for derivatives analysis (persisted on the portfolio).

Inputs: portfolio_id (required), name, capital, weights, +2 more. Returns: result

update_ruleA

Edit an existing systematic trading rule. Only fields you pass are updated; omit a field to leave it untouched. Use to retune a trigger threshold, change the action, rename, reprioritize, or flip activation. For just toggling active/inactive, prefer toggle_rule (clearer intent). live_mode controls broker deployment: null = paper-only, 'observe' = log live signals without trading, 'auto' = execute via connected broker. Live deployment requires a connected broker (see platform UI).

Inputs: rule_id (required), portfolio_id (required), name, action, +5 more. Returns: result

update_scenarioA
Destructive

Update a saved scenario. Can change name, description, or factor specs. Only pass the fields you want to update.

Inputs: scenario_id (required), name, specs, description. Returns: result

validate_rulesA
Read-only

Preflight validation of stored rules: schema-checks each rule's trigger and action grammar, verifies referenced assets exist in the portfolio, and (if flow_job_id given) confirms every feature the rules reference is covered by the FLOW model's feature set. Run this before backtest_rules / forward_test_rules to surface bad rules cheaply (~200ms, free) instead of letting them silently fail mid-backtest. Returns ok=true with empty error lists if all clean; otherwise lists missing_portfolio_assets, missing_rule_features, and per-rule grammar errors so the agent can patch and retry.

Inputs: portfolio_id (required), rule_ids, flow_job_id. Returns: result

whoamiA
Read-only

Quick account summary: name, email, tier, credit balance, and billing period. Use this first to orient yourself — single call covers identity and credit status.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 83 tools

    Disambiguation3/5

    Several tools serve overlapping purposes within clusters (portfolio performance, feature set listing, scenario simulation, rules evaluation), and some pairs like list_feature_set_templates/list_feature_sets and get_portfolio_value/get_portfolio_fact_sheet could cause misselection. However, the verbose descriptions carefully delineate each tool's specific role, mitigating most ambiguity.

    Naming Consistency4/5

    The vast majority follow verb_noun snake_case (get_portfolio, create_rule, compute_betas). A few outliers break the pattern: whoami (single word), market_radar (noun_phrase), and flow_validate (noun_verb, inconsistent with other flow_* verbs like generate_flow_paths).

    Tool Count2/5

    83 tools is far beyond the typical well-scoped range. The server attempts to cover portfolio management, feature engineering, factor/flow models, scenario analysis, rules, market data, and billing as one surface, resulting in many single-purpose tools (9 billing tools alone) that could be consolidated.

    Completeness4/5

    The domain is covered extensively: CRUD for portfolios, feature sets, scenarios, rules, model groups, and flow jobs; plus market data, derivatives, and billing. Minor gaps exist, e.g., no update_feature_set, no portfolio export, and no direct model group detail getter, but agents can work around them.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      An MCP server that gives AI assistants access to SEC-registered financial advisor data, enabling searches by name, firm, or state, full profile lookups, disclosure history checks, and risk assessments.
      6
      56 PyPI
      2
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      MCP server for accessing SEC EDGAR filings. Connects AI assistants to company filings, financial statements, and insider trading data with exact numeric precision.
      21
      909 PyPI
      388
      AGPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that makes the CVI Platform a native tool for AI assistants, enabling stock screening, company analysis, and point-in-time research via natural language.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for CPZAI platform, enabling AI agents to manage trading strategies, run backtests, route orders across brokers, and access portfolios, risk analytics, and market data through natural language.
      1
      MIT