Skip to main content
Glama

Official exchange rates

cb_exchange_rates
Read-onlyIdempotent

Fetch the Central Bank of Iran's official exchange rates for any date back to 1383, in rials per currency unit, to convert values or check a day's official rate. Returns an empty list on holidays or future dates.

Instructions

Get the Central Bank of Iran's official reference exchange rates for one day, in rials per currency unit.

About 48 currencies, today or any day back to 1383; official, not free-market. per_units is the unit count the rate covers (JPY 100). No rates (holiday, future) gives an empty rates. For a series use cb_rate_history.

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

Input Schema

NameRequiredDescriptionDefault
dateNoDate as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest.
currenciesNoISO codes, e.g. ["USD", "EUR"]. Default: all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / currencies / description
      Previous value: -"Only these ISO codes, e.g. [\"USD\", \"EUR\", \"AED\"]. Default: all (about 48)."New value: +"ISO codes, e.g. [\"USD\", \"EUR\"]. Default: all."
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive, openWorld), the description adds real behavioral context: coverage of ~48 currencies, a historical floor at 1383, the official-vs-free-market distinction, the `per_units` scaling convention (JPY 100), and the empty-`rates` edge case for holidays and future dates. That is precisely the kind of context annotations cannot express.

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?

Purpose, coverage, unit convention, edge case, and sibling routing appear in four sentences with no filler and the verb-and-resource statement front-loaded. Nothing repeats the annotations or the schema verbatim.

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 full burden of return-value explanation and does most of it: quote basis, `per_units` scaling, and the empty-`rates` behavior. The remaining gap is that the full shape of a `rates` entry is only partially implied rather than described.

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 Jalali/Gregorian date formats and ISO-code list are already documented; the baseline would be 3. The description nevertheless adds value by bounding the `currencies` selection ('About 48 currencies') and by explaining `per_units`, which is what makes the requested currency subset interpretable.

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 ('Get the Central Bank of Iran's official reference exchange rates'), scopes it to one day, and declares the unit basis (rials per currency unit). It also names the sibling it is not ('For a series use cb_rate_history'), so an agent can separate it from cb_rate_history or cb_policy_rates without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit use conditions ('today or any day back to 1383') and an explicit alternative with the selecting condition ('For a series use cb_rate_history'). It further excludes a class of near-miss expectations by stating the rates are 'official, not free-market', which tells the agent not to use this for market/parallel rates.

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