Skip to main content
Glama

TokenBel Financial Data

currency_rate_get

Read-onlyIdempotent

Get NBRB FX rates in BYN per 1 USD/EUR/RUB. No dates = latest; date = one day; date_from/date_to = range; group_by + both bounds = weekly/monthly averages. Example: {"currency":"usd","date":"2026-06-18"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoYYYY-MM-DD; cannot combine with range dates or group_by.
date_toNoInclusive range end (YYYY-MM-DD); must be >= date_from.
currencyNoForeign currency; omit for all three. BYN is the base.
group_byNoWeek/month average; requires both range dates.
date_fromNoInclusive range start (YYYY-MM-DD); optional for open start.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
countYes
date_toYes
resultsYes
currencyYes
group_byNo
date_fromYes
base_currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / currency / description
      Previous value: -"Filter to one supported foreign currency: usd, eur, or rub. Omit to return all three. BYN is the base currency, not a target."New value: +"Foreign currency; omit for all three. BYN is the base."
    • changedInput schema / properties / date / description
      Previous value: -"Single date in YYYY-MM-DD format. Mutually exclusive with date_from/date_to."New value: +"YYYY-MM-DD; cannot combine with range dates or group_by."
    • changedInput schema / properties / date_from / description
      Previous value: -"Range start date in YYYY-MM-DD format (inclusive). Can be omitted for open-start range."New value: +"Inclusive range start (YYYY-MM-DD); optional for open start."
    • changedInput schema / properties / date_to / description
      Previous value: -"Range end date in YYYY-MM-DD format (inclusive, >= date_from). Open-ended or today-bounded ranges bypass cache."New value: +"Inclusive range end (YYYY-MM-DD); must be >= date_from."
    • changedInput schema / properties / group_by / description
      Previous value: -"Aggregate by week or month. Requires a date range (date_from/date_to), not a single date."New value: +"Week/month average; requires both range dates."
  2. Changed5 schema fields changed
    • removedOutput schema / properties / date_from / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / date_from / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / date_to / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / date_to / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / results / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "currency": {
      -        "enum": [
      -          "usd",
      -          "eur",
      -          "rub"
      -        ],
      -        "type": "string"
      -      },
      -      "rate": {
      -        "type": "number"
      -      },
      -      "rate_date": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "currency",
      -      "rate_date",
      -      "rate"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "avg_rate": {
      -        "type": "number"
      -      },
      -      "currency": {
      -        "enum": [
      -          "usd",
      -          "eur",
      -          "rub"
      -        ],
      -        "type": "string"
      -      },
      -      "data_points": {
      -        "type": "number"
      -      },
      -      "expected_data_points": {
      -        "type": "number"
      -      },
      -      "is_complete": {
      -        "type": "boolean"
      -      },
      -      "max_rate": {
      -        "type": "number"
      -      },
      -      "min_rate": {
      -        "type": "number"
      -      },
      -      "period_start": {
      -        "type": "string"
      -      },
      -      "period_type": {
      -        "enum": [
      -          "week",
      -          "month"
      -        ],
      -        "type": "string"
      -      },
      -      "stddev_rate": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      }
      -    },
      -    "required": [
      -      "currency",
      -      "period_type",
      -      "period_start",
      -      "avg_rate",
      -      "min_rate",
      -      "max_rate",
      -      "stddev_rate",
      -      "data_points",
      -      "expected_data_points",
      -      "is_complete"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "currency": {
      +        "enum": [
      +          "usd",
      +          "eur",
      +          "rub"
      +        ],
      +        "type": "string"
      +      },
      +      "rate": {
      +        "type": "number"
      +      },
      +      "rate_date": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "rate_date",
      +      "rate"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "avg_rate": {
      +        "type": "number"
      +      },
      +      "currency": {
      +        "enum": [
      +          "usd",
      +          "eur",
      +          "rub"
      +        ],
      +        "type": "string"
      +      },
      +      "data_points": {
      +        "type": "number"
      +      },
      +      "expected_data_points": {
      +        "type": "number"
      +      },
      +      "is_complete": {
      +        "type": "boolean"
      +      },
      +      "max_rate": {
      +        "type": "number"
      +      },
      +      "min_rate": {
      +        "type": "number"
      +      },
      +      "period_start": {
      +        "type": "string"
      +      },
      +      "period_type": {
      +        "enum": [
      +          "week",
      +          "month"
      +        ],
      +        "type": "string"
      +      },
      +      "stddev_rate": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "period_type",
      +      "period_start",
      +      "avg_rate",
      +      "min_rate",
      +      "max_rate",
      +      "stddev_rate",
      +      "data_points",
      +      "expected_data_points",
      +      "is_complete"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "base_currency": {
      +      "type": "string"
      +    },
      +    "count": {
      +      "type": "number"
      +    },
      +    "currency": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "date_from": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "date_to": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "group_by": {
      +      "enum": [
      +        "week",
      +        "month"
      +      ],
      +      "type": "string"
      +    },
      +    "mode": {
      +      "enum": [
      +        "latest",
      +        "single_date",
      +        "range",
      +        "grouped"
      +      ],
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "currency": {
      +                "enum": [
      +                  "usd",
      +                  "eur",
      +                  "rub"
      +                ],
      +                "type": "string"
      +              },
      +              "rate": {
      +                "type": "number"
      +              },
      +              "rate_date": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "currency",
      +              "rate_date",
      +              "rate"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "avg_rate": {
      +                "type": "number"
      +              },
      +              "currency": {
      +                "enum": [
      +                  "usd",
      +                  "eur",
      +                  "rub"
      +                ],
      +                "type": "string"
      +              },
      +              "data_points": {
      +                "type": "number"
      +              },
      +              "expected_data_points": {
      +                "type": "number"
      +              },
      +              "is_complete": {
      +                "type": "boolean"
      +              },
      +              "max_rate": {
      +                "type": "number"
      +              },
      +              "min_rate": {
      +                "type": "number"
      +              },
      +              "period_start": {
      +                "type": "string"
      +              },
      +              "period_type": {
      +                "enum": [
      +                  "week",
      +                  "month"
      +                ],
      +                "type": "string"
      +              },
      +              "stddev_rate": {
      +                "anyOf": [
      +                  {
      +                    "type": "number"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              }
      +            },
      +            "required": [
      +              "currency",
      +              "period_type",
      +              "period_start",
      +              "avg_rate",
      +              "min_rate",
      +              "max_rate",
      +              "stddev_rate",
      +              "data_points",
      +              "expected_data_points",
      +              "is_complete"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results",
      +    "count",
      +    "mode",
      +    "base_currency",
      +    "currency",
      +    "date_from",
      +    "date_to"
      +  ],
      +  "type": "object"
      +}
  4. Changed3 schema fields changed
    • changedInput schema / properties / currency / description
      Previous value: -"Filter to a single currency (usd, eur, or rub). Omit to return all three."New value: +"Filter to one supported foreign currency: usd, eur, or rub. Omit to return all three. BYN is the base currency, not a target."
    • changedInput schema / properties / date_from / description
      Previous value: -"Range start date in YYYY-MM-DD format (inclusive)."New value: +"Range start date in YYYY-MM-DD format (inclusive). Can be omitted for open-start range."
    • changedInput schema / properties / date_to / description
      Previous value: -"Range end date in YYYY-MM-DD format (inclusive). Must be >= date_from."New value: +"Range end date in YYYY-MM-DD format (inclusive, >= date_from). Open-ended or today-bounded ranges bypass cache."
  5. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, covering the safety profile. The description adds valuable behavioral context by explaining how different date parameters alter the response (single day vs. range vs. averaged series), plus a concrete example. It does not mention error handling or response format, but the output schema covers returns.

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, zero filler. The core purpose is front-loaded, the mode rules are compressed into one clear sentence, and the example is immediately useful. Every word earns its place.

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 simple read-only FX getter with rich schema descriptions, annotations, and an output schema, the description covers the key decision points: what the tool returns, all parameter modes, and a sample invocation. Minor omissions like date inclusivity or holiday handling are either in the schema or non-critical for correct use.

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 each parameter is already documented. The description goes beyond the schema by explaining the interactions between parameters (e.g., group_by requires both range bounds, no dates means latest) and provides an example. This adds meaningful semantic value without repeating schema text.

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 states a specific verb ('Get'), a resource ('NBRB FX rates in BYN per 1 USD/EUR/RUB'), and differentiates from siblings by focusing on currency rates, which none of the sibling tools cover. The three exchange currencies and base currency are explicitly identified.

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?

The description clearly explains when to use each parameter combination: no dates for latest, date for one day, range dates for a range, and group_by for weekly/monthly averages. It does not name alternatives, but the sibling list makes it obvious this is the only FX-rate tool, so explicit routing is unnecessary.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources