Skip to main content
Glama
F-e-u-e-r

tradingview-mcp-review

by F-e-u-e-r

data_get_ohlcv

Get OHLCV bar data from a TradingView chart for trade review. Specify a date range to analyze past trades, or omit timestamps for the most recent bars.

Instructions

Get OHLCV bar data from the chart. TWO MODES: pass from+to (unix seconds) to get bars from THAT window — required when reviewing a past trade, because without it you get the newest bars regardless of where the chart is navigated. Omit both for the newest count bars. A window with no loaded bars is refused rather than answered with the latest data; call chart_set_visible_range for that window first. Defaults to summary=true (compact stats + last 5 bars).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoWindow end (unix seconds, greater than `from`). Must be given together with `from`. OMIT it for the latest-bars mode — do not send null.
fromNoWindow start (unix seconds). Must be given together with `to`. OMIT it for the latest-bars mode — do not send null.
countNoNumber of bars to consider (max 500, default 100)
summaryNoSummary stats instead of all bars (default true)
Behavior3/5

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

The description reveals important behavioral traits: it refuses a window with no loaded bars, defaults to summary=true (compact stats + last 5 bars). With no annotations provided, the description carries the full burden for behavioral disclosure. However, it does not mention authentication requirements, rate limits, or the full return format, which would be helpful for a data retrieval tool.

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 moderately brief but front-loads the core action and modes. Each sentence adds distinct value: mode explanation, use-case guidance, error handling, and defaults. Subtracting one point for slightly dense structure that could be broken into clearer lists for the two modes.

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 no annotations and no output schema, the description covers the key aspects: what the tool does, its two modes, when to use each, default behavior, and a usage pitfall. It is complete enough for an agent to select and invoke correctly. However, it could mention whether the data is for the active symbol or pass a symbol parameter, and what the 'stats' in summary include.

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 baseline is 3. The description adds context about the modes (from+to vs omit both) and the default for summary, which maps to the parameters. However, it does not explain the meaning of 'summary' beyond contrasting 'compact stats + last 5 bars' vs 'all bars', and could clarify what 'stats' includes. The description also does not compensate for the lack of parameter enum details.

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 clearly states 'Get OHLCV bar data from the chart', specifying the verb (get), resource (OHLCV bar data), and source (chart). It distinguishes two modes (from+to vs omit both) and explains when each is appropriate, helping differentiate from sibling tools like chart_set_visible_range or chart_get_state.

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?

The description provides explicit guidance on when to use each mode: 'pass from+to ... when reviewing a past trade' and 'Omit both for the newest count bars.' It also warns against using the wrong mode: 'because without it you get the newest bars regardless of where the chart is navigated.' Additionally, it advises to call chart_set_visible_range for a window with no loaded bars instead of receiving a refusal.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/F-e-u-e-r/tradingview-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server