Skip to main content
Glama
NBP MCP Server

NBP MCP Server

by mpryc

get_currency_rate_history

Retrieve historical exchange rates for a currency across a date range, with table selection for average, other, or bid/ask rates.

Instructions

Get historical exchange rates for a currency within a date range.

Args: code: Three-letter currency code (e.g., USD, EUR, GBP) following ISO 4217 start_date: Start date in YYYY-MM-DD format (ISO 8601) end_date: End date in YYYY-MM-DD format (ISO 8601) 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>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_currency_rate_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
tableNoa
end_dateYes
start_dateYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 burden. It does disclose meaningful behavior via the table argument semantics ('a' average, 'b' other currencies, 'c' bid/ask) and the default, but it says nothing about rate limits, data availability windows, authentication, or whether missing dates return gaps or errors.

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?

A front-loaded one-line summary followed by a compact Args block; every line carries information and there is no filler. Minor deduction for the slightly repetitive per-parameter restatement of formats rather than a single grouped note.

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 description is not required, and all four inputs are documented. What remains missing is modest for a low-complexity read tool: guidance on choosing this over the sibling history/current-rate tools and any note on data range limits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and it does: all four parameters get meaning, including ISO 4217 format for code, ISO 8601 YYYY-MM-DD for both dates, and the enumerated meanings of the table values plus their default. This is exactly the information the bare schema lacks.

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 opens with a specific verb and resource: 'Get historical exchange rates for a currency within a date range.' That is enough to separate it from a current-rate sibling such as get_currency_rate, though it never names or contrasts an alternative explicitly.

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?

Usage is only implied by the word 'historical' and the required date range; the description never states when to prefer this over get_currency_rate, get_currency_rate_last_n, or get_exchange_table, nor does it give exclusions or prerequisites.

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