bource
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BOURCE_DATA_DIR | No | Directory for storing encrypted session data and encryption key. | |
| BOURCE_PORTAL_URL | No | Override the TSE portal URL used for authenticated sessions. Default is https://my.tsetmc.com | https://my.tsetmc.com |
| BOURCE_ALLOW_HOSTS | No | Comma-separated allowlist of hosts to which browser navigation is restricted. Default is my.tsetmc.com,tsetmc.com,tse.ir,webgw.tse.ir | my.tsetmc.com,tsetmc.com,tse.ir,webgw.tse.ir |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| market_statusA | Is the Tehran market open right now (Sat–Wed 09:00–12:30 Asia/Tehran)? Local, no network. |
| search_symbolA | Search a TSETMC instrument by Persian/English symbol or name (e.g. "فملی", "خودرو", "farda"). Returns insCode + market. |
| get_quoteA | Live quote for an instrument by insCode (Rial). Stamped with freshness: market_open + staleness_seconds. |
| get_order_bookB | 5-level order book (صف خرید/فروش) for an instrument by insCode. |
| get_money_flowB | حقیقی/حقوقی (retail/institutional) money-flow summary for an instrument by insCode. |
| get_price_historyB | Daily OHLCV history (Rial) for an instrument by insCode. Fresh full-market pull is cached 1h. |
| get_market_watchB | Whole-market snapshot (market=0 all, 1 bourse, 2 fara-bourse, 4 payeh). Prefer this over per-symbol loops. |
| get_index_overviewB | Market overview / index values (flow 1 = bourse, 2 = fara-bourse). |
| session_statusA | Which authenticated portal sessions exist (never exposes credentials) and the browser allowlist. |
| page_openB | Open a page on the TSE/TSETMC portal with the saved read-only session. Non-GET requests are blocked. |
| page_readB | Extract readable text (and tables as text) from the currently open portal page. Truncated to maxChars. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool targets a distinct operation: market timing, symbol lookup, single-instrument quotes, order book depth, money flow, price history, whole-market snapshots, index overview, session info, and portal page navigation/reading. There is no meaningful overlap; even get_quote and get_market_watch are clearly scoped as single-symbol vs whole-market.
Most tools follow a predictable get_<noun> or page_<verb> pattern, with search_symbol also matching action_noun structure. market_status and session_status are minor deviations, but they form a consistent status-noun pair and do not create confusion.
11 tools is well within the ideal range and each tool earns its place by covering a distinct aspect of Tehran market data plus portal browsing. There is no bloat or unnecessary redundancy.
The tool surface covers the full read-only workflow: symbol discovery, quote, depth, money flow, history, market-wide snapshot, index overview, and portal page access. No obvious dead ends or missing core operations for the stated TSE/TSETMC market data purpose.