Skip to main content
Glama
tsetmc-mcp

tsetmc-mcp

by sepehr071

Search symbols

ts_search_symbols
Read-onlyIdempotent

Search Tehran Stock Exchange instruments by ticker or name to retrieve symbol or ins_code for related market-data tools; retry with a shorter query if no matches.

Instructions

Find Tehran Stock Exchange instruments (shares, funds, rights, bonds) by ticker or name.

Pass a result's symbol or ins_code to the other ts_ tools. Empty list: retry a shorter name.

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": {
      "query": "<query>"
    },
    "name": "ts_search_symbols"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax matches.
queryYesTicker or company name, e.g. 'فولاد', 'بانک ملت'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / limit / description
      Previous value: -"Max matches (1-30)."New value: +"Max matches."
    • changedInput schema / properties / query / description
      Previous value: -"Ticker or company name, Persian (Arabic ي/ك accepted), e.g. 'فولاد', 'خودرو', 'بانک ملت'."New value: +"Ticker or company name, e.g. 'فولاد', 'بانک ملت'."
  2. First observedv0.1.1

TDQS

A4.1/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. Beyond that, the description adds real operational context: results are meant to be chained into sibling tools via `symbol`/`ins_code`, and an empty result should be handled by shortening the query rather than by assuming failure.

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?

Two tight sentences with the purpose front-loaded and the follow-up workflow second; nothing is wasted. The line break splits the workflow guidance from the purpose slightly awkwardly, but the content is efficient.

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-only search with full schema coverage and rich annotations, the definition covers purpose, chaining, and empty-result recovery. It partially compensates for the absent output schema by naming the fields (`symbol`, `ins_code`) that downstream tools consume, though it does not characterize the full result shape.

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 `query` documented as a ticker or company name with Persian examples and `limit` documented as max matches, so the schema carries the load. The description reinforces the query semantics ('by ticker or name') but says nothing about the `limit` cap or when to adjust it, so it stays at the baseline.

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?

The description gives a specific verb ('Find') plus the resource and its scope: TSE instruments including shares, funds, rights, and bonds, matched by ticker or name. It also implicitly positions the tool as the resolver stage whose output feeds the other ts_ tools, which separates it cleanly from quote, movers, and history siblings.

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?

It states the usage pattern clearly: call this first, then pass the returned `symbol` or `ins_code` to the other ts_ tools, and if the list is empty retry with a shorter name. It lacks an explicit 'do not use this for X' exclusion, but the workflow guidance is concrete enough to route an agent.

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