Skip to main content
Glama
iran-brokers-mcp

iran-brokers-mcp

by sepehr071

Price history

br_history
Read-onlyIdempotent

Fetch stock price history from Mofid OHLC candles or Agah daily rows, including buy/sell flows, for symbols, indices, funds, and options.

Instructions

Return price history of a stock: Mofid OHLC candles (1 minute to weekly) or Agah daily rows with buy and sell flows.

Mofid candles are oldest first, Tehran time, and work for indices, funds and options too. Agah rows have no OHLC. Prices are Rial. Use br_index for index history.

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

Input Schema

NameRequiredDescriptionDefault
daysNoMofid: calendar days back.
limitNoNewest N rows (Agah: at most 250).
sourceNomofid = OHLC candles; agah = daily rows with real/legal flows; all = both.mofid
symbolYesSymbol, company name part, or ISIN. Mofid also takes index, fund and option ISINs.
adjustedNoMofid: adjust prices for capital increases and dividends.
resolutionNoCandle size: minutes, '1D' or '1W'. Agah has only '1D'.1D

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.0
    • changedInput schema / properties / adjusted / description
      Previous value: -"Mofid: prices adjusted for capital increases and dividends."New value: +"Mofid: adjust prices for capital increases and dividends."
    • changedInput schema / properties / days / description
      Previous value: -"Mofid: calendar days back. Minute candles older than a few weeks may be missing."New value: +"Mofid: calendar days back."
    • changedInput schema / properties / limit / description
      Previous value: -"Newest N rows (Agah: at most 250 trading days)."New value: +"Newest N rows (Agah: at most 250)."
    • changedInput schema / properties / resolution / description
      Previous value: -"Candle size: minutes (1 to 60), '1D' daily or '1W' weekly. Agah has only '1D'."New value: +"Candle size: minutes, '1D' or '1W'. Agah has only '1D'."
    • changedInput schema / properties / source / description
      Previous value: -"mofid (default) = OHLC candles; agah = daily rows with individual vs institutional flows; all = both."New value: +"mofid = OHLC candles; agah = daily rows with real/legal flows; all = both."
  2. First observedv0.1.2

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only annotations, the description discloses meaningful behavior: Mofid candles are oldest first, use Tehran time, and support minute-to-weekly resolutions, while Agah rows lack OHLC and instead provide buy/sell flows. It also states that prices are in Rial and that Agah only has daily rows, which gives the agent important context for interpreting results.

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?

The description is front-loaded with the core purpose, then handles source differences and the br_index alternative in a small number of dense sentences. There is little wasted wording, and the structure supports quick scanning.

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 six parameters, no output schema, and clear annotations, the description supplies the missing behavioral context: source-specific data shapes, ordering, timezone, currency, and the index-history alternative. An agent has enough information to select and call the tool 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?

Schema coverage is 100%, so the schema already documents parameters, but the description adds useful semantics about source selection and resolution limits, including that Agah has no OHLC and only supports daily rows. It does not add details for days, limit, or adjusted beyond the schema, so it is strong but not fully additive.

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 uses a specific verb and resource ('Return price history of a stock') and immediately distinguishes the two data sources (Mofid OHLC candles vs Agah daily rows). It also explicitly routes index history to the sibling tool br_index, so an agent can tell what this tool is for without opening the schema.

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 gives a clear usage signal by naming br_index as the alternative for index history and by explaining that Mofid can also cover indices, funds, and options. It does not explain when to prefer br_history over siblings such as br_quotes or br_stock, so it falls short of fully explicit when/when-not guidance.

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