Skip to main content
Glama
iran-bourse-mcp

iran-bourse-mcp

by msmahdinejad

trades

Read-onlyIdempotent

Fetch raw tick-by-tick Tehran Stock Exchange data—time, price, volume, and value—for a symbol, with filters by date, time, and minimum volume; use for detailed execution-level inspection.

Instructions

Raw tick-by-tick trades (ریز معاملات) with time, price, volume, value. Filter by time and size; prefer trade_summary for analysis.

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

Input Schema

NameRequiredDescriptionDefault
dateNoGregorian 2026-11-03 / 20261103 or Jalali 1405/08/12. Omit for the latest trading day.
limitNoMaximum rows to return (1-5000); the server rejects larger values
symbolYesPersian symbol such as 'فولاد', or an insCode
to_timeNoHH:MM[:SS]
from_timeNoHH:MM[:SS]
min_volumeNoOnly trades with at least this many shares
newest_firstNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return (1-5000); the server rejects larger values"
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered. The description adds useful shape information—what fields each row carries and that results can be narrowed by time and size—but says nothing about result ordering (newest_first), truncation when hitting the row cap, or expected data volume for a tick-level endpoint.

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

Conciseness5/5

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

Two short sentences: the first defines the payload, the second gives filtering and the sibling routing rule. Nothing is redundant and the most decision-relevant content (what it returns) is front-loaded.

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 output schema, the description earns credit for enumerating the returned fields, and it covers the main filtering dimensions for a 7-parameter tool. The gap is that ordering and result-cap behavior are left entirely to the schema, which an agent comparing against trade_summary would benefit from knowing.

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 86%, so the schema itself already documents date formats, limit bounds, time strings, and min_volume. The description only restates the filtering intent ('filter by time and size') without adding syntax or defaults beyond the schema. Baseline 3 applies since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource with granularity ('raw tick-by-tick trades') and enumerates the returned fields (time, price, volume, value). The final clause explicitly contrasts it with trade_summary, so an agent can distinguish the two siblings without opening either schema.

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

Usage Guidelines4/5

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

Gives a clear routing rule: 'prefer trade_summary for analysis', which tells the agent when this tool is the wrong choice. It also names the filterable axes (time and size). It stops short of saying positively when raw ticks are the right pick (e.g. verifying individual prints), so it is strong but not fully explicit.

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