Skip to main content
Glama

Currency rate history

cb_rate_history
Read-onlyIdempotent

Retrieve official CBI exchange-rate history for one currency over time, including sampled date ranges and total change, to analyze currency trends and compare periods.

Instructions

Get the official CBI rate of one currency over time, oldest first, with the total change.

Without dates: the last 7 published days. With from_date: samples every step_days up to to_date (default today), at most 20 points, so use step_days 7 for months or 30 for years. Rials per currency unit.

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": {
      "currency": "<currency>"
    },
    "name": "cb_rate_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_dateNoDate as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest.
currencyYesISO code, e.g. USD.
from_dateNoDate as 1404/01/01 (Jalali, year below 1700) or 2025-03-21 (Gregorian). Default: latest.
step_daysNoDays between points (1-90).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / currency / description
      Previous value: -"ISO code, e.g. USD, EUR, AED, TRY."New value: +"ISO code, e.g. USD."
    • changedInput schema / properties / step_days / description
      Previous value: -"Days between points when from_date is given (1-90)."New value: +"Days between points (1-90)."
  2. First observedv0.1.0

TDQS

A4.1/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 safety profile is covered. The description adds value beyond that: oldest-first ordering, inclusion of a total change figure, a hard 20-point ceiling that explains the sampling behavior, the 7-day default window, and the unit (Rials per currency unit). It doesn't cover error cases or whether unpublished days are skipped, hence not 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 compact sentences: what it returns and in what order, then the default behavior, then the parameterized behavior with the cap, then the unit. Scope and ordering are front-loaded and no sentence is 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?

Full parameter documentation plus the 20-point cap, default window, ordering, and unit make this callable without guesswork, and read-only annotations carry the safety story. With no output schema, the description could say a bit more about the return shape (list of date/rate points versus a single object with a change field), which is the only real gap.

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; the description rises above it by explaining the interaction between from_date, to_date and step_days and by translating step_days into practical values (7 for months, 30 for years) tied to the 20-point cap. Date formats are left to the schema, which already documents Jalali vs Gregorian.

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: retrieves the official CBI rate of one currency over a time range, ordered oldest first, with the total change. It is distinguishable from siblings like cb_news_item or cb_inflation, but it never names cb_exchange_rates, which is the closest sibling and presumably covers the current/snapshot rates — a one-clause differentiation would have made this a 5.

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

Usage Guidelines4/5

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

Gives concrete usage context: with no dates it returns the last 7 published days, and with from_date it samples every step_days up to to_date with a 20-point cap. That yields actionable guidance (step_days 7 for months, 30 for years). It falls short of explicit when-not-to-use or an alternative-pointer to cb_exchange_rates.

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