Skip to main content
Glama
iran-brokers-mcp

iran-brokers-mcp

by sepehr071

Stock market watch with sorting

br_stocks
Read-onlyIdempotent

Rank Tehran Stock Exchange stocks by daily change, traded value, money flow, buyer power, queue value, or past returns, and filter by market, cap size, and minimum traded value.

Instructions

Rank all listed stocks (about 750) by today's change, traded value, money flow, buyer power, queue or past returns.

Source: Agah only (Mofid's equivalents: br_market_top). Money and prices are Rial. net_money_flow is positive for money entering; buyer_power is the individual buyer vs seller average-size ratio. Then br_stock for one symbol.

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

Input Schema

NameRequiredDescriptionDefault
sortNoField to rank by.value
limitNo
scaleNoLarge, medium or small cap.
marketNoOnly this exchange.
ascendingNoLowest first.
min_valueNoMinimum traded value today, Rial.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.2.0
    • changedInput schema / properties / ascending / description
      Previous value: -"Lowest first (default highest first)."New value: +"Lowest first."
    • removedInput schema / properties / market / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "بورس",
      -      "فرابورس"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / market / description
      Previous value: -"Only Tehran Stock Exchange (بورس) or Fara Bourse (فرابورس)."New value: +"Only this exchange."
    • addedInput schema / properties / market / enum
      Added value: +[
      +  "بورس",
      +  "فرابورس",
      +  null
      +]
    • addedInput schema / properties / market / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / scale / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "سهم بزرگ",
      -      "سهم متوسط",
      -      "سهم کوچک"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / scale / enum
      Added value: +[
      +  "سهم بزرگ",
      +  "سهم متوسط",
      +  "سهم کوچک",
      +  null
      +]
    • addedInput schema / properties / scale / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  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 cover the read-only/idempotent safety profile, but the description adds real behavioral context beyond them: results are Agah-sourced only, all money and prices are in Rial, and it defines the sign convention for net_money_flow and the meaning of buyer_power. It leaves out ordering defaults, truncation behavior at 750 symbols, and response shape, which keeps it below 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The ranking action and scale are front-loaded in the first sentence, followed by source, units, then metric definitions, then sibling routing — a sensible priority order. Every sentence supplies information an agent would otherwise have to guess; the only blemish is the terse fragment "Then br_stock for one symbol."

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 describing returns, and it does so at a level adequate for a ranked list: population size, rankable fields, and currency units. It does not state that results are dropped at the limit cap or what fields each row contains, which is a minor gap for a read-only list tool with well-documented parameters.

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 83%, so the baseline is 3; the description earns an extra point by explaining semantics the schema does not, notably the Rial units for value/price fields and the direction and definition of net_money_flow and buyer_power, which are enum values an agent must choose between. It adds nothing for limit, ascending, or min_value, but those are self-documented.

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?

Opens with a specific verb and resource, "Rank all listed stocks (about 750)," and enumerates the ranking dimensions so an agent knows exactly what the tool returns. It also disambiguates from br_stock ("for one symbol") and br_market_top (the Mofid equivalent), so it is clearly distinguishable from siblings.

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 "Then br_stock for one symbol" line and the Agah-vs-Mofid source note give clear routing context to two siblings. It does not, however, say when to prefer this over br_screener or when this tool is the wrong choice, so explicit exclusions are missing.

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