Skip to main content
Glama
ifb-mcp

ifb-mcp

by sepehr071

Price and yield history

ifb_history
Read-onlyIdempotent

Retrieve daily OHLC price and volume history for a single Iran Fara Bourse instrument by ID or symbol, with yield-to-maturity for bonds and treasury bills, newest first.

Instructions

Get daily price history of one instrument: first, high, low and closing price and volume per trading day, newest first.

Bonds and treasury bills also get ytm_pct per day. Days with no trade are absent.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLatest trading days (1-250).
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. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / days / description
      Previous value: -"How many of the latest trading days to return (1-250)."New value: +"Latest trading days (1-250)."
    • 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.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, so safety is covered. The description adds genuinely useful context beyond that: newest-first ordering, the extra `ytm_pct` field for bonds and treasury bills, and the convention that non-trading days are omitted rather than zero-filled. That is solid but stops short of depth — nothing about gaps, limits, or failure modes.

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, no redundancy, and the most important fact — what is returned and in what order — leads. The field enumeration and the two caveats each earn their place.

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 correctly carries the return-shape burden and covers ordering, the bond-specific yield field, and the missing-days convention. The only real omission is that the `days` lookback window, which shapes the response size, is never mentioned in prose.

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 both `days` and `instrument` are already documented, including the 1-250 range and the id-source hint. The description mentions neither parameter and adds no syntax or format guidance, so it neither compensates nor detracts — baseline 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 and resource ('Get daily price history of one instrument') and enumerates the returned fields (first, high, low, close, volume), which distinguishes it from price-adjacent siblings like ifb_quote or ifb_index_history. It never names those siblings explicitly, so an agent must infer the boundary itself.

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: 'one instrument' signals it is per-security and 'per trading day' signals a time series, which implicitly excludes index history and live quotes. There is no explicit when-to-use or when-not-to-use statement and no alternative is named.

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