Skip to main content
Glama
iran-brokers-mcp

iran-brokers-mcp

by sepehr071

Screen stocks or funds by any column

br_screener
Read-onlyIdempotent

Filter, sort, and compare Iranian stocks, ETFs, and mutual funds by financial columns such as P/E, ROE, and returns to identify investments matching your criteria.

Instructions

Filter, sort and compare all stocks or funds on any column, like Agah's screener pages (900 stocks, 330 ETFs, 475 funds).

Source: Agah only. Use it for "P/E under 6 and ROE over 30" or "best 1-year fixed-income funds"; br_etfs is the plain ETF list. Returns are percent; money and fund Nav are Rial. Column names are the site's (see list_columns); for ETFs names ending in 2 are NAV returns, the others market-price returns.

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": {
      "kind": "<kind>"
    },
    "name": "br_screener"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesstock = all stocks; etf = exchange-traded funds with market price; mutual = every fund with NAV issue/redeem prices.
sortNoColumn to sort by (descending unless ascending=true).
limitNo
columnsNoColumn names to return, e.g. ['PToE','Roe'] (stocks), ['Nav','ReturnOf365DaysAgo'] (funds). Omit for a default set.
ascendingNo
fund_typeNoFunds only: fixed income, equity, commodity or other.
max_valuesNoKeep rows where column <= value.
min_valuesNoKeep rows where column >= value.
list_columnsNoReturn the available column names and titles instead of rows.
name_containsNoKeep rows whose name/symbol contains this (Persian).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changedv0.2.0
    • removedInput schema / properties / columns / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / columns / description
      Previous value: -"Column names to return (e.g. ['PToE','Roe'] for stocks, ['Nav','ReturnOf365DaysAgo'] for funds). Omit for a default set; use list_columns=true to see all."New value: +"Column names to return, e.g. ['PToE','Roe'] (stocks), ['Nav','ReturnOf365DaysAgo'] (funds). Omit for a default set."
    • addedInput schema / properties / columns / items
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / columns / maxItems
      Added value: +20
    • addedInput schema / properties / columns / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / fund_type / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "درآمد ثابت",
      -      "سهامی",
      -      "کالایی",
      -      "سایر"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / fund_type / enum
      Added value: +[
      +  "درآمد ثابت",
      +  "سهامی",
      +  "کالایی",
      +  "سایر",
      +  null
      +]
    • addedInput schema / properties / fund_type / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / kind / description
      Previous value: -"'stock' all stocks; 'etf' exchange-traded funds with market price; 'mutual' every fund with NAV issue/redeem prices."New value: +"stock = all stocks; etf = exchange-traded funds with market price; mutual = every fund with NAV issue/redeem prices."
    • changedInput schema / properties / list_columns / description
      Previous value: -"Return the available columns (name, Persian title) instead of rows."New value: +"Return the available column names and titles instead of rows."
    • addedInput schema / properties / max_values / additionalProperties
      Added value: +{
      +  "type": "number"
      +}
    • removedInput schema / properties / max_values / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": {
      -      "type": "number"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / max_values / description
      Previous value: -"Keep rows where column <= value, e.g. {'PToE': 6}."New value: +"Keep rows where column <= value."
    • addedInput schema / properties / max_values / type
      Added value: +[
      +  "object",
      +  "null"
      +]
    • addedInput schema / properties / min_values / additionalProperties
      Added value: +{
      +  "type": "number"
      +}
    • removedInput schema / properties / min_values / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": {
      -      "type": "number"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / min_values / description
      Previous value: -"Keep rows where column >= value, e.g. {'Roe': 30}."New value: +"Keep rows where column >= value."
    • addedInput schema / properties / min_values / type
      Added value: +[
      +  "object",
      +  "null"
      +]
    • removedInput schema / properties / name_contains / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / name_contains / description
      Previous value: -"Keep rows whose name/symbol contains this text (Persian)."New value: +"Keep rows whose name/symbol contains this (Persian)."
    • addedInput schema / properties / name_contains / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / sort / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / sort / description
      Previous value: -"Column name to sort by (descending unless ascending=true)."New value: +"Column to sort by (descending unless ascending=true)."
    • addedInput schema / properties / sort / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.1.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the read-only, idempotent, non-destructive safety profile. The description adds meaningful behavior beyond that: Agah-only sourcing, percent and Rial units, site-specific column names, and the ETF column suffix convention for NAV versus market-price returns.

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?

The purpose is front-loaded and the description is reasonably tight for a 10-parameter screener. The parenthetical counts and use-case examples earn their place, though the source/unit/column notes could be structured more cleanly.

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 complex screener with no output schema, the description plus the 80%-covered input schema gives enough to call the tool correctly. It covers source, units, column semantics, and one key sibling alternative, but does not describe output rows or pagination behavior.

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 high at 80%, so the baseline is 3. The description still adds value beyond the schema by explaining that column names come from the site ('see list_columns'), that returns are percent, that money and fund Nav are Rial, and that ETF names ending in 2 are NAV returns while others are market-price returns.

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 gives a specific verb set ('Filter, sort and compare') and resource scope ('all stocks or funds on any column'), with concrete scale counts. It also distinguishes the tool from br_etfs by calling br_etfs 'the plain ETF list'.

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 provides clear usage examples such as 'P/E under 6 and ROE over 30' and 'best 1-year fixed-income funds', and names br_etfs as the alternative for a plain ETF list. It lacks explicit when-not guidance for other nearby siblings like br_stocks, br_fund, or br_quotes.

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