screen_stocks
Screen stocks by a validated expression using live quotes, historical windows, and money flow, returning only symbols that meet your condition in one call.
Instructions
Stock screener (فیلتر نویسی): the filter box of tsetmc.com driven by an expression. Returns only the stocks that pass your condition right now, using today's live values plus up to 60 past trading days (close[1], avg(volume, 20), count(close_pct > 0, 3)) and real/legal money flow, in one call with a validated, safe expression (nothing is executed).
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": "screen_stocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Expression to sort by, e.g. 'volume / avg(volume, 20)'. Default: the preset's, else value. | |
| limit | No | Maximum rows to return (1-300); the server rejects larger values | |
| filter | No | Condition checked for every stock, e.g. "volume > 2 * avg(volume, 20) and close_pct > 1". Today: last close open high low yesterday last_pct close_pct volume value(rial) trades pe eps market_cap bid_volume ask_volume at_upper_limit buy_queue real_net_value real_buyer_power industry symbol. Past days: close[1] (yesterday), avg(volume, 20), highest(high, 10), count(close_pct > 0, 5), all(close_pct < 0, 3). Operators: and or not, has(industry, 'بانک'), 5B = 5 billion rial. All fields and functions: screener_reference. | |
| market | No | 'bourse' or 'fara' (Fara Bourse). Omit for both where applicable. | |
| preset | No | Ready-made filter, e.g. volume_surge, smart_money, breakout_20d, buy_queue (screener_reference lists them). ANDed with filter. | |
| columns | No | Expressions to show, optionally 'expr as label'. Default: symbol, last, close_pct, volume, value plus the fields and window values the filter uses. | |
| adjusted | No | Adjust past prices for capital increases and dividends so close[5] is comparable with close | |
| industry | No | Industry name substring, e.g. 'بانک' | |
| descending | No | ||
| security_type | No | Instrument type: 'stock' (default, سهام), 'fund' (صندوق, has nav and nav_premium_pct), 'option', 'future', 'bond', 'rights', 'commodity', 'base' or 'all' | سهام |
| include_untraded | No | Also consider symbols with no trades today |