Skip to main content
Glama
tsetmc-mcp

tsetmc-mcp

by sepehr071

Index history

ts_index_history
Read-onlyIdempotent

Retrieves daily close, high, low, and percent change for a Tehran Stock Exchange index, newest first, with configurable trading-day range.

Instructions

Daily close, high, low and percent change of a TSE index (total, equal-weight, sector...), newest first.

Names: see ts_indices.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLatest trading days.
indexNoIndex name or part of it, 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 (1-100)."New value: +"Latest trading days."
    • changedInput schema / properties / index / description
      Previous value: -"Index name or part of it (default total index), e.g. 'شاخص کل', 'بانک', 'خودرو', or a numeric ins_code."New value: +"Index name or part of it, or ins_code, e.g. 'بانک'."
  2. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds value the annotations cannot: it discloses the returned fields (close/high/low/percent change) and that results are newest-first, which matters because there is no output schema.

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 with zero filler: the return content and ordering come first, and the name-lookup pointer follows. Nothing is repeated from the schema and nothing is wasted.

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-optional-parameter read tool, this covers return fields, ordering, and how to resolve the index name, while annotations cover safety and the schema covers bounds. Only the trade-off against ts_price_history for non-index symbols is left unaddressed.

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 coverage is 100%, with `days` bounded 1-100 with a default and `index` documented as name/partial-name/ins_code with an example, so the schema already does the heavy lifting. The description's only addition is routing to ts_indices for valid names, which is marginal 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 verb-like outcome (daily close, high, low, percent change), the resource (a TSE index, with total/equal-weight/sector variants), and the ordering (newest first). It implicitly separates itself from ts_price_history by scoping to indices, but it never names that sibling, so differentiation is inferred rather than stated.

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?

'Names: see ts_indices' is a useful cross-reference telling the agent how to obtain a valid index value before calling. However, there is no explicit when-to-use versus ts_price_history or ts_get_quote, and no guidance on when a short `days` window is preferable.

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