Skip to main content
Glama
HPSILab - Quant Finance MCP Server for Stock Analysis and Options Analytics

HPSILab - Quant Finance MCP Server for Stock Analysis and Options Analytics

generate_stock_research_report

Creates a structured markdown stock research report combining AI predictions, volatility, options positioning, Monte Carlo outlook, and strategy backtests for one ticker.

Instructions

Generate a structured, institutional-style markdown research report for a single stock, covering all major quantitative signal sources.

The report is divided into six sections:

  1. Executive Summary — bull/bear verdict, confidence score, one-line thesis

  2. AI Prediction — ensemble model votes, up-probability, regime

  3. Volatility Analysis — ATM IV, IV rank, vol regime, risk reversal

  4. Options Positioning — max pain, gamma wall, expected move, squeeze targets

  5. Monte Carlo Outlook — 10-trading-day price distribution and 90 % range

  6. Strategy Backtests — Sharpe, max drawdown, win rate across quant strategies

Output is a complete markdown string (~800–1200 words) ready to render or share. Response latency is ~10–20 s due to full multi-model data aggregation.

Use this tool when:

  • A user asks for a "report", "write-up", "research note", or "deep dive".

  • You want a pre-formatted narrative combining all signal sources in one document.

  • You need output suitable for archiving, PDF export, or investor communication.

Do NOT use this tool when:

  • You only need a quick directional verdict → use analyze_stock instead.

  • You need a specific data dimension (IV, Monte Carlo, etc.) → use the dedicated sub-tool (get_iv_radar, get_monte_carlo, etc.) for lower latency.

Returns

dict with keys: symbol : str — normalized ticker report : str — full markdown report (~800–1200 words, 6 sections) generated_at : str — ISO 8601 generation timestamp

Notes

  • Requires a valid HPSILAB_API_KEY.

  • API access, quota, and ticker coverage are governed by the HPSILab account.

  • For programmatic use, prefer analyze_stock which returns structured JSON.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "generate_stock_research_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesExchange ticker in uppercase, e.g. 'NVDA', 'TSLA', 'SPY'. Do NOT pass company names — use official tickers only.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "generate_stock_research_reportDictOutput",
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.3.1
    • addedInput schema / properties / symbol / description
      Added value: +"Exchange ticker in uppercase, e.g. 'NVDA', 'TSLA', 'SPY'. Do NOT pass company names — use official tickers only."
    • addedInput schema / properties / symbol / examples
      Added value: +[
      +  "NVDA",
      +  "TSLA",
      +  "SPY"
      +]
    • addedInput schema / properties / symbol / pattern
      Added value: +"^[A-Z][A-Z0-9.-]{0,15}$"
  3. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (destructiveHint=false, openWorldHint=true, readOnlyHint=false), so the bar is lower, yet the description still adds material context: ~10–20 s latency, HPSILAB_API_KEY requirement, and that quota/coverage are governed by the account. It also flags that analyze_stock is preferable for programmatic use. The one gap is that it never explains why the tool is non-read-only (the report generation consumes quota/API access), leaving readOnlyHint=false only loosely reconciled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-sentence purpose, then organized under labeled headings, so an agent can skim to what it needs. The Returns section largely restates the output schema, which is minor redundancy, but the section list and latency figure both earn their lines.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, high-latency aggregation tool, the description supplies everything an agent needs: what comes back, how long it takes, auth requirements, quota caveats, and when to prefer siblings. Because an output schema exists, it need not spell out return values, and the brief Returns block is sufficient corroboration rather than a substitute.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is exactly one parameter and schema description coverage is 100%, including the pattern, examples, and an explicit 'Do NOT pass company names' warning, so the schema already does all the work. The description only implies a single-ticker scope and refers to 'normalized ticker' in the Returns block; it adds no format or validation detail beyond the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('generate a structured, institutional-style markdown research report for a single stock') and then enumerates the six sections it contains, which is a level of detail no sibling provides. The output artifact (markdown string, ~800–1200 words) is unambiguous, so an agent can distinguish this from analyze_stock or the individual data tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Contains explicit 'Use this tool when' and 'Do NOT use this tool when' blocks, and routes to named alternatives with the condition that selects them (analyze_stock for a quick verdict, get_iv_radar / get_monte_carlo for a single dimension, citing lower latency). This is exactly the when/when-not/alternative structure that earns a top score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.