Skip to main content
Glama
CBR Currency Rate

CBR Currency Rate

by tordagaz-ops

convert_currency

Read-only

Convert any amount between currencies using official Bank of Russia rates, crossing through the rouble. Specify amount, source and target currency, with an optional date for historical rates.

Instructions

Convert an amount from one currency to another using the official Bank of Russia rates, crossing through the rouble. Both currencies must be quoted by the CBR (or be 'RUB'). Returns the converted amount together with the effective rate. Example: amount=1000, from_currency='USD', to_currency='RUB'.

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": {
      "amount": "<amount>",
      "from_currency": "<from_currency>",
      "to_currency": "<to_currency>"
    },
    "name": "convert_currency"
  }
}

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.
amountYesAmount of money to convert, in units of from_currency.
to_currencyYesCurrency to convert to, such as 'RUB' or 'EUR'.
from_currencyYesCurrency to convert from, such as 'USD'.

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=true and openWorldHint=true, so the safety profile is covered. The description adds behavior the annotations do not: conversion is triangulated 'through the rouble', and unsupported currency codes are a failure condition, both of which affect how an agent should call it. It stops short of describing rounding precision or error response shape.

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 sentences, each doing distinct work: purpose, constraint, return value plus example. The precondition is placed before the example, so an agent scanning top-down hits the blocking requirement first.

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?

An output schema exists and schema descriptions cover all four parameters including date-format and weekend fallback, so the description needn't restate those. What remains thin is the distinction from the sibling rate tools, which an agent choosing between five currency tools would benefit from.

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?

With schema coverage at 100%, the baseline is 3, but the description adds a value constraint beyond the schema: from_currency and to_currency must be CBR-quoted or 'RUB'. The inline example (amount=1000, USD→RUB) also anchors the parameter types and expected magnitudes.

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 uses a specific verb and resource ('Convert an amount from one currency to another') and states the rate source (official Bank of Russia rates), which distinguishes it in practice from the rate-retrieval siblings. It never names an alternative tool explicitly, so the differentiation is implicit in the verb rather than stated.

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?

It states a real precondition ('Both currencies must be quoted by the CBR (or be RUB)') and supplies a worked example showing intended usage. It does not say when to prefer this over get_currency_rate or get_rate_history, so there is clear context but no exclusions.

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