Skip to main content
Glama

Fintel Discovery — Financial Intelligence for AI Agents

Get Price History (OHLCV)

GetPriceHistory
Read-onlyIdempotent
    Fetch OHLCV (Open, High, Low, Close, Volume) price history for one ticker.
    Returns daily, weekly, monthly, or intraday bars over any period.

    Use this tool when:
    - You need historical price or volume data for a stock, ETF, or crypto
    - You want to analyze performance over a specific time range
    - You need to compute returns, volatility, or trend analysis

    Interval options: 1d (daily), 1wk (weekly), 1mo (monthly),
    1h (hourly, max 730 days), 5m/15m/30m (intraday, max 60 days).
    Period options: 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max.

    Source: Yahoo Finance via yfinance. No API key required.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"5f4db44b-e5cc-4f3a-8da3-ac591a019c81"New value: +"f258bd16-f060-4e4a-a55d-221a0484866d"
  2. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"d9f77642-e017-4785-9150-e658c2dba3a0"New value: +"5f4db44b-e5cc-4f3a-8da3-ac591a019c81"
  3. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"dbe99169-c071-4ed4-9ae9-8bbfb9a88ad8"New value: +"d9f77642-e017-4785-9150-e658c2dba3a0"
  4. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"3775b46a-5aa8-4586-af57-2453c8bcd08c"New value: +"dbe99169-c071-4ed4-9ae9-8bbfb9a88ad8"
  5. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"d81a5175-11e9-494a-baa5-71d4ffad4ab9"New value: +"3775b46a-5aa8-4586-af57-2453c8bcd08c"
  6. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"9e7f8798-7d22-4378-b93d-179c6f8cb854"New value: +"d81a5175-11e9-494a-baa5-71d4ffad4ab9"
  7. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"9919ff85-e960-472f-863b-3de4c5abed9f"New value: +"9e7f8798-7d22-4378-b93d-179c6f8cb854"
  8. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"38452924-d5df-4668-b51c-d7cd5acabc09"New value: +"9919ff85-e960-472f-863b-3de4c5abed9f"
  9. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"fa72f604-6239-428b-81df-11f07c2c8d00"New value: +"38452924-d5df-4668-b51c-d7cd5acabc09"
  10. Changed1 schema field changed
    • changedInput schema / $defs / PriceHistoryParams / properties / mcp_prompt_id / default
      Previous value: -"7b866f24-13ab-4e54-8d3a-f775612c393f"New value: +"fa72f604-6239-428b-81df-11f07c2c8d00"
  11. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful context: the source (Yahoo Finance via yfinance), no API key requirement, and specific interval limits (max 730 days for 1h, max 60 days for intraday). However, it does not describe error behavior, rate limits, or what happens on invalid tickers. Given the annotations cover safety, the description contributes some behavioral detail but not rich context, so a 3 is warranted.

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 efficient, starting with the core purpose and then listing usage conditions and key options. It is structured with a bullet-like 'Use this tool when' section and a clear list of interval/period options. There is minimal redundancy, and the most important information (what it does) is front-loaded. It earns a 4 for being concise and well-organized.

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 the tool's complexity (many parameters, nested objects, output schema), the description covers the essential usage context: what it returns, when to use it, key interval/period limits, and source/authentication details. The output schema is present, so return format need not be described. The description does not mention error handling or rate limits, but these are not critical for an agent to invoke the tool correctly. It is complete enough for correct invocation, so a 4 is appropriate.

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 0%, meaning the description text does not describe most parameters. The description does mention interval and period options, which maps to two of the many parameters, but it does not cover symbol, start, end, auto_adjust, actions, or the many filtering params. The schema itself provides descriptions for each parameter, so the agent still has structured guidance, but with low coverage the description should compensate more. It provides some value for interval/period but leaves others to the schema, so a 3 is fair.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Fetch') and resource ('OHLCV price history for one ticker'), which is clear and unambiguous. It does not explicitly name or differentiate from sibling tools like GetMultiTickerHistory, but the phrase 'for one ticker' implies the single-ticker scope, distinguishing it from multi-ticker alternatives. It is specific enough for an agent to understand the core function.

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 includes a 'Use this tool when' section with three concrete conditions (historical price/volume data, performance analysis, returns/volatility/trend analysis). This provides clear context on when to invoke the tool, though it does not explicitly state when not to use it or name alternatives. It gives actionable guidance without exclusions, so a 4 is appropriate.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources