Skip to main content
Glama

Official exchange rates

cb_exchange_rates
Read-onlyIdempotent

Retrieve the Central Bank of Iran's official reference exchange rates for a specific date, covering about 48 currencies in rials per unit, for official-rate lookups rather than free-market rates.

Instructions

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

Use it for the CBI's published rate of the dollar, euro, dirham and about 45 other currencies today or on any past day (archive back to 1383/2004). These are the official rates, not the free-market rate. per_units is how many units the rate covers (JPY 100, KRW 1000...). trend is up or down against the previous day. A date with no rates (weekend gap, holiday, future) returns an empty rates list. For a series of days call cb_rate_history.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark it read-only, idempotent, non-destructive, and open-world, but the description adds important behavior: official vs free-market rate scope, empty-list behavior for missing dates, and interpretation of per_units and trend. These are meaningful details beyond the structured annotations.

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?

Front-loads the tool's purpose, then efficiently covers official-rate caveat, return-field semantics, empty-result behavior, and the sibling alternative. Every sentence is useful and nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read-only tool with no output schema, the description supplies enough context to call and interpret it: date coverage, currency coverage, official-rate meaning, empty-result behavior, and the key return concepts. No critical gap remains for agent selection or invocation.

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 input parameters are already well documented in the schema. The description adds useful context about official-rate scope and return fields like per_units and trend, but it does not add much input-parameter semantics beyond what the schema already provides.

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: retrieves the Central Bank of Iran's official reference exchange rates for one day, in rials per currency unit. It also distinguishes official rates from free-market rates and names cb_rate_history for multi-day series, so an agent can distinguish it from siblings.

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?

Explicitly says to use it for today or any past day back to 1383/2004, clarifies these are official not free-market rates, and directs series requests to cb_rate_history. It also explains that weekends, holidays, and future dates return an empty rates list.

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