Skip to main content
Glama
CBR Currency Rate

CBR Currency Rate

by tordagaz-ops

get_rate_history

Read-only

Retrieves official Bank of Russia exchange rates for one currency over an inclusive start-to-end date range (max 366 days), omitting weekends and holidays.

Instructions

Return a series of official rates for one currency between start_date and end_date, both inclusive. Ranges are capped at 366 days. Only business days are published, so weekends and holidays are absent rather than repeated. Example: currency='USD', start_date='2026-11-01', end_date='2026-11-26'.

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

Input Schema

NameRequiredDescriptionDefault
currencyYesCurrency as an ISO 4217 alpha code such as 'USD', 'EUR' or 'CNY'. 'RUB' is accepted as the base currency. A numeric code such as '840' also works.
end_dateNoLast day of the range, inclusive.
start_dateNoFirst day of the range, inclusive. Accepts 2026-11-01 or 01.11.2026.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a hard 366-day range cap and the fact that non-business days are omitted rather than repeated, which directly affects how an agent interprets gaps in the returned series. It does not state what happens when the cap is exceeded (error vs. truncation) or how the series is ordered.

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?

Four short sentences, front-loaded with the resource and range semantics before constraints and an example. The example earns its place by showing parameter combination and date format, though the 'both inclusive' clause duplicates schema text.

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?

An output schema exists, so return structure need not be described, and the remaining agent needs for a simple read tool — range cap, business-day gaps, accepted currency forms — are all covered. The only minor omission is cap-violation behavior, which is small against the annotations and schema already supplied.

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%, with ISO 4217 codes, numeric codes, alternate date formats, and inclusiveness all documented in the schema itself. The description reinforces inclusiveness and provides a concrete example, but adds no meaning beyond what the schema already states, so the baseline of 3 applies.

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?

The description gives a specific verb and resource ('Return a series of official rates for one currency') scoped by two named date parameters, which clearly separates it from a single-rate or conversion tool. It stops short of naming which sibling returns a single spot rate, so an agent must infer the distinction from names alone.

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?

Usage is implied through the 'series ... between start_date and end_date' framing and the 366-day cap, which signals time-series retrieval rather than a point lookup. However, there is no explicit when-to-use or when-not statement and no named alternative such as get_currency_rate or convert_currency for an agent that only needs one value.

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