Convert currency
convertRead-only
Convert money using a reference rate. Returns {amount,currency}, rounded to the target's minor units (8 significant figures for metals/crypto). Set details for the rate and effective date too; identity conversions have rate 1 and date null.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency or asset code. | |
| date | No | Date YYYY-MM-DD for a past rate; omit for latest. | |
| from | Yes | Source currency or asset code, e.g. USD, XAU or BTC. | |
| amount | Yes | Numeric amount in the source currency; normalize localized input first. | |
| details | No | Include rate, effective date and provider if selected. Default false. | |
| provider | No | Provider or dataset key, e.g. ECB or NBP.B; omit for blended rates. |