Skip to main content
Glama

Set chart OHLCV data

chart_set_data

Replace the current chart with your own OHLCV bars (up to 10,000) for a specified symbol and interval.

Instructions

Replace the chart with inline, user-provided OHLCV bars (maximum 10,000).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barsYes
sourceNouser-provided
symbolYesMarket symbol, preferably EXCHANGE:TICKER (for example NASDAQ:AAPL).
intervalYesBar interval such as 1, 5, 60, 1D, 1W, or 1M.
Behavior3/5

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

Annotations indicate readOnlyHint: false, suggesting this is a state-changing operation, which aligns with 'Replace the chart'. The description adds that it's user-provided data and caps at 10,000 bars, which is useful. However, it doesn't disclose side effects like whether existing chart state is lost, or if this triggers a data fetch. The description adds a bit but doesn't fully disclose behavioral implications beyond what annotations hint.

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?

The description is a single, compact sentence with no fluff. It conveys the action, input type, and constraint in under 15 words. Every word earns its place.

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?

For a data-setting tool with 4 parameters and no output schema, the description is fairly complete for its purpose. It clarifies the core action and the primary constraint (max 10,000). However, it could mention that it's a full replacement (not merge) and what happens to existing chart state, which would make it a 5.

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 description coverage is 50%, and the description adds visible semantics by specifying 'OHLCV bars' and the 10,000 maximum, which directly relates to the 'bars' parameter. However, the schema already provides maxItems/minItems constraints and parameter descriptions for symbol and interval. The description adds value by clarifying the data origin (user-provided) and the bar limit, but it doesn't elaborate on all parameters (e.g., source) beyond schema.

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 'Replace the chart with inline, user-provided OHLCV bars' uses a specific verb ('Replace'), names the resource ('chart'), and clearly differentiates from siblings by emphasizing 'inline, user-provided' data. It stands out from sibling chart tools like chart_import_csv or chart_open by implying this takes data directly rather than from a file or URL.

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?

The description clearly implies usage: use this when you want to set chart data from inline user-provided OHLCV bars. It provides a maximum limit (10,000) which is useful context. However, it doesn't explicitly mention alternatives (e.g., chart_import_csv) or when not to use it, but the naming and description are clear enough within the sibling context.

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/moeuu/tradingview-mcp'

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