Skip to main content
Glama
fipiran-mcp

fipiran-mcp

by sepehr071

Market overview and indices

fp_indices
Read-onlyIdempotent

Rank Tehran and Farabourse market and industry indices by return and show a market summary, with filters for index name and ranking period.

Instructions

Show the Tehran and Farabourse market summary and rank the 65 market and industry indices by return.

Each index has an ins_code for fp_index_history. The first block is the market overview.

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

Input Schema

NameRequiredDescriptionDefault
limitNoIndices to return.
queryNoPart of index name, Persian, e.g. 'شاخص کل', 'بانک'.
sort_byNoRanking column; returns in percent.daily

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / query / description
      Previous value: -"Part of an index name, Persian, e.g. 'شاخص کل', 'بانک', 'خودرو', 'فلزات'."New value: +"Part of index name, 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

A4.2/5.0
Behavior4/5

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

The annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's job is to add context, and it does: it discloses the universe size (65 indices), that ranking is by percent return, and that the response is structured as a market-overview block followed by index rows. With no output schema, the disclosure of output shape is genuinely useful, though pagination or truncation behavior driven by limit is not mentioned.

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 short sentences with zero filler; the market-summary-plus-ranking scope is front-loaded, and the follow-on pointer to fp_index_history comes only after the primary purpose is established.

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 three-parameter, read-only ranking tool with no output schema, the description covers purpose, universe size, return-shape hints, and the sibling handoff for drill-down. The only real gap is the absence of any statement about how limit interacts with the total of 65 indices or how the market-overview block relates to the requested limit.

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 limit, query, and sort_by are already fully documented, including the enum values and the note that sort_by returns percentages. The description adds only the framing that ranking is 'by return', which the schema already conveys, so it meets but does not exceed 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 and resource ('show the Tehran and Farabourse market summary'), states the scope precisely ('rank the 65 market and industry indices by return'), and routes history lookups to the sibling fp_index_history by naming the required ins_code. An agent can distinguish this from fp_index_history or fp_industries without opening any schema.

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?

The description implies the use case (broad market snapshot plus ranked index returns) and explicitly hands off per-index time series to fp_index_history, which is a clear alternative-condition pointer. It does not say when this tool should be avoided or when fp_industries would be preferable, so it falls just short of full when/when-not coverage.

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