Get Rate
get_rateGet the current exchange rate between two currencies (e.g., USD, EUR). Returns the rate value and timestamp.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "EUR",
"from": "USD"
},
"name": "get_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (e.g., EUR, JPY, CHF) | |
| from | Yes | Source currency code (e.g., USD, EUR, GBP) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (uppercase) | |
| date | Yes | Date of the rate (ISO format) | |
| from | Yes | Source currency code (uppercase) | |
| rate | Yes | Current exchange rate |