Skip to main content
Glama

Chart Data

chart_data
Read-onlyIdempotent

"Chart data for [ticker]" / "sparkline data for [stock]" / "price history for [ticker] this week", OHLCV price bars for a ticker from the StockTwits chart feed: 5-minute bars for one trading day (1D), ~30-minute bars for a week (1W), daily bars for 1M/3M/6M/YTD, weekly for 1Y, monthly for 5Y/ALL. Returns open, high, low, close and volume per bar. Crypto uses the StockTwits suffix (BTC.X). Use for thumbnail charts and quick recent-price context beside StockTwits sentiment; prefer dedicated finance packs (yahoo-finance, alphavantage) for serious price analysis.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "AAPL"
    },
    "name": "chart_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoChart window (default 1D). Case-insensitive.
symbolYesTicker without the $ (AAPL, TSLA; BTC.X for Bitcoin).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "symbol": "AAPL"
      -  },
      -  {
      -    "period": "1d",
      -    "symbol": "GME"
      -  }
      -]New value: +[
      +  {
      +    "symbol": "AAPL"
      +  },
      +  {
      +    "period": "1W",
      +    "symbol": "TSLA"
      +  }
      +]
    • addedInput schema / properties / period / description
      Added value: +"Chart window (default 1D). Case-insensitive."
    • addedInput schema / properties / period / enum
      Added value: +[
      +  "1D",
      +  "1W",
      +  "1M",
      +  "3M",
      +  "6M",
      +  "YTD",
      +  "1Y",
      +  "5Y",
      +  "ALL"
      +]
    • addedInput schema / properties / symbol / description
      Added value: +"Ticker without the $ (AAPL, TSLA; BTC.X for Bitcoin)."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "symbol": "AAPL"
      +  },
      +  {
      +    "period": "1d",
      +    "symbol": "GME"
      +  }
      +]
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover readOnly, openWorld, idempotent and non-destructive, so the bar is lower, but the description still adds real behavior: the upstream source (StockTwits chart feed) and the per-period bar resolution (5-minute for 1D, ~30-minute for 1W, daily for 1M/3M/6M/YTD, weekly for 1Y, monthly for 5Y/ALL). An agent knows the data density and freshness it will get before calling.

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?

Dense and front-loaded: purpose, then granularity mapping, then return fields, then the boundary with finance packs. The leading quoted trigger phrases are slightly redundant with the title, but each sentence otherwise carries substantive information.

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?

No output schema exists, yet the description names the returned fields (OHLCV per bar), the resolution per period, and the crypto symbol convention. Nothing material is missing for a 2-parameter read-only chart tool.

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

Parameters4/5

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

Schema coverage is 100% and the enum is documented, so baseline is 3; the description goes further by explaining what each period value actually means in terms of bar granularity, which the enum alone does not convey. The crypto suffix guidance (BTC.X) reinforces the schema's symbol note but adds no new syntax.

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+resource: 'OHLCV price bars for a ticker from the StockTwits chart feed', and lists the return fields (open, high, low, close, volume). The leading trigger phrases ('Chart data for [ticker]', 'price history for [ticker] this week') make the mapping from user intent to tool unmistakable.

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?

Explicitly says when to use it ('thumbnail charts and quick recent-price context beside StockTwits sentiment') and when not to ('prefer dedicated finance packs (yahoo-finance, alphavantage) for serious price analysis'). That is a named alternative plus the condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.