Skip to main content
Glama
rezmeplxrf

InsightSentry MCP

by rezmeplxrf

get_symbol_history

Access historical intra-day market data spanning 20+ years with second, minute, or hour precision for backtesting and analysis.

Instructions

Historical data as far as 20 years+ for intra-day historical data (second/minute/hour). Retrieve historical data for specific time periods with deep archive access → Returns {code: string, bar_type: string, bar_end?: number, last_update: number, series: [{time: number, open?: number, high?: number, low?: number, close: number, volume?: number, type?: string}]}. With abbr=true: {code: string, bar_type: string, bar_end?: number, last_update: number, series_keys: string[], series: number[][]} — compact arrays for reduced LLM token usage. Not all bar types include the same fields (e.g., tick data may only have [time, type, close]) — always check series_keys. Supports second/minute/hour bars only (for daily/weekly/monthly, use get_symbol_series). Returns one month of data per call. Iterate start_date (YYYY-MM) for longer ranges. For recent data (up to 30k bars) use get_symbol_series instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesSymbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint.
bar_typeYes(Required) Bar type.
bar_intervalNo(Optional) Bar intervals. The combination of bar_type and bar_interval must not exceed one year. Default is 1.
start_dateYesStarting period in YYYY-MM format for minute/hour intervals or YYYY-MM-DD for second intervals (UTC)
extendedNo(Optional) Extended hours (Not all assets support extended hours). Default to true.
dadjNo(Optional) Dividend adjustment for equities and etfs (has no effect on assets without dividends). Default to false.
badjNo(Optional) Back-adjustment for continous futures contracts (has no effect on non-continous futures data). Default to true.
settlementNo(Optional) Set Settlement as daily close. Default is false
abbrNo(Optional) Set to 'true' for compact output optimized for LLM consumption. Returns series as arrays instead of objects with a series_keys header array. Does not affect response speed — only changes the output format for reduced token usage.
filterNo(Optional) JSONata expression to filter/transform the API response server-side before it reaches you. Use this to extract only the fields or rows you need, reducing token usage. See https://jsonata.org for syntax.
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It comprehensively documents return value structures (both standard and abbr=true formats), warns about field variability ('Not all bar types include the same fields'), discloses pagination limits ('one month of data per call'), and explains archive depth ('20 years+').

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 information-dense and front-loaded with purpose. While lengthy due to inline JSON examples of return formats, this is necessary given the absence of a formal output schema. Every sentence conveys critical behavioral constraints or return format details with minimal redundancy.

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?

Given the tool's complexity (10 parameters, nested return objects, pagination requirements) and lack of structured output schema, the description is remarkably complete. It covers return formats, pagination strategy, sibling alternatives, field variability warnings, and archive limitations—all essential for successful agent invocation.

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?

Input schema has 100% description coverage, establishing a baseline of 3. The description adds valuable usage semantics beyond the schema, specifically the iteration pattern for start_date ('Iterate start_date (YYYY-MM) for longer ranges') and clarifies the relationship between bar_type and available fields in the response series.

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 opens with a specific verb phrase ('Retrieve historical data') and clearly defines the resource scope ('intra-day historical data', 'second/minute/hour'). It explicitly distinguishes itself from sibling 'get_symbol_series' by stating it supports 'second/minute/hour bars only' and contrasting use cases (archive vs. recent data).

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?

Provides explicit alternative tools with clear conditions: 'for daily/weekly/monthly, use get_symbol_series' and 'For recent data (up to 30k bars) use get_symbol_series instead.' Also includes pagination guidance ('Returns one month of data per call. Iterate start_date...') which is critical for correct invocation.

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/rezmeplxrf/insight_mcp'

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