Skip to main content
Glama
sepehr071

fipiran-mcp

by sepehr071

Search and rank stocks

fp_stocks
Read-onlyIdempotent

Search and rank last trading day's listed shares by gain, loss, volume, or industry. Find top gainers, most traded stocks, or a ticker symbol.

Instructions

Search and rank listed shares traded on the last trading day: top gainers, losers, most traded, by industry.

Use for "biggest gainers today", "most traded banks", "find the ticker of X". Each row has ins_code and symbol: pass the symbol to fp_stock for the full quote. Prices are rial, value is billion Toman. Shares that did not trade are left out.

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return.
queryNoPart of the ticker or company name, Persian, e.g. 'فولاد'.
marketNobourse: Tehran Stock Exchange; farabourse: Iran Farabourse; farabourse_base: its base market.
sort_byNochange_pct: today's gain (closing price vs yesterday). value: traded value.value
industryNoIndustry group name or code, e.g. 'بانک', 'خودرو', '27'. fp_industries lists them.
ascendingNoTrue lists the lowest first (biggest losers for change_pct).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds behavior the annotations cannot: prices are in rial, value in billion Toman, and shares that did not trade are excluded from results. With no output schema, the note that each row carries ins_code and symbol is also material to correct downstream use.

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?

Three tight sentences, front-loaded with scope and followed by usage examples and one unit/exclusion caveat. No sentence is reusable boilerplate; each adds either routing or output-shape information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Six optional parameters, no output schema, and the description compensates by explaining return row identity (ins_code, symbol), units, and the exclusion of untraded shares. Nothing an agent needs to call or interpret this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by linking parameters to other tools — symbol feeding fp_stock and the industry value being resolvable via fp_industries. It stops short of restating sort/limit semantics, which the schema already handles well.

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 verb (search and rank) and resource (listed shares traded on the last trading day) with the ranking modes named: gainers, losers, most traded, by industry. It also distinguishes itself from siblings by directing ticker lookups to fp_stock and industry names to fp_industries.

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

Usage Guidelines5/5

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

Gives concrete triggering queries ("biggest gainers today", "most traded banks", "find the ticker of X") and explicitly routes the agent onward: pass the returned symbol to fp_stock for a full quote. The alternative and the handoff condition are both stated, not inferred.

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