Skip to main content
Glama
CBR Currency Rate

CBR Currency Rate

by tordagaz-ops

get_currency_rate

Read-only

Retrieve the official Bank of Russia exchange rate for a specified currency and optional date; weekends and holidays return the previous business day's published rate.

Instructions

Return the official Bank of Russia rate for one currency: roubles per unit, the inverse, the quoted nominal and both the English and Russian names. 'date' is optional and accepts 2026-11-26, 26.11.2026 or 26/11/2026; without it the latest published day is used. Weekends and holidays fall back to the previous business day and the response says which day was used. 'RUB' is accepted and always equals 1. Example: currency='USD'.

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

Input Schema

NameRequiredDescriptionDefault
dateNoDate of the rate. Accepts 2026-11-26, 26.11.2026 or 26/11/2026. Omit it for the latest published day; weekends and holidays fall back to the previous business day.
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint and openWorldHint, but the description adds real behavioral detail beyond them: weekends and holidays fall back to the previous business day and the response reports which day was used. That fallback disclosure materially affects how an agent should interpret a returned rate; only permission/auth and latency concerns are left implicit.

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?

The output shape and date semantics are front-loaded in dense, well-ordered sentences with no filler. Slight redundancy comes from spelling out return components that the output schema already covers and from repeating the date formats verbatim from the schema.

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 two-parameter, single-rate lookup with a full output schema, everything an agent needs to call it correctly is present, including the holiday fallback edge case. Its only shortfall is the lack of sibling-level disambiguation, which matters given four adjacent currency tools.

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 the date formats, the ISO 4217 code guidance, and the 'RUB' acceptance are already documented in the schema. The description largely restates that content rather than adding new meaning, satisfying the baseline 3 but not exceeding it.

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?

The description opens with a specific verb and resource — 'Return the official Bank of Russia rate for one currency' — and enumerates the returned components (roubles per unit, inverse, nominal, EN/RU names). This is unambiguous and clearly distinct from a history or conversion tool without needing to inspect the schema.

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?

Usage context is clear: 'date' is optional, omitting it yields the latest published day, and 'RUB' is accepted as an identity case, plus a concrete call example. What is missing is any explicit routing against siblings like get_rate_history, convert_currency, or list_currency_rates, so the agent must infer when a single-rate lookup is preferred over a history or conversion call.

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