Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

order_book_history

Read-onlyIdempotent

Rebuild intraday order-book depth and buy/sell queue episodes with peak sizes for a symbol, date, and time window to analyze market pressure.

Instructions

Intraday order-book evolution rebuilt from every event: sampled depth plus buy/sell queue episodes with peak sizes (تاریخچه صف خرید و فروش).

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": {
      "symbol": "<symbol>"
    },
    "name": "order_book_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoGregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for the latest trading day.
symbolYesPersian symbol such as 'فولاد', or an insCode
to_timeNoHH:MM[:SS] Tehran time
from_timeNoHH:MM[:SS] Tehran time
step_secondsNoSampling step (max 3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • changedInput schema / properties / step_seconds / description
      Previous value: -"Sampling step"New value: +"Sampling step (max 3600)"
  2. 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, destructiveHint=false and openWorldHint, so safety is covered. The description adds genuine behavioral value by saying the series is rebuilt from every event and includes buy/sell queue episodes with peak sizes — telling the agent the return is a reconstructed time series, not a raw feed. It stops short of volume limits, session boundaries, or how missing events are handled.

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?

A single front-loaded sentence with no filler; the content type (sampled depth, queue episodes) comes first. The Persian parenthetical earns its place as a domain alias, though 'rebuilt from every event' is slightly vague phrasing.

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?

For a five-parameter read-only history tool with no output schema, the description conveys what the result contains and its temporal granularity. Remaining gaps — pagination or size ceilings, behavior at session edges, relationship to the live order_book — are modest but real.

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%, with each of the five parameters documented including Jalali/Gregorian date formats and Tehran time. The description only indirectly illuminates step_seconds via 'sampled depth', adding little beyond the schema. Baseline 3 applies.

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?

States a specific resource and scope: intraday order-book evolution rebuilt from events, returning sampled depth plus buy/sell queue episodes with peak sizes. The Persian parenthetical ('تاریخچه صف خرید و فروش') anchors it to the queue-history concept. It is clearly not the live snapshot, but it never names the sibling order_book tool it most overlaps with.

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 by the word 'history' and the date/from_time/to_time parameters — an agent can infer this is for past intraday reconstruction rather than the current book. There is no explicit statement of when to pick this over order_book or trades, and no exclusions or prerequisites.

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