Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

market_status

Read-onlyIdempotent

Check whether the Tehran Stock Exchange is open now, identify today's session status and holidays, and get the next trading session in Tehran time.

Instructions

Is the Tehran market open right now, and when does it open next? Tehran time, today's status (open, before_open, after_close, weekend or holiday), the public holiday if any, next_session (skipping weekends and holidays), the next upcoming_holidays, the bourse state and totals (وضعیت بازار). Holidays come from the official calendar of 1405; days the exchange closes without notice are flagged in calendar_check when its own data disagrees.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructive, so the safety profile is covered. The description does add real behavioral context beyond them: Tehran timezone framing, the holiday source being the official 1405 calendar, and the caveat that unannounced exchange closures surface via calendar_check when the calendar data disagrees. It stops short of describing latency, caching, or data freshness.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core question is correctly front-loaded, but the middle sentence degenerates into an unstructured field dump ('the next upcoming_holidays, the bourse state and totals (وضعیت بازار)'), which reads like schema field names pasted together with a stray untranslated parenthetical. It is compact but not cleanly organized.

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 no parameters and no output schema, the description carries the burden of telling the agent what comes back, and it largely does by naming status values (open, before_open, after_close, weekend, holiday), next_session, upcoming_holidays and calendar_check. The only real gap is that it does not explain the format or granularity of the bourse 'totals'.

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?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description instead spends its words on the response shape, which is the useful place for it here.

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 leads with a concrete question the tool answers ('Is the Tehran market open right now, and when does it open next?') and enumerates the returned concepts: today's status, holiday, next_session, upcoming_holidays, and bourse totals. This is a specific verb-plus-resource statement, but it never differentiates itself from lookalike siblings such as trading_status or market_overview, so an agent must infer the boundary.

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

Usage Guidelines3/5

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

Usage is only implied: the 'right now' framing suggests this is the go-to check for current open/closed state before other queries. There is no explicit when-to-use versus trading_status or market_overview, and no stated preconditions or exclusions.

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