QuantContext
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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 |
|---|---|
| screen_stocksA | Screen a stock universe with quantitative filters. Returns ranked candidates with scores and metrics. Use this tool when you need to find stocks matching specific criteria — value stocks, momentum leaders, quality companies, or multi-factor ranked candidates. Supports 7 screen types across 3 universes (S&P 500, Russell 2000, Nasdaq 100). After screening, use backtest_strategy to test the screen as a trading strategy, or factor_analysis to understand the factor exposures of the selected stocks. |
| backtest_strategyA | Run a historical backtest on a stock screening strategy. Uses a rebalance-loop engine that re-runs the screening pipeline on each rebalance date, sizes positions, enforces risk limits, and tracks daily P&L. Returns equity curve, trade log, and performance metrics including CAGR, Sharpe ratio, maximum drawdown, Calmar ratio, win rate, and turnover. The backtest is fully deterministic — same inputs always produce identical results. After backtesting, use factor_analysis on the equity_curve to decompose returns into Fama-French factors (market, size, value, momentum) and estimate true alpha. |
| factor_analysisA | Decompose strategy or portfolio returns into Fama-French factors using OLS regression. Breaks down returns into exposures to four systematic factors:
Also estimates alpha (excess return not explained by factors) with t-statistic for statistical significance. A |t-stat| > 2 suggests statistically significant alpha. Returns alpha (daily and annualized), factor loadings with t-statistics, R-squared (how much of return variance is explained by factors), and residual volatility. Use this after backtest_strategy to understand WHERE your returns come from — is it genuine alpha or just factor exposure? |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool has a distinct purpose: screen_stocks finds candidates, backtest_strategy tests strategies, factor_analysis decomposes returns. No overlap in functionality.
All tool names follow a consistent verb_noun pattern in snake_case: backtest_strategy, factor_analysis, screen_stocks.
Three tools is minimal but well-scoped for the quantitative finance pipeline. Covers screening, backtesting, and analysis without excess.
The tools form a coherent workflow (screen → backtest → factor analysis). Minor gaps exist, such as no data retrieval or custom factor tools, but the core pipeline is complete.