Skip to main content
Glama
ifb-mcp

ifb-mcp

by sepehr071

Index history

ifb_index_history
Read-onlyIdempotent

Retrieve daily history and percentage changes for a selected Fara Bourse index, with adjustable range and step for trend analysis.

Instructions

Get the daily history of a Fara Bourse index since 2009, with change over a day, week, month and year.

latest is the newest value; changes_pct compares it with 1, 5, 21 and 250 trading days before; points are newest first. Long trend: days=2000, step="monthly".

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

Input Schema

NameRequiredDescriptionDefault
daysNoLatest trading days (1-5000; all history is about 4,100).
stepNoEvery day, 5th or 21st trading day (long ranges).daily
indexNototal = شاخص کل; equal_weight = total equal-weight; price = price index; equal_weight_price; sukuk = weighted sukuk index.total

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • changedInput schema / properties / days / description
      Previous value: -"How many of the latest trading days to cover (1-5000; all history is about 4,100)."New value: +"Latest trading days (1-5000; all history is about 4,100)."
    • changedInput schema / properties / index / description
      Previous value: -"total = Fara Bourse total index (شاخص کل); equal_weight = total equal-weight index; price = price index; equal_weight_price = equal-weight price index; sukuk = weighted sukuk index."New value: +"total = شاخص کل; equal_weight = total equal-weight; price = price index; equal_weight_price; sukuk = weighted sukuk index."
    • changedInput schema / properties / step / description
      Previous value: -"Keep every day, or every 5th or 21st trading day (use for long ranges)."New value: +"Every day, 5th or 21st trading day (long ranges)."
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive, so the safety profile is covered; the description earns credit for disclosing the return shape instead — 'latest' as the newest value, 'changes_pct' as a comparison against 1, 5, 21 and 250 trading days prior, and 'points' ordered newest first. With no output schema present, this is exactly the missing behavioral context an agent needs, though pagination/truncation behavior for large days values is still unstated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short, front-loaded sentences with the return-field semantics grouped in the middle and the long-range recipe at the end; nearly every clause carries information. It is telegraphic to the point that a reader must already know the domain vocabulary, but there is no filler.

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 three-parameter read-only history tool with full schema coverage and no output schema, the description covers origin date, return fields, ordering, and a long-range recipe — enough to call it correctly. The remaining gap is the absence of any hint about response size or format when requesting thousands of days.

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 both enums are documented in the schema, so the baseline applies. The description adds marginal meaning by tying the 1/5/21/250-day comparison windows to the daily/weekly/monthly step concept and by giving the days=2000 + step="monthly" pairing, but it doesn't clarify units, alignment, or what happens when days exceeds the ~4,100 available.

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 the daily history of a Fara Bourse index') plus scope ('since 2009') and what the series carries ('change over a day, week, month and year'). It implicitly separates itself from the sibling ifb_history by being index- rather than instrument-scoped, but never names that sibling, so the differentiation is inferential rather than explicit.

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?

The closing line 'Long trend: days=2000, step="monthly"' gives concrete invocation guidance for one scenario, but there is no statement of when to prefer this tool over ifb_history or ifb_market_summary, and no exclusions or prerequisites. Usage is implied by the index focus rather than spelled out.

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