Skip to main content
Glama
ifb-mcp

ifb-mcp

by sepehr071

Bond, sukuk and treasury bill yields

ifb_yields
Read-onlyIdempotent

Find and rank Fara Bourse fixed-income papers by yield to maturity, maturity date, price, or symbol; filter treasury bills, sukuk, and bonds by YTM range and maturity dates.

Instructions

List fixed-income papers on Fara Bourse with last price, maturity and yield to maturity (YTM), filtered and ranked.

YTM comes from each paper's last trade, so check last_trade for staleness. price is rial per paper (face value usually 1,000,000). Take an id to ifb_instrument or ifb_quote.

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

Input Schema

NameRequiredDescriptionDefault
kindNotreasury = treasury bills and similar government papers (اخزا, گام; with simple yield); bonds = sukuk and other fixed income.all
limitNoMax rows (1-100).
max_ytmNoMax YTM, percent.
min_ytmNoMin YTM, percent a year, e.g. 40.
sort_byNoSort key.ytm
descendingNoHigh to low; False = low to high.
matures_afterNoJalali YYYY/MM/DD, e.g. 1405/07/01.
matures_beforeNoJalali YYYY/MM/DD, e.g. 1405/07/01.
include_maturedNoAlso list matured papers.
symbol_containsNoSymbol contains, e.g. گام.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changedv0.2.0
    • changedInput schema / properties / descending / description
      Previous value: -"Sort high to low (default). False sorts low to high, e.g. nearest maturity first."New value: +"High to low; False = low to high."
    • changedInput schema / properties / include_matured / description
      Previous value: -"Also list papers already matured (default: no)."New value: +"Also list matured papers."
    • changedInput schema / properties / kind / description
      Previous value: -"treasury = Islamic treasury bills and similar government papers (اخزا, گام productive-credit certificates; with simple yield); bonds = sukuk, participation papers and other fixed income; all = both."New value: +"treasury = treasury bills and similar government papers (اخزا, گام; with simple yield); bonds = sukuk and other fixed income."
    • removedInput schema / properties / matures_after / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^\\d{4}[/-]\\d{1,2}[/-]\\d{1,2}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / matures_after / description
      Previous value: -"Jalali date YYYY/MM/DD, e.g. 1405/07/01."New value: +"Jalali YYYY/MM/DD, e.g. 1405/07/01."
    • addedInput schema / properties / matures_after / pattern
      Added value: +"^\\d{4}[/-]\\d{1,2}[/-]\\d{1,2}$"
    • addedInput schema / properties / matures_after / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / matures_before / anyOf
      Removed value: -[
      -  {
      -    "pattern": "^\\d{4}[/-]\\d{1,2}[/-]\\d{1,2}$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / matures_before / description
      Previous value: -"Jalali date YYYY/MM/DD, e.g. 1405/07/01."New value: +"Jalali YYYY/MM/DD, e.g. 1405/07/01."
    • addedInput schema / properties / matures_before / pattern
      Added value: +"^\\d{4}[/-]\\d{1,2}[/-]\\d{1,2}$"
    • addedInput schema / properties / matures_before / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / max_ytm / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / max_ytm / description
      Previous value: -"Only yields at or below this."New value: +"Max YTM, percent."
    • addedInput schema / properties / max_ytm / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / min_ytm / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / min_ytm / description
      Previous value: -"Only yields to maturity (percent a year) at or above this, e.g. 40."New value: +"Min YTM, percent a year, e.g. 40."
    • addedInput schema / properties / min_ytm / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • 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, e.g. گام or اخزا2."New value: +"Symbol contains, e.g. گام."
    • addedInput schema / properties / symbol_contains / maxLength
      Added value: +40
    • addedInput schema / properties / symbol_contains / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  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/openWorld, so the bar is lower, and the description still adds real domain context: YTM is derived from each paper's last trade and may be stale, and price is quoted in rial per paper against a ~1,000,000 face value. It does not mention result-size limits or pagination beyond the schema's `limit`, which keeps it short of a 5.

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 tight sentences: purpose first, then a caveat about data freshness, then the handoff to sibling tools. No repetition of schema defaults or enum values, and every sentence carries actionable information.

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 10-parameter screening tool with no output schema, the description identifies the key returned fields and warns about staleness, which is what an agent most needs before trusting results. Minor gaps remain around result ordering semantics and volume of output, but the essentials are covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema lacks — the rial-per-paper price unit with the typical face value, and the fact that YTM reflects the last trade rather than a live quote. That interpretive context meaningfully changes how an agent reads the returned `ytm` and `price` values.

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 and resource — 'List fixed-income papers on Fara Bourse' — and enumerates the fields returned (last price, maturity, YTM) plus the filtering/ranking behavior. The fixed-income screening scope is clearly distinguishable from siblings like ifb_instrument and ifb_quote, which the description explicitly frames as downstream lookups.

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?

Provides a useful forward-workflow hint ('Take an `id` to ifb_instrument or ifb_quote') and a staleness-check instruction via `last_trade`. However, it never states when to choose this tool over alternatives such as ifb_search or ifb_yield_curve, leaving the selection logic implied by the resource name alone.

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