get_currency_rate
Retrieve current or historical exchange rates for any currency code, with optional date and table selection, to convert values or check the Polish National Bank rate on a specific day.
Instructions
Get exchange rate for a currency, either current or for a specific date.
Args: code: Three-letter currency code (e.g., USD, EUR, GBP) following ISO 4217 date: Specific date in YYYY-MM-DD format (ISO 8601). If empty, gets current rate. 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>"
},
"name": "get_currency_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| date | No | ||
| table | No | a |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |