Currency conversion at official ECB reference rates (dated, never guessed)
fx_rate[FREE: 25 calls/day, then $0.002 USDC per call via x402] Converts between about 30 currencies (USD, EUR, GBP, JPY, CAD, AUD, CHF, CNY, INR, MXN, BRL, ...) at the European Central Bank's euro reference rates, published once per business day around 16:00 CET. Cross rates go through the euro exactly as the ECB publishes them. Give a date (last 90 days) or get the latest; a weekend or holiday uses the last published rates and says which. Returns each rate, its inverse, the converted amount (rounded to the currency scale you choose) and the rate date. Reference rates are for information: banks and card networks add their own margins.
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": "fx_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | one or more target codes, e.g. ["EUR", "GBP"] | |
| date | No | rates for this date (within the last 90 days); default the latest | |
| from | Yes | ISO 4217 code, e.g. USD | |
| scale | No | decimal places of converted amounts, default 2 | |
| amount | No | amount to convert as a decimal string, default "1" | |
| rounding | No | default half_up |