Skip to main content
Glama
tsetmc-mcp

tsetmc-mcp

by sepehr071

Daily price history

ts_price_history
Read-onlyIdempotent

Retrieve daily open, high, low, close, volume, trades, and value for one Tehran Stock Exchange or Iran Fara Bourse instrument over recent trading days, newest first.

Instructions

Daily open, high, low, close, volume, trades and value of one instrument for its latest trading days, newest first.

Prices are unadjusted for capital increases and dividends.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLatest trading days.
symbolYesTicker, exact name or ins_code, e.g. 'فولاد'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / days / description
      Previous value: -"Latest trading days to return (50 keeps the reply under 15 KB)."New value: +"Latest trading days."
    • changedInput schema / properties / symbol / description
      Previous value: -"Ticker or exact name, e.g. 'فولاد', or a numeric ins_code."New value: +"Ticker, exact name or ins_code, e.g. 'فولاد'."
  2. First observedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered. The description adds two genuinely useful facts beyond them: results are newest-first and prices are unadjusted for capital increases and dividends — the latter prevents a real analytical error. It still says nothing about currency/units or whether the history window can be extended.

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, front-loaded with the returned fields and then the adjustment caveat. Nothing is padded or restated from the schema.

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 two-parameter read tool without an output schema, the description enumerates the returned fields, the ordering, and the adjustment caveat — enough to call and interpret results. The remaining gap is unit/currency information and what happens when fewer than the requested days exist.

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 both 'symbol' and 'days' documented in the schema, so the baseline is 3. The description reinforces that the tool targets exactly one instrument and that days counts trading days, but adds no format or edge-case detail beyond the schema.

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 (daily OHLCV plus trades and value) for a single instrument over its latest trading days, which distinguishes it from ts_get_quote's snapshot and ts_index_history's index scope. It does not name those siblings explicitly, so it falls short of a 5.

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 'latest trading days' and 'one instrument' — there is no explicit statement of when to prefer this over ts_get_quote or ts_index_history, nor any prerequisite or exclusion. An agent can infer the case, but must do the work itself.

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