NBP exchange rates and gold
get_currency_ratesUse for exchange rates and the gold price. NBP mid, bid and ask rates of currencies against PLN (table), the history of one currency, or the NBP gold price (code "XAU").
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_currency_rates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ISO code, e.g. EUR, USD, CHF; "XAU" for gold. Omit for the main currencies. | |
| days | No | History window in days for one currency, default 90. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| asOf | No | ||
| data | No | ||
| title | Yes | ||
| source | Yes | ||
| docsUrl | Yes | ||
| license | Yes | ||
| summary | Yes | ||
| citation | Yes | ||
| datasetId | Yes | ||
| sourceUrl | No | ||
| truncated | No | ||
| serverDate | Yes |