Skip to main content
Glama
human-turn

t-invest-mcp

by human-turn

Get Candles

get_candles
Read-onlyIdempotent

Retrieve OHLCV candle data for any instrument with customizable interval and date range. Supports inline return for recent candles or file output for bulk historical data.

Instructions

OHLCV candles for an instrument. Default: daily candles for the last year. Inline mode returns at most 1500 most recent candles (truncated flag). With outputPath the server fetches the WHOLE range, splitting it into chunks within API limits (day candles up to 6 years per request, 1min up to 1 day), and writes everything to the file. priceUnit: bonds are quoted in % of nominal, futures in points.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoPeriod end, ISO 8601 (default: now)
fromNoPeriod start, ISO 8601 (default: 1 year ago)
intervalNoday
outputPathNoWrite the full result to this file (path relative to the output root: TINKOFF_OUTPUT_DIR or server cwd) instead of returning it inline. The response becomes a short summary {savedTo, records, bytes, sample}. Use for bulk data to keep the context clean. For get_candles/get_operations this also enables full-history fetching (chunking/pagination).
instrumentIdYesInstrument UID
outputFormatNoFile format; default json (or csv if outputPath ends with .csv). csv writes the main flat array of the response.
Behavior4/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds valuable behavioral details: default period, inline truncation limit, chunking logic with API limits per interval, and price unit conventions. No contradictions with annotations.

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?

Four concise, front-loaded sentences covering purpose, defaults, inline mode, outputPath mode, and price info. No redundancy; each sentence 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?

Given no output schema, the description covers key aspects: default behavior, mode selection, limits, and price unit conventions. It lacks mention of error handling or prerequisites, but overall provides sufficient context for an AI agent to select and invoke correctly.

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?

With 83% schema coverage, the baseline is 3. The description adds meaning beyond the schema by explaining default values (daily interval, last year), the effect of outputPath, and price unit specifics. It also clarifies the truncation behavior for inline mode.

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 it provides 'OHLCV candles for an instrument', a specific verb+resource. It distinguishes itself by detailing two modes (inline vs outputPath) and default behavior, making it unique among siblings that are different functions like order books or history archives.

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 guides when to use outputPath (for bulk data) and warns that inline mode truncates at 1500 candles. It does not explicitly exclude alternatives or mention when not to use this tool, but the context is clear for typical use.

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/human-turn/t-invest-mcp'

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