convert_currency
Convert an amount between currencies. Live FX from exchangerate.host (free, no key). Pass an optional ISO date for historical rates. Returns {amount, from, to, rate, date, source}.
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": {
"amount": "<amount>",
"from": "<from>",
"to": "<to>"
},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO 4217 code, e.g. 'INR'. | |
| date | No | Optional ISO date YYYY-MM-DD for historical rate. | |
| from | Yes | ISO 4217 code, e.g. 'USD'. | |
| amount | Yes |