Skip to main content
Glama
tsetmc-mcp

tsetmc-mcp

by sepehr071

Real vs legal trading

ts_real_legal
Read-onlyIdempotent

Retrieve daily buy and sell volume, value, and buyer/seller counts split between real individuals and legal institutions for a symbol to analyze market participation.

Instructions

Buy and sell volume, value and buyer/seller counts split by real (individual) and legal (institutional) traders per day.

net_real_volume > 0: individuals net bought. Newest day first.

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_real_legal"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLatest trading days (one upstream call each).
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 (1-10; each day is one upstream call)."New value: +"Latest trading days (one upstream call each)."
    • 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.7/5.0
Behavior4/5

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

Annotations already establish that this is a safe, idempotent, read-only, open-world read. The description adds real value on top: it discloses ordering ('newest day first') and gives the sign convention for `net_real_volume` (> 0 means individuals net bought), which is exactly the kind of interpretation guidance annotations cannot carry. It stops short of stating units or the cost of larger `days` values.

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 short sentences with zero filler, and the field inventory is front-loaded ahead of the interpretation note. The `net_real_volume` sentence is slightly abrupt and reads like a fragment, but 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?

With no output schema, the description must convey what comes back, and it does enumerate the returned dimensions plus the ordering and a key field's sign meaning. Minor gaps remain — no units for value, no statement of what a 'day' boundary means — but for a two-parameter read tool it is close to sufficient.

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%, so both `symbol` (ticker/exact name/ins_code) and `days` (1-10, one upstream call each) are already fully documented in the schema. The description adds nothing about parameter behavior — notably it never connects the per-day framing to the `days` parameter — so the 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?

The description names the concrete data returned — buy/sell volume, value and buyer/seller counts split between real (individual) and legal (institutional) traders per day — which is a specific and distinctive resource compared with siblings like ts_get_quote or ts_price_history. It lacks an explicit verb and never names a sibling to contrast with, so an agent must infer that this is a retrieval tool from the noun phrase alone.

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: the retail-vs-institutional framing suggests it is the tool for flow-composition analysis, and the `net_real_volume` note hints at how to interpret results. There is no explicit when-to-use, no when-not, and no pointer to an alternative among ts_get_quote, ts_price_history or ts_order_book for related needs.

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