Skip to main content
Glama
ifb-mcp

ifb-mcp

by sepehr071

Live quote and order book

ifb_quote
Read-onlyIdempotent

Retrieves live trading data for one instrument, including last and closing price, change, volume, value, order book, and bond yield.

Instructions

Get the live trading data of one instrument: last and closing price, change, volume, value, order book, and YTM for bonds.

Prices are rial; outside trading hours it shows the last session. Empty order-book levels are dropped; bond levels carry the yield of each price.

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": {
      "instrument": "<instrument>"
    },
    "name": "ifb_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
instrumentYesId from ifb_search or ifb_yields (e.g. 33314) or an exact symbol (e.g. فرابورس1).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / instrument / description
      Previous value: -"Instrument id from ifb_search or ifb_yields (digits, e.g. 33314) or an exact trading symbol (e.g. فرابورس1)."New value: +"Id from ifb_search or ifb_yields (e.g. 33314) or an exact symbol (e.g. فرابورس1)."
  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 cover safety (readOnly, idempotent, non-destructive), and the description adds genuinely non-obvious behavior: prices are in rial, outside trading hours the last session is shown, empty order-book levels are dropped, and bond levels carry per-price yields. It omits staleness/timestamp semantics and any rate-limit or data-delay caveats, so it is strong but not exhaustive.

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 sentences, both information-dense, with the core purpose front-loaded and the caveats (currency, out-of-hours behavior, order-book handling) packed into a short second sentence. No filler or restatement of the title.

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 no output schema, the description carries the burden of describing returns and does so by listing the fields returned. The only real gap is that it does not clarify whether the values are a snapshot versus streaming, or how out-of-hours snapshots are timestamped.

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% and the parameter description already supplies accepted forms and examples (id from ifb_search or ifb_yields, or an exact symbol). The tool description adds no further meaning about the instrument argument, so baseline 3 applies.

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 ("Get the live trading data of one instrument") and enumerates the returned fields, which clearly separates it from historical or static siblings like ifb_history and ifb_instrument. It does not explicitly name which sibling to use instead for related needs, so it stops short of a 5.

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?

Usage is only implied: 'live' versus 'last session' suggests when this tool applies, and the pointer to ifb_search/ifb_yields lives in the schema rather than the description. There is no explicit when-to-use, when-not-to-use, or alternative-tool routing.

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