Convert
convertConvert an amount from one currency to another at current rates. Returns the converted amount and the exchange rate applied.
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",
"amount": 100
},
"name": "convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (e.g., JPY) | |
| from | Yes | Source currency code (e.g., USD) | |
| amount | Yes | Amount to convert |
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 | Exchange rate applied | |
| amount | Yes | Original amount in source currency | |
| converted | Yes | Converted amount in target currency |