Skip to main content
Glama
NBP MCP Server

NBP MCP Server

by mpryc

get_currency_rate_last_n

Retrieves the last N exchange rates for a specified currency from Poland's NBP tables A, B, or C, helping you analyze recent historical currency trends.

Instructions

Get last N exchange rates for a currency.

Args: code: Three-letter currency code (e.g., USD, EUR, GBP) following ISO 4217 count: Number of last rates to retrieve (max 255) 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>",
      "count": "<count>"
    },
    "name": "get_currency_rate_last_n"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
countYes
tableNoa

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the meaningful constraint (count max 255) and the table-type taxonomy with a default, which is real behavioral context. It says nothing about error handling, missing/zero rates on non-trading days, or pagination/ordering of the returned series.

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 purpose sentence is front-loaded and the Args block is tight, one line per parameter with no filler. The docstring-style formatting is acceptable but slightly less scannable than prose for a three-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 values need not be explained, and the parameter semantics are well covered. The remaining hole is behavioral: no annotations plus no mention of failure modes, rate limiting, or data availability makes the definition adequate but not fully self-sufficient for a financial data call.

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 description coverage is 0%, so the description must compensate, and it largely does: ISO 4217 three-letter format for code, an explicit max of 255 for count, and the a/b/c enum meanings for table that the schema lacks entirely. Minor gap: 'last N rates' is not pinned to a unit (days? business days?) and there is no note on what happens when count exceeds 255.

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 gives a specific verb and resource plus a scope qualifier ('last N exchange rates for a currency'), which separates it from the unbounded get_currency_rate sibling. It stops short of naming or contrasting the other rate/history siblings, so an agent must infer the distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to use this over get_currency_rate, get_currency_rate_history, or get_exchange_table. The only contextual hint is the default table='a', which implies this is the common path but never says so.

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