Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

price_history

Read-onlyIdempotent

Retrieve OHLCV price history for Iranian bourse symbols as daily, weekly, monthly, or yearly bars; optionally back-adjust for capital increases and dividends to analyze long-term performance.

Instructions

OHLCV price history since listing (تاریخچه قیمت), daily or aggregated to weekly/monthly/yearly bars, optionally back-adjusted for capital increases and dividends. For long ranges prefer granularity='monthly' or 'yearly' over thousands of daily rows.

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": "price_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNewest rows to return (max 5000). 250 daily rows is about 70 KB; for long ranges use granularity instead of a big limit
symbolYesPersian symbol such as 'فولاد', or an insCode
to_dateNoRange bound: Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for no bound.
adjustedNoBack-adjust for capital increases/dividends (تعدیل شده)
from_dateNoRange bound: Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for no bound.
granularityNo'daily' (default), 'weekly' (Saturday-start), 'monthly' or 'yearly' (Jalali) bars: open/high/low/close, summed volume and value, change % per perioddaily

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.0
    • changedInput schema / properties / from_date / description
      Previous value: -"Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for the latest trading day."New value: +"Range bound: Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for no bound."
    • addedInput schema / properties / granularity
      Added value: +{
      +  "default": "daily",
      +  "description": "'daily' (default), 'weekly' (Saturday-start), 'monthly' or 'yearly' (Jalali) bars: open/high/low/close, summed volume and value, change % per period",
      +  "title": "Granularity",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit / description
      Added value: +"Newest rows to return (max 5000). 250 daily rows is about 70 KB; for long ranges use granularity instead of a big limit"
    • changedInput schema / properties / to_date / description
      Previous value: -"Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for the latest trading day."New value: +"Range bound: Gregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for no bound."
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world access, so the safety profile is carried elsewhere. The description adds scope ('since listing') and a volume/performance caution, but says nothing about return shape, pagination behavior, or what back-adjustment does to early rows — and the size caution largely duplicates the schema's limit description.

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?

Two sentences, both front-loaded with the payload first and the tuning advice second. No filler words and no redundancy beyond the single performance hint.

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 read-only historical data tool with full schema coverage, an output-type hint (OHLCV bars) and rich annotations, the definition covers what an agent needs to call it correctly. The remaining gap is modest: no output schema exists, and the description doesn't say what the response envelope or row ordering looks like.

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 coverage is 100%, so every parameter is already documented, including Jalali/Gregorian date formats and granularity semantics. The description's mention of daily/weekly/monthly/yearly and adjustment restates the schema rather than adding new meaning, so the 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?

The description names a specific resource and format: 'OHLCV price history since listing', with the aggregation and back-adjustment dimensions called out. That is enough to separate it from tools like symbol_overview or trades, though it never explicitly names those siblings for disambiguation.

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?

It gives a clear conditional rule — 'For long ranges prefer granularity=monthly or yearly over thousands of daily rows' — which tells the agent how to configure a large request. It offers no when-not guidance or pointers to alternative tools (e.g., intraday/tick data via trades or order_book_history).

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