Skip to main content
Glama
NBP MCP Server

NBP MCP Server

by mpryc

get_currency_rate

Retrieve current or historical exchange rates for any currency code, with optional date and table selection, to convert values or check the Polish National Bank rate on a specific day.

Instructions

Get exchange rate for a currency, either current or for a specific date.

Args: code: Three-letter currency code (e.g., USD, EUR, GBP) following ISO 4217 date: Specific date in YYYY-MM-DD format (ISO 8601). If empty, gets current rate. table: Table type - 'a' for average rates, 'b' for other currencies, 'c' for bid/ask rates (default: 'a')

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": {
      "code": "<code>"
    },
    "name": "get_currency_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
dateNo
tableNoa

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does add useful context by explaining what the table codes mean (average vs. other currencies vs. bid/ask), but it never states the data source, whether rates are cached or live, how invalid currency codes or future dates are handled, or expected response latency.

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 summary sentence is front-loaded and the Arg block is compact with one line per parameter. Layout is clean and there is no redundant prose, though the per-parameter lines read more like schema documentation than a description.

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, so return-value explanation is unnecessary, and the input parameters are fully described. For a simple single-lookup tool this is nearly sufficient; only the data source and error behavior for invalid codes are missing.

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 0%, and the description compensates reasonably: it gives the ISO 4217 three-letter format, the ISO 8601 date format with the empty-string default behavior, and meanings for the 'a'/'b'/'c' table values plus the default 'a'. The 'b' explanation ('other currencies') remains vague and the accepted value set is not formally enumerated, so it is good compensation but not exhaustive.

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 first sentence names a specific verb and resource ('Get exchange rate for a currency') and scopes the operation to a single point in time ('either current or for a specific date'), which implicitly separates it from the history and last-n siblings. It stops short of naming those siblings explicitly, so the agent must infer the boundary from the sibling 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?

The description states 'If empty, gets current rate,' which is a practical usage cue for the date parameter. However, there is no guidance on when to prefer this tool over get_currency_rate_history or get_currency_rate_last_n, and no note about prerequisites, valid code handling, or failure modes.

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