Skip to main content
Glama
fipiran-mcp

fipiran-mcp

by sepehr071

Search and rank stocks

fp_stocks
Read-onlyIdempotent

Search and rank listed shares from the last trading day by gainers, losers, traded value, volume, trades, price, or industry to identify market movers.

Instructions

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

Pass a row's symbol to fp_stock. Prices are rial, value is billion Toman. Untraded shares are left out.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return.
queryNoPart of ticker or company name, Persian, e.g. 'فولاد'.
marketNoTehran Stock Exchange, Iran Farabourse, or Farabourse base market.
sort_byNochange_pct: today's gain. value: traded value.value
industryNoIndustry name or code, e.g. 'بانک', '27'. fp_industries lists them.
ascendingNoTrue lists the lowest first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.0
    • changedInput schema / properties / ascending / description
      Previous value: -"True lists the lowest first (biggest losers for change_pct)."New value: +"True lists the lowest first."
    • changedInput schema / properties / industry / description
      Previous value: -"Industry group name or code, e.g. 'بانک', 'خودرو', '27'. fp_industries lists them."New value: +"Industry name or code, e.g. 'بانک', '27'. fp_industries lists them."
    • changedInput schema / properties / market / description
      Previous value: -"bourse: Tehran Stock Exchange; farabourse: Iran Farabourse; farabourse_base: its base market."New value: +"Tehran Stock Exchange, Iran Farabourse, or Farabourse base market."
    • changedInput schema / properties / query / description
      Previous value: -"Part of the ticker or company name, Persian, e.g. 'فولاد'."New value: +"Part of ticker or company name, Persian, e.g. 'فولاد'."
    • changedInput schema / properties / sort_by / description
      Previous value: -"change_pct: today's gain (closing price vs yesterday). value: traded value."New value: +"change_pct: today's gain. value: traded value."
  2. First observedv0.1.0

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, non-destructive, so the safety profile is covered. The description adds genuinely new behavioral facts beyond that: prices are in rial, traded value is in billion Toman, and untraded shares are excluded from results. It does not discuss result field shape, but that is a minor remaining gap.

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 tight sentences: the first front-loads scope and ranking modes, the second delivers units and the exclusion rule. Every clause carries information an agent needs, with no filler.

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 six-parameter, all-optional read tool with no output schema, the description covers scope, ranking modes, units, and exclusion of untraded shares, and implies 'symbol' is in each row. The missing piece is a sketch of the returned fields, which would matter given no output schema exists.

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 every parameter is already documented, including the sort_by enum meanings and the fp_industries pointer. The description only indirectly adds meaning by explaining the units of price and value, which helps interpret sort_by='value'/'price' but does not add per-parameter guidance.

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+resource ('Search and rank listed shares') and scopes it to 'the last trading day', with the ranking modes (gainers, losers, most traded, by industry) spelled out. It also routes the agent elsewhere for detail ('Pass a row's symbol to fp_stock'), which separates it from that sibling, though the boundary with fp_industries is only implied.

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?

The phrase 'traded on the last trading day' and 'Untraded shares are left out' tell the agent the context in which this tool applies, and the handoff to fp_stock clarifies the follow-up path. However, there is no explicit when-not or alternative-selection guidance (e.g., when to use this instead of fp_indices or fp_compare).

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