Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

market_snapshot

Read-onlyIdempotent

Retrieve an end-of-day table of every instrument on a past Tehran Stock Exchange trading date, filtered by security type (stocks, funds, bonds, options) and sortable by value, volume, trades, or change percent.

Instructions

End-of-day table for every instrument on a past date; ordinary stocks unless security_type says otherwise (تاریخچه کل بازار در یک روز).

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": {
      "date": "<date>"
    },
    "name": "market_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesGregorian or Jalali date of a past trading day
limitNoMaximum rows to return (1-300); the server rejects larger values
sort_byNovalue, volume, trades, change_pctvalue
security_typeNostock (default), fund, bond, option, future, rights, commodity, base or allstock

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.4.0
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return (1-300); the server rejects larger values"
    • changedInput schema / properties / security_type / default
      Previous value: -nullNew value: +"stock"
    • changedInput schema / properties / security_type / description
      Previous value: -"stock, fund or bond"New value: +"stock (default), fund, bond, option, future, rights, commodity, base or all"
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, covering the safety profile. The description adds useful scope details (end-of-day, every instrument, ordinary stocks by default), but it does not disclose return columns, pagination behavior, or other operational caveats beyond the schema.

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?

The description is a single front-loaded sentence that puts the core scope first and uses a semicolon to clarify the default filter. The bilingual parenthetical is not necessary for an English-speaking agent but does not materially bloat the definition.

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?

The input schema is rich and the annotations cover safety, so the description is sufficient for calling the tool with valid parameters. However, with no output schema, the description does not explain what fields or values the end-of-day table returns, leaving return-value expectations unclear.

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 description coverage is 100%, and the schema fully documents date, limit, sort_by, and security_type, including defaults and allowed values. The description only reiterates the default stock behavior and adds no extra syntax or semantic detail beyond what the schema already provides.

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 states a specific resource and scope: an end-of-day table for every instrument on a past date, defaulting to ordinary stocks. That is clear enough to identify the operation, but it does not explicitly distinguish itself from siblings such as market_overview, price_history, or market_watch.

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 implied by 'on a past date' and the default stock filter, so an agent can infer this is for single-day historical snapshots. However, there is no explicit guidance on when to use this instead of related siblings, nor any when-not-to-use condition.

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