Skip to main content
Glama
ifb-mcp

ifb-mcp

by sepehr071

Live market watch and top movers

ifb_market_watch
Read-onlyIdempotent

Query live Fara Bourse market watch data to rank and filter symbols by price, change, volume, trades, or market value, with bid/ask quotes and market breadth.

Instructions

Show the live Fara Bourse market watch: every symbol's price, change, volume and best bid and ask, ranked and filtered.

Reads the site's market watch feed (about 1,200 symbols, 3 MB, cached 30 s): call sparingly. breadth counts rising, falling and flat matches; as_of is the site's clock. Take an id to ifb_quote or ifb_instrument.

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

Input Schema

NameRequiredDescriptionDefault
boardNoBoard; fixed_income = bonds and sukuk, housing = تسهیلات مسکن, rights = حق تقدم.all
limitNoMax rows (1-100).
statusNoopen = allowed to trade (مجاز), halted = stopped (ممنوع-متوقف); any = both.any
sort_byNochange_pct = movers; value or volume = most traded.value
descendingNoHigh to low; False = biggest losers first.
traded_onlyNoOnly symbols that traded this session.
symbol_containsNoSymbol or name contains.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.2.0
    • changedInput schema / properties / board / description
      Previous value: -"Board to list: first, second and innovation markets, base (پایه) yellow/orange/red, fixed_income (bonds and sukuk), etf, options, housing (تسهیلات مسکن), rights (حق تقدم) or all."New value: +"Board; fixed_income = bonds and sukuk, housing = تسهیلات مسکن, rights = حق تقدم."
    • changedInput schema / properties / descending / description
      Previous value: -"High to low (default). False gives the biggest losers first."New value: +"High to low; False = biggest losers first."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Ranking key: change_pct = biggest movers, value or volume = most traded."New value: +"change_pct = movers; value or volume = most traded."
    • removedInput schema / properties / symbol_contains / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 40,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / symbol_contains / description
      Previous value: -"Only symbols containing this text."New value: +"Symbol or name contains."
    • addedInput schema / properties / symbol_contains / maxLength
      Added value: +40
    • addedInput schema / properties / symbol_contains / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / traded_only / description
      Previous value: -"Only symbols that traded in this session (default)."New value: +"Only symbols that traded this session."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

The annotations already cover safety (readOnly, idempotent, non-destructive, open-world), and the description adds cost/behavioral context they cannot: payload size, symbol count, 30-second caching, and the admonition to call sparingly. It also explains return semantics that no output schema captures — `breadth` as rising/falling/flat counts and `as_of` as the site's clock.

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?

Front-loaded with the core purpose in the first sentence, then a compact paragraph that covers cost, return semantics and hand-off routing. Every sentence carries distinct information and none restates structured fields.

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 7-parameter, all-optional read tool with full schema coverage and no output schema, the definition supplies what the schema cannot: retrieval cost, caching, and meaning of the two metadata fields. Minor omission is no mention of what happens when filters match nothing or how `limit` interacts with ranking, but nothing essential to a correct call is missing.

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% and includes enum value explanations (board, status, sort_by), so the schema already carries parameter meaning. The description says results are "ranked and filtered" but adds no parameter-specific detail such as the default sort of `value` or the 1-100 limit, so the baseline 3 applies.

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 names a specific verb and resource ("Show the live Fara Bourse market watch") and enumerates the returned fields (price, change, volume, best bid/ask) plus the ranked/filtered scope. That is enough for an agent to distinguish this bulk market-watch listing from single-instrument siblings like ifb_quote and ifb_instrument, which are explicitly named as follow-ups.

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?

It gives a clear usage constraint ("call sparingly" with the reason: ~1,200 symbols, 3 MB, cached 30 s) and explicit next-step routing ("Take an `id` to ifb_quote or ifb_instrument"). It does not, however, say when to prefer this over ifb_market_summary or when a narrow ifb_search would be cheaper, so there is no explicit exclusions guidance.

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