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_images

Generate public chart image URLs for a stock, including price, implied volatility surface, and options flow heatmap to visualize analysis and share visuals in reports.

Instructions

Generate chart image URLs for a stock: price chart, IV surface, and options flow heatmap.

Use this tool when:

  • A user explicitly asks to "see", "show", or "visualize" a chart.

  • You want to accompany a written analysis with supporting visuals.

  • You need to share chart links in a report or message.

Parameters

force: Regenerate images instead of reusing cached artifacts. Defaults to True. types: Optional subset of chart types. Allowed values: ai_prediction, iv_radar, option_pressure, monte_carlo, equity_curves. Omit to generate every chart type.

Note: Images are served as public URLs. They expire after 24 hours. If images do not render in your client, copy the URL and open it in a browser directly.

Returns

dict with keys: symbol : str — normalized ticker price_chart_url : str — URL to candlestick + volume chart (PNG) iv_surface_url : str — URL to 3-D IV surface chart (PNG) options_flow_url: str — URL to options flow heatmap (PNG) expires_at : str — ISO 8601 expiry timestamp for the URLs

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_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoRegenerate hosted images instead of reusing cached artifacts.
typesNoOptional chart types to generate. Omit or use null to generate every type.
symbolYesExchange ticker in uppercase, e.g. 'NVDA', 'AAPL'. Do NOT pass company names — use official tickers only.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.11.1
    • addedInput schema / properties / force
      Added value: +{
      +  "default": true,
      +  "description": "Regenerate hosted images instead of reusing cached artifacts.",
      +  "title": "Force",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / types
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "enum": [
      +          "ai_prediction",
      +          "iv_radar",
      +          "option_pressure",
      +          "monte_carlo",
      +          "equity_curves"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional chart types to generate. Omit or use null to generate every type.",
      +  "title": "Types"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "title": "generate_stock_imagesDictOutput",
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.3.1
    • addedInput schema / properties / symbol / description
      Added value: +"Exchange ticker in uppercase, e.g. 'NVDA', 'AAPL'. Do NOT pass company names — use official tickers only."
    • addedInput schema / properties / symbol / examples
      Added value: +[
      +  "NVDA",
      +  "AAPL"
      +]
    • addedInput schema / properties / symbol / pattern
      Added value: +"^[A-Z][A-Z0-9.-]{0,15}$"
  3. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond annotations, it discloses that images are served as public URLs, expire after 24 hours, and may need to be opened directly in a browser if client rendering fails. This adds useful operational context consistent with openWorldHint=true and readOnlyHint=false, though it does not mention generation cost or latency.

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?

The description is front-loaded with purpose, then structured into usage guidance, parameters, notes, and returns. It is generally efficient, though the Returns section is somewhat redundant because an output schema exists, and the parameter section largely repeats schema content.

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

Completeness4/5

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

Given the moderate complexity, rich schema, annotations, and existing output schema, the description provides enough context to invoke the tool: chart types, public URL behavior, expiry, caching/force, and return keys. Its main gap is the lack of explicit sibling routing and clarification of how the types enum maps to the returned chart URLs.

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?

Schema description coverage is 100%, so force, types, and symbol are already well documented. The description repeats the allowed types and default behavior for force/omit, but it does not resolve the naming mismatch between the types enum (ai_prediction, iv_radar, option_pressure, monte_carlo, equity_curves) and the returned chart URL keys (price_chart_url, iv_surface_url, options_flow_url).

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

Purpose4/5

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

The description states a specific verb and resource: generating hosted chart image URLs for a stock, including price chart, IV surface, and options flow heatmap images. It clearly differentiates the tool from siblings that retrieve chart data (e.g. get_iv_radar, get_option_pressure) by focusing on image URL generation, though it does not explicitly name those siblings.

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

Usage Guidelines4/5

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

It gives explicit usage bullets: when a user asks to 'see', 'show', or 'visualize' a chart, when adding visuals to analysis, and when sharing chart links. It does not state when NOT to use it or when a sibling data-retrieval tool is preferable, so it stops short of full alternative routing.

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