Skip to main content
Glama

get_stock_history

Read-only

Retrieve historical OHLC and volume data for BIST or global stocks to support technical analysis and charting.

Instructions

Bir hisse senedinin (BIST veya küresel) geçmiş açılış/en yüksek/en düşük/kapanış (OHLC) ve hacim verisini döndürür. Teknik analiz ve grafik çizimi için kullanılır. Örn: THYAO.IS, AAPL, NVDA, ASELS.IS

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "get_stock_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDöndürülecek maksimum veri noktası sayısı (default: 250)
periodNoGeriye dönük veri aralığı (örn. 1y = son 1 yıl)1y
symbolYesSembol. BIST için koda '.IS' ekleyin (örn. THYAO.IS, ASELS.IS). Küresel için AAPL, NVDA, MSFT gibi. BIST kodu uzantısız girilirse otomatik '.IS' denenecektir.
endDateNoÖzel bitiş tarihi (YYYY-MM-DD). Varsayılan: bugün
intervalNoMum periyodu: günlük, haftalık veya aylık1d
startDateNoÖzel başlangıç tarihi (YYYY-MM-DD). Verilirse period dikkate alınmaz.
summaryOnlyNotrue ise mum satırlarını atlayıp yalnızca özet istatistikleri döndürür (min/max/ortalama, toplam getiri, volatilite)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.0
    • addedInput schema / properties / summaryOnly
      Added value: +{
      +  "default": false,
      +  "description": "true ise mum satırlarını atlayıp yalnızca özet istatistikleri döndürür (min/max/ortalama, toplam getiri, volatilite)",
      +  "type": "boolean"
      +}
  2. Addedv1.4.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description correctly stays read-only in tone. It adds no operational context such as data source, rate limits, or what the fallback '.IS' auto-append does at runtime — a note that the symbol resolution affects the result would have added real value.

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?

Three short sentences, front-loaded with the return payload, then use case, then examples — nothing extraneous. The final example sentence is the weakest, largely duplicating the schema's symbol description, but it is brief.

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?

With seven parameters and no output schema, the description usefully states the returned fields (OHLC plus volume), which is exactly the gap the missing output schema leaves. It does not mention the summaryOnly mode or date-range override behavior, though the schema covers both, so the omission is minor.

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 every parameter including period, interval, startDate/endDate precedence and summaryOnly is already documented in the schema. The description merely repeats symbol examples (THYAO.IS, AAPL, NVDA) that the schema also contains, adding no new parameter semantics. Baseline 3 applies.

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?

Description opens with a specific verb and resource: returns historical OHLC and volume data for a stock, explicitly covering both BIST and global symbols. The word 'geçmiş' (historical) distinguishes it from the price-quote siblings, though it never names those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a use case ('teknik analiz ve grafik çizimi için kullanılır') and gives symbol examples, which implies when to reach for it. It gives no explicit when-not guidance or named alternative such as the current-price or crypto-history tools.

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