Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

top_movers

Read-onlyIdempotent

Retrieve ranked live-session lists of gainers, losers, most-traded symbols, buy/sell queues, real-money inflows/outflows, and buyer power, or query past-session closing queues by date.

Instructions

Ranked lists of the live session: top gainers/losers, most traded, buy/sell queues (صف خرید/فروش, confirmed against each symbol's real order book; about 10 s on a strong day), real-person money inflow/outflow (ورود/خروج پول حقیقی), buyer power. With date (queues only): the queues at the close of a past session, found from that day's end-of-day table and confirmed against each candidate's order-book history, with queue size at the close and since when it held (can take 20-40 s on a strong day; repeated calls are fast). Before 09:00 Tehran time the live lists are empty because the exchange resets the day's data: read note, and pass date= for queues.

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": "top_movers"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoOnly with kind=buy_queue or sell_queue: a past trading day (Gregorian 2026-11-04 or Jalali 1405/08/13) to get the queues at that session's close instead of live ones. Rejected for other kinds (use market_snapshot for past rankings).
kindNogainers, losers, value, volume, trades, buy_queue, sell_queue, real_inflow, real_outflow, real_buyer_powergainers
limitNoMaximum rows to return (1-100); the server rejects larger values
marketNo'bourse' or 'fara' (Fara Bourse). Omit for both where applicable.
security_typeNo'stock' (default, سهام), 'fund', 'option', 'bond', 'all' ...سهام

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / properties / date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Only with kind=buy_queue or sell_queue: a past trading day (Gregorian 2026-11-04 or Jalali 1405/08/13) to get the queues at that session's close instead of live ones. Rejected for other kinds (use market_snapshot for past rankings).",
      +  "title": "Date"
      +}
  2. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return (1-100); the server rejects larger values"
    • changedInput schema / properties / security_type / description
      Previous value: -"Substring filter, default 'سهام' (stocks)"New value: +"'stock' (default, سهام), 'fund', 'option', 'bond', 'all' ..."
  3. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description adds real behavioral detail on top: latency expectations (~10 s live, 20-40 s historical, fast on repeat calls), that results are confirmed against each symbol's real order book, and a failure mode where lists are empty before 09:00 due to the exchange's daily reset. It does not describe the shape of the returned rows, which matters since there is no output schema.

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 core capability is front-loaded in the first clause and the caveats follow in a sensible order (live lists, historical queues, pre-market edge case). It is dense and leans on Persian parentheticals that earn their place for a Persian-market tool, but the sentences are long and could be tightened.

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 five fully documented parameters, rich annotations, and no output schema, the main remaining gap is that the description never characterizes the returned rows for each `kind`. Everything an agent needs to decide when to call it and what latency to expect is present.

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, but the description genuinely adds meaning: it explains that `date` yields queue size at the close and how long the queue had held, behavior the schema does not spell out. It reinforces the date-only-for-queues restriction and the reset-time caveat, both of which affect how `date` and `kind` should be combined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete resource and enumerates the specific ranked lists returned (gainers/losers, most traded, buy/sell queues, real inflow/outflow, buyer power), so the agent knows exactly what it gets. It stops short of distinguishing itself from the very similar-sounding `top_lists` sibling, and the only sibling routing ('use market_snapshot for past rankings') lives in the schema rather than the description.

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 conditional guidance: with `date` you get queue data at a past session's close, and before 09:00 Tehran time the live lists are empty so you should read `note` and pass the last trading day instead. It also implicitly excludes date for non-queue kinds. What is missing is explicit routing between this tool and `top_lists`/`market_snapshot` inside the description itself.

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