Skip to main content
Glama
iran-brokers-mcp

iran-brokers-mcp

by sepehr071

Search symbols, funds, options and indices

br_search
Read-onlyIdempotent

Find stock, fund, option, or index IDs by name or symbol in Mofid and Agah so you can pass the returned ISIN or ID to stock, history, fund, or options queries.

Instructions

Find the id of a stock, fund, option or index by name or symbol, in Mofid and Agah.

Use it first when you only have a name. Mofid results carry isin, Agah results id (funds have a different id in each source); pass either to br_stock, br_history, br_fund or br_options.

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": {
      "query": "<query>"
    },
    "name": "br_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNofund = ETFs and funds, index = market and industry indices.stock
limitNoMaximum results per source.
queryYesPart of a symbol, company or fund name, or an ISIN; Persian or Latin, e.g. 'فولاد'.
sourceNomofid, agah or all; each answers in its own block.all

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / kind / description
      Previous value: -"Instrument group: fund = ETFs and funds, index = market and industry indices. Options are thousands of contracts, so ask for them explicitly."New value: +"fund = ETFs and funds, index = market and industry indices."
    • changedInput schema / properties / query / description
      Previous value: -"Part of a symbol, company or fund name, or an ISIN; Persian or Latin, e.g. 'فولاد', 'اهرم', 'IRO1MSMI'."New value: +"Part of a symbol, company or fund name, or an ISIN; Persian or Latin, e.g. 'فولاد'."
    • 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.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: results are returned in per-source blocks, Mofid returns `isin` while Agah returns `id`, and a fund has a different id in each source — important since there is no output schema. It doesn't say what happens when nothing matches.

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?

Three short sentences, front-loaded with the core verb and resource, then the usage rule, then the output/workflow note. No filler and no restatement of the parameter list.

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 lookup tool with no output schema, the description covers sources, the differing id fields and the hand-off tools, which is the information an agent actually needs. Minor gaps remain on failure/empty behavior and how `limit` interacts with the multi-source `all` mode.

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% and all four parameters carry their own descriptions, including both enums, so the baseline is 3. The description contributes the consequence of the `source` choice (which identifier field comes back) but says nothing further about `kind`, `limit` or `query` beyond the schema.

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 ('Find the id of a stock, fund, option or index by name or symbol') plus the scope of sources (Mofid and Agah). It also names the downstream tools that consume the result, so an agent can tell this apart from br_stock, br_history and br_screener without opening any 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?

'Use it first when you only have a name' gives a clear triggering condition, and the follow-up sentence explains what to do with the output. It stops short of naming a competing tool (e.g. br_stocks or br_screener) as the alternative when you already have an identifier, so the exclusion is implied rather than explicit.

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