Convert metals, currencies and units
convertConvert an amount between a metal, a currency and a mass unit: 10 g of gold in euros (from XAU to EUR, unit g, amount 10), how much silver 1000 INR buys (from INR to XAG, unit g), EUR to JPY, or grams to troy ounces. Live, or as of a past date.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Metal code, currency code or unit. | |
| date | No | YYYY-MM-DD to convert at that day's close and ECB rate. | |
| from | Yes | Metal code, currency code or unit. | |
| unit | No | For a metal: the unit its quantity is in. Default: the metal's own unit. | |
| karat | No | Gold only: price this karat at purity karat/24 (24 is pure gold). | |
| amount | No | Quantity of `from`, default 1. |