Skip to main content
Glama
iran-brokers-mcp

iran-brokers-mcp

by sepehr071

Index card and index history

br_index
Read-onlyIdempotent

Fetch a Tehran Stock Exchange index quote and optional daily history for a chosen ISIN using Mofid or Agah sources, with optional member symbol lists.

Instructions

Show a market index (Mofid: market cap, free float, ratios, intraday move, members) and its daily history.

Without days only Mofid answers. With days, Mofid adds daily candles and Agah its total-index series. Next: br_industries for sector indices, br_market for today's snapshot.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "br_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoAdd this many days of daily history (0 = none).
indexNoIndex ISIN: IREXOVERALLINDEX (overall), IRX6XTPI0006 (TEDPIX), IRXZXOCI0006 (Fara-bourse), or one from br_search kind='index'. Agah history: total index only.IREXOVERALLINDEX
sourceNomofid, agah or all; each answers in its own block.all
membersNoMofid: list this many member symbols (0 = none).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / days / description
      Previous value: -"Add this many days of daily history (0 = none). Agah gives about 31 or 365 days."New value: +"Add this many days of daily history (0 = none)."
    • changedInput schema / properties / index / description
      Previous value: -"Index ISIN: IREXOVERALLINDEX (overall), IRX6XTPI0006 (TEDPIX), IRXZXOCI0006 (Fara-bourse), or an industry index from br_search kind='index'. Agah history exists only for the total index."New value: +"Index ISIN: IREXOVERALLINDEX (overall), IRX6XTPI0006 (TEDPIX), IRXZXOCI0006 (Fara-bourse), or one from br_search kind='index'. Agah history: total index only."
    • changedInput schema / properties / source / description
      Previous value: -"mofid, agah or all. Each source answers in its own block; with all, a source that fails shows {'error': ...} and the other still answers."New value: +"mofid, agah or all; each answers in its own block."
  2. First observedv0.1.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world, non-destructive behavior. The description adds valuable non-annotation context: without days only Mofid answers, while with days Mofid adds daily candles and Agah returns only its total-index series.

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 three compact sentences with zero wasted framing. Purpose and source behavior come first, and sibling routing is clearly front-loaded at the end.

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 four-parameter read-only tool without an output schema, the description covers purpose, source-dependent behavior, and alternatives. It could say more about response structure or failure behavior, but it is close to complete for the complexity.

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 parameter documentation is already strong. The description adds cross-parameter meaning by explaining how days changes which sources respond and what Mofid includes, beyond the individual schema descriptions.

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: 'Show a market index ... and its daily history.' It also distinguishes the tool from siblings by naming br_industries for sector indices and br_market for today's snapshot.

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 clear routing to alternatives for sector indices and today's market snapshot, and explains the source behavior tied to the days parameter. It stops short of explicit when-not-to-use guidance or naming every related history sibling.

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