Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BOURCE_DATA_DIRNoDirectory for storing encrypted session data and encryption key.
BOURCE_PORTAL_URLNoOverride the TSE portal URL used for authenticated sessions. Default is https://my.tsetmc.comhttps://my.tsetmc.com
BOURCE_ALLOW_HOSTSNoComma-separated allowlist of hosts to which browser navigation is restricted. Default is my.tsetmc.com,tsetmc.com,tse.ir,webgw.tse.irmy.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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 11 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness5/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo issues