Skip to main content
Glama

Merit — Ukrainian Law & Registers

Get NBU Exchange Rate

ua_nbu_rate__rate
Read-onlyIdempotent

Look up the National Bank of Ukraine's official exchange rate (UAH per unit) for a currency, as of a given date or today if none is given. Supports historical dates for ЦК §533 п.2-style currency-conversion calculations, not only the current rate. Returns available: false with a null rate, rather than an error, when NBU has nothing published for the requested currency or date.

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

Input Schema

NameRequiredDescriptionDefault
dateNoYYYY-MM-DD. Defaults to today (Kyiv) when omitted.
currencyYesISO 4217 alphabetic code, e.g. USD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world traits, so the bar is lower, yet the description adds a genuinely non-obvious behavior: missing data yields `available: false` with a null rate rather than an error. That materially changes how an agent should handle the response. It stops short of describing auth, rate limits, or the full response shape beyond that flag.

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?

Three front-loaded sentences: purpose and direction first, then the historical/default date behavior, then the failure mode. Every sentence carries information, though the "ЦК §533 п.2-style" citation is jargon that adds length for agents without that legal context.

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 lookup with no output schema, the description covers purpose, date resolution, rate direction, and the null-data case, which is the main thing an agent must handle. It could go slightly further on what the successful response contains (e.g. the published rate date), which is why it isn't a 5.

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 coverage is 100% and both parameters are documented with format hints (YYYY-MM-DD, ISO 4217) plus the Kyiv-timezone default, so the schema does the heavy lifting. The description adds the interpretive detail that the returned figure is UAH per unit, but that describes the result rather than the parameters, so baseline 3 applies.

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?

States a specific verb and resource ("Look up the National Bank of Ukraine's official exchange rate") and pins down the direction of the quote ("UAH per unit"). No sibling tool in the list provides FX rates, and the description makes that scope unambiguous.

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?

Explicitly states the default ("today if none is given") and the historical case ("Supports historical dates for ЦК §533 п.2-style currency-conversion calculations"). No exclusion or named-alternative guidance is needed here because no sibling competes for this task, but it also never says when a different tool would be preferable.

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.