Skip to main content
Glama
ifb-mcp

ifb-mcp

by sepehr071

Search instruments by symbol or name

ifb_search
Read-onlyIdempotent

Search Iran Fara Bourse instruments by symbol or Persian name to find the instrument id required by other tools; search the stem when board symbols include an extra digit.

Instructions

Find Iran Fara Bourse instruments (stocks, bonds, sukuk, treasury bills, funds, options) by symbol or name.

Turns a symbol into the id other ifb_ tools take. Board symbols often end in an extra digit (اخزا301 is اخزا3011 here): search the stem.

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": {
      "query": "<query>"
    },
    "name": "ifb_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (1-40).
queryYesPart of a symbol or name, in Persian, e.g. گام, کارون.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / query / description
      Previous value: -"Part of a trading symbol or name, in Persian, e.g. اخزا301, گام, کارون, فرابورس."New value: +"Part of a symbol or name, in Persian, e.g. گام, کارون."
  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?

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuine behavioral context beyond them: results are multiple candidates, and there is a real data quirk where board symbols (اخزا301) differ from the searchable form (اخزا3011), which changes how an agent should query. It stops short of describing result fields or ordering, which is the residual 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 paragraphs: purpose first, then the practical gotcha. No filler, no restatement of the title, and the most failure-prone detail (the trailing-digit mismatch) is called out with a concrete example rather than buried.

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 only two simple parameters, no output schema, and full annotation coverage, the description covers what an agent needs in order to call it correctly. The one omission is return shape — it implies an `id` comes back but does not say what else accompanies it (symbol, name, board) or whether misses return an empty list.

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 coverage is 100%, so both parameters are already documented, including the 1-40 limit and the Persian-substring examples for `query`. The description confirms that `query` matches either symbol or name and adds the stem-matching tip, which is real added meaning, but it does not explain truncation behavior under `limit` or how partial matches are ranked.

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 (Find) and a precisely scoped resource (Iran Fara Bourse instruments), enumerates the covered instrument classes, and names the downstream role — resolving a symbol into the `id` that the other ifb_ tools consume. That last clause alone distinguishes it from every sibling, which operate on an id rather than finding one.

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?

Usage is clear from context: call this first when you have a symbol/name but need an `id`, or when you want to browse instruments by partial name. It also supplies a concrete search strategy (search the stem because board symbols carry an extra digit). There is no explicit when-not or named alternative, but the prerequisite role is unambiguous.

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