Skip to main content
Glama

Finviz-only: rendered chart PNG

stock_chart

Render a PNG candlestick, line, or Heikin-Ashi price chart for a stock ticker using Finviz, with configurable period, scale, and dimensions.

Instructions

Rendered PNG candlestick chart for a ticker (Finviz-only).

TradingView's provider computes charts as text analysis, not images, so a PNG is Finviz-only and labelled as such.

Args: symbol: Ticker. period: d daily, w weekly, m monthly. chart_type: c candle, l line, h heikin-ashi. scale: l linear, log logarithmic. width: Pixel width. height: Pixel height.

Returns: Envelope labelled FINVIZ with image_base64, mime_type and dimensions in data. image_path and data.path point to a best-effort local copy, which is optional and server-local.

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": "stock_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNol
widthNo
heightNo
periodNod
symbolYes
chart_typeNoc

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose the return envelope (labelled FINVIZ), image_base64, mime_type, and dimensions. It also usefully warns that image_path and data.path are a 'best-effort local copy' that is optional and server-local, which prevents an agent from depending on the file path. Gaps remain around permissions, rate limits, and whether generation is expensive or cached.

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 purpose, then a short provider rationale, then structured Args/Returns blocks that are easy to scan. The TradingView-provider sentence is somewhat meta but justifies why the Finviz constraint exists, so it mostly earns its place.

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 six-parameter read-only chart renderer, everything an agent needs is present: purpose, provider scope, every argument's accepted values, and the shape of the response including the unreliable local file path. An output schema exists, so the Returns block is bonus rather than a requirement, and no critical decision information is missing.

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

Parameters5/5

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

Schema description coverage is 0% and no parameter has enums, so the description is the only source of parameter meaning — and it delivers all six, including the accepted value codes (d/w/m, c/l/h, l/log) and the meaning of width/height as pixels. This is meaningfully more than the schema provides.

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 first line states a concrete verb+resource ('Rendered PNG candlestick chart for a ticker') and pins the provider scope ('Finviz-only'). It implicitly separates itself from text-based price tools by explaining that the other provider computes charts as text analysis rather than images. Minor friction: it calls the output a 'candlestick chart' while the chart_type argument also allows line and heikin-ashi.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer 'call this when you need an actual image, not numeric series' from the Finviz-only note. There is no explicit when-to-use/when-not statement and no named alternative such as stock_price_history for raw OHLC data. No exclusions or prerequisites are stated.

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