Skip to main content
Glama

NBP MCP

NBP currency rate history

nbp_rate_series

Get a historical time series of NBP rates for one currency against PLN: either the last N published quotes (last_n, default 30, max 255) or an explicit start_date/end_date window (max 93 days per query — NBP's hard limit; chain calls for longer spans). Quotes exist only for publication days: business days for tables 'a'/'c', Wednesdays for 'b'. Data starts 2002-01-02.

Input Schema

NameRequiredDescriptionDefault
codeYesThree-letter ISO 4217 currency code (e.g. USD, EUR, CHF). Case-insensitive.
tableNoNBP table: 'a' (default) = official mid rates of ~35 major currencies, published every business day; 'b' = mid rates of ~115 less-traded currencies, published Wednesdays; 'c' = bid/ask (buy/sell) rates of major currencies, published every business day.
last_nNoReturn the last N published quotes (1-255). Default 30. Mutually exclusive with start_date/end_date.
end_dateNoWindow end (YYYY-MM-DD, inclusive). Requires start_date; span ≤ 93 days.
no_cacheNoForce a fresh NBP fetch and bypass this server's result cache. Default false.
start_dateNoWindow start (YYYY-MM-DD, inclusive). Requires end_date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and discloses key constraints: maximum 93-day windows, chaining for longer spans, publication-day availability for tables 'a'/'c' versus Wednesdays for 'b', and data starting 2002-01-02. It does not mention auth, rate limits, caching, or return shape, but it adds substantial behavioral context beyond the schema.

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?

The description is compact and front-loaded: it opens with the core purpose, then presents the two query modes and key constraints. Every sentence contributes useful information without repetition or filler.

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 six-parameter historical-series tool with a fully described schema but no annotations or output schema, the description covers purpose, mode selection, NBP's hard limit, publication calendars, and data start. It could say more about return format or caching, but it is complete enough for correct invocation.

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 100%, so the schema already documents code, table, last_n, start_date, end_date, and no_cache in detail. The description reinforces the two query modes and adds the useful chaining note for spans over 93 days, but most parameter meaning is already present in the schema.

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 states a specific verb and resource: retrieving a historical time series of NBP rates for one currency against PLN. It clearly separates this from a current-rate or conversion tool through the phrase "historical time series," though it does not explicitly name sibling alternatives.

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 gives clear usage modes: either last_n quotes or an explicit start_date/end_date window, and notes that longer spans require chained calls due to NBP's 93-day limit. It does not explicitly compare this tool with siblings like nbp_exchange_rate or nbp_convert, but the operational context is clear.

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