Skip to main content
Glama
iran-brokers-mcp

iran-brokers-mcp

by sepehr071

One stock or ETF in detail

br_stock
Read-onlyIdempotent

Fetch detailed data for one stock or ETF from Mofid and Agah, covering price, ratios, returns, real vs legal flows, and optional order book levels.

Instructions

Show one stock (or, on Mofid, an ETF) in detail: price, ratios, returns, real vs legal flows, from Mofid and Agah.

Use it after br_search. The two sources have different fields, so both are shown. Prices are Rial. Next: br_history, br_stock_events (dividends), br_technical; for an Agah fund use br_fund.

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_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNomofid, agah or all; each answers in its own block.all
symbolYesSymbol (فولاد), part of the company name, or ISIN. ETF symbols work on Mofid.
order_bookNoAlso return Mofid's five best bid and ask levels.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / order_book / description
      Previous value: -"Also return Mofid's five best bid and ask levels (Agah's card always has its order book)."New value: +"Also return Mofid's five best bid and ask levels."
    • 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."
    • changedInput schema / properties / symbol / description
      Previous value: -"Symbol (فولاد), part of the company name, or ISIN (IRO1FOLD0001). ETF symbols work on Mofid."New value: +"Symbol (فولاد), part of the company name, or ISIN. ETF symbols work on Mofid."
  2. First observedv0.1.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely new behavior: two sources with different field sets are both returned, prices are denominated in Rial, and each source answers in its own block. It stops short of describing pagination or response size, which keeps it from a 5.

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?

Front-loaded with the core purpose, then usage and next steps in a compact two-paragraph form with no filler. The trailing 'Next:' chain is slightly dense and reads as a run-on list, but every clause carries routing information.

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 no output schema, the description carries the burden of indicating return content, and it does so by naming the field categories and the dual-source block structure. Currency and source-divergence caveats are covered; only finer details like response shape per source or rate limits are absent.

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 baseline is 3; the description still adds meaning by clarifying that the two sources return divergent fields and are shown side by side, and by stating the Rial currency unit. The order_book and source semantics are largely left to the schema, so it is an increment rather than a full explanation.

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?

States a specific verb and resource ('Show one stock ... in detail') and enumerates the returned content (price, ratios, returns, real vs legal flows). It also distinguishes itself from the plural sibling br_stocks and from br_fund for Agah funds, so an agent can pick it without opening a schema.

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

Usage Guidelines5/5

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

Explicitly sequences the tool ('Use it after br_search') and names the follow-on alternatives (br_history, br_stock_events for dividends, br_technical) plus the exclusion case ('for an Agah fund use br_fund'). This is when-to-use, when-to-use-something-else, and ordering all in two sentences.

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