exchangerate_convert
Convert an amount from one currency to another using exchange rates; provide source and target currency codes, with optional amount and API key.
Instructions
Convert an amount from one currency to another.
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": "exchangerate_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency code (e.g. EUR) | |
| from | Yes | Source currency code (e.g. USD) | |
| amount | No | Amount to convert (default 1) | |
| api_key | No | Optional for conversion (uses latest rates if omitted) |