get_pair_rate
Get the exchange rate for a currency pair and convert an amount with adjustable decimal precision.
Instructions
Get the exchange rate for a single currency pair, with optional precision. Available on all plans; the converted amount (amount/result) is included on Pro plan or higher.
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": "get_pair_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency ISO code. | |
| from | Yes | Source currency ISO code. | |
| amount | No | Amount to convert (default 1). | |
| precision | No | Decimal places (2–6, default 4). |