Skip to main content
Glama
fipiran-mcp

fipiran-mcp

by sepehr071

Search and rank funds

fp_search_funds
Read-onlyIdempotent

Search Iranian mutual funds and ETFs by name, type, or manager; filter by age or size; and rank results by return or fund size.

Instructions

Search Iranian mutual funds and ETFs by name, type or manager, and rank them by return or size.

Rows have reg_no and group_id for fp_fund, fp_history, fp_compare.

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

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return.
queryNoPart of fund name, ticker or manager, Persian (e.g. 'کیان').
managerNoPart of manager name, e.g. 'آگاه'.
sort_byNoRanking column; returns in percent.annual
ascendingNoTrue lists the lowest first.
fund_typeNoType id or name: 4 fixed_income, 5 gold, 6 equity, 7 mixed, 21 sector, 22 leveraged, 23 index, 25 pension. fp_fund_types lists all.
min_age_yearsNoOnly funds older than this (years).
exchange_tradedNoTrue: only exchange-traded funds (ETFs). False: only NAV-priced funds. Omit for both.
min_size_bn_tomanNoOnly funds at least this big, in billion Toman.
include_market_makersNoAlso list market-maker funds (type 11, 1000+ series).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.2.0
    • changedInput schema / properties / exchange_traded / description
      Previous value: -"True: only funds traded on the exchange like shares (ETFs, with a ticker). False: only funds you buy and redeem at NAV. Omit for both."New value: +"True: only exchange-traded funds (ETFs). False: only NAV-priced funds. Omit for both."
    • changedInput schema / properties / fund_type / description
      Previous value: -"Type id or name: 4 fixed income (درآمد ثابت), 5 gold/commodity, 6 equity (سهام), 7 mixed (مختلط), 21 sector, 22 leveraged, 23 index, 25 pension... English words work too: fixed_income, gold, equity, mixed. fp_fund_types lists all."New value: +"Type id or name: 4 fixed_income, 5 gold, 6 equity, 7 mixed, 21 sector, 22 leveraged, 23 index, 25 pension. fp_fund_types lists all."
    • changedInput schema / properties / include_market_makers / description
      Previous value: -"Also list market-maker funds (type 11, over 1000 series, rarely wanted)."New value: +"Also list market-maker funds (type 11, 1000+ series)."
    • changedInput schema / properties / manager / description
      Previous value: -"Part of the fund manager's name, e.g. 'آگاه'."New value: +"Part of manager name, e.g. 'آگاه'."
    • changedInput schema / properties / min_age_years / description
      Previous value: -"Only funds older than this; use it so 'annual' returns are not from a young fund."New value: +"Only funds older than this (years)."
    • changedInput schema / properties / query / description
      Previous value: -"Part of the fund name, ticker or manager, Persian (e.g. 'کیان', 'طلا', 'آگاه')."New value: +"Part of fund name, ticker or manager, Persian (e.g. 'کیان')."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Ranking column; returns are percent over that period."New value: +"Ranking column; returns in percent."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered. The description adds only that rows carry reg_no and group_id for downstream calls; it says nothing about result volume, default ordering behavior, or how missing filters are treated beyond what the schema states.

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 the capability front-loaded and no filler. The second sentence is telegraphic ('Rows have reg_no and group_id for fp_fund, fp_history, fp_compare'), which saves space but is slightly cryptic about what the agent should do with those fields.

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

Completeness3/5

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

For a 10-parameter search tool with no output schema, the description covers purpose and a minimal return hint, and annotations carry the safety story. It still omits whether text search spans ticker and manager simultaneously, and what the result rows otherwise contain, which an agent would want when deciding between this and fp_fund.

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 already carries an explanation and the baseline is 3. The description's phrase 'by name, type or manager' loosely maps to query/fund_type/manager and 'by return or size' to sort_by, but adds no syntax, format or interaction detail 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?

The description gives a specific verb and resource ('Search Iranian mutual funds and ETFs') plus the two axes of the tool (filter by name/type/manager, rank by return/size), which distinguishes it from detail-oriented siblings like fp_fund or fp_history. It stops short of explicitly naming which sibling to use for a single-fund lookup, leaving the differentiation implicit.

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 stated purpose implies when to reach for it (discovery/screening/ranking), and the mention of reg_no and group_id hints that results feed fp_fund, fp_history and fp_compare. However, there is no explicit when-to-use versus fp_managers, fp_fund_types or fp_index_history, and no stated preconditions or exclusions.

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