Skip to main content
Glama
Aloysiusjs

tradingview-mcp

by Aloysiusjs

Get OHLCV candles

tv_history

Fetch historical open, high, low, close, and volume candles for any trading instrument, with optional interval and adjustment settings. Returns data oldest-first with timestamps.

Instructions

Historical open/high/low/close/volume candles for one instrument. Served from TradingView's chart feed, falling back to the licensed provider. Returns candles oldest-first with both epoch seconds and ISO timestamps (UTC).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barsNoNumber of most-recent candles
symbolYesInstrument, bare or qualified
intervalNoCandle size1D
adjustmentNoPrice adjustment basis (TradingView path only)splits

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

The description adds useful behavioral context: data source with fallback, oldest-first ordering, and both epoch seconds and ISO timestamps in UTC. However, with no annotations at all, it does not disclose error behavior, rate limits, or implications of the two-provider fallback; the full burden is on the description and it covers only part of that burden.

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

Conciseness5/5

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

Three compact sentences, each carrying distinct information: what is returned, the data source fallback, and the response ordering/timestamp format. No filler or repetition of the title or schema field descriptions.

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

Completeness3/5

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

For a tool with no annotations and no output schema, the description should go further. It states ordering, timestamps, and source, but omits the response format, failure behavior, fallback trigger conditions, and any limits on historical depth—important details for an agent that must call it correctly.

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 the schema already documents all four parameters. The description adds no new parameter-level meaning beyond context like ordering and timestamps, keeping it at the baseline expected when structured schema is complete.

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?

The description states a specific verb and resource: historical open/high/low/close/volume candles for one instrument. It is clearly distinguishable from its siblings—tv_quote for current pricing, tv_indicators for computed metrics, and tv_search_symbol for discovery.

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?

There is no explicit when-to-use or when-not-to-use guidance. The use case is implied by 'Historical... candles for one instrument,' but the description never names alternatives or tells the agent to prefer tv_quote for live prices or tv_indicators for derived values.

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