Skip to main content
Glama
NBP MCP Server

NBP MCP Server

by mpryc

get_exchange_table

Fetches current or date-specific Polish National Bank exchange rate tables, including average, other currency, and bid/ask rate options.

Instructions

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

Args: date: Specific date in YYYY-MM-DD format (ISO 8601). If empty, gets current table. table: Table type - 'a' for average rates, 'b' for other currencies, 'c' for bid/ask rates (default: 'a')

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_exchange_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNo
tableNoa

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 usefully explains what each table type means and gives the default, but it says nothing about authentication, error behavior for unavailable dates, or rate limits; return values are covered by the output schema, so that omission is acceptable.

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 core function is front-loaded in the first sentence, followed by a compact Args block. Minor redundancy comes from restating defaults that also appear in the schema, but nothing is bloated.

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 read tool with an output schema, this is nearly complete: both parameters are documented with formats and defaults. The remaining gap is operational context, such as what happens when a requested date has no published table.

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?

With 0% schema description coverage, the description does the work: it specifies the ISO 8601 YYYY-MM-DD format, the empty-string default returning the current table, and the meaning of each table value plus its default. The only soft spot is that 'b' for 'other currencies' is not explained in much detail.

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 ("Get exchange rate table") and adds the scope of what can be requested: the current table or one for a specific date. It does not differentiate itself from siblings such as get_currency_rate or get_gold_price, so it is clear but not sibling-distinguishing.

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 implied rather than stated: omitting the date gets the current table, providing a date gets a historical one. There is no explicit statement of when to choose this whole-table tool over the single-currency sibling, and no note about availability on non-business days.

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