Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

real_legal_flow

Read-onlyIdempotent

Compare real and legal buying/selling for a Tehran Stock Exchange symbol, including counts, per-capita values, buyer power, net money flow, and daily history.

Instructions

Real vs legal buying/selling (حقیقی و حقوقی): counts, per-capita, buyer power, net money flow, with daily history.

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

Input Schema

NameRequiredDescriptionDefault
daysNoHow many past trading days of history to add (0 = latest session only) (max 90)
symbolYesPersian symbol such as 'فولاد', or an insCode

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedInput schema / properties / days / description
      Previous value: -"How many past trading days of history to add (0 = latest session only)"New value: +"How many past trading days of history to add (0 = latest session only) (max 90)"
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds that daily history is included, which hints at a time series rather than a single snapshot. It does not say how the metrics are computed, whether values are in rials or shares, or how the days window affects the output shape.

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?

A single compact sentence with the core subject front-loaded and the metric list following immediately. No filler, though the compressed jargon (counts, per-capita, buyer power) is left unexplained for an agent unfamiliar with the domain.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only tool with no output schema, the definition covers what the tool is about but not what the response looks like (per-day rows? summary totals? units?). Given the density of metric names, at least a hint of return structure would help an agent decide between this and trade_summary.

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%, so both parameters (symbol, days) are documented in the schema, including the 0-means-latest-session and max-90 constraints. The description's 'with daily history' echoes the days parameter without adding format, units, or aggregation detail beyond the schema. Baseline 3 applies when the schema carries the parameter burden.

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 specific subject (real vs legal / retail vs institutional buying and selling) and enumerates the metrics produced: counts, per-capita, buyer power, net money flow. That is far more concrete than a tautology and is distinguishable from siblings such as trades or market_watch. It stops short of a clean verb+resource phrasing, but the scope is unmistakable.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to pick this over related siblings like trade_summary, market_holder_moves, or market_watch, and no stated exclusions or prerequisites. Only the topic name implies the intended use case (retail-vs-institutional flow analysis).

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