Currency Converter (ECB)
fx_convertCurrency converter (ECB reference rates): convert an amount from one currency to one or more others, e.g. 250 USD to EUR, GBP and JPY, at the latest European Central Bank rate or any day in the last 90 days. Returns the rate, converted amount and rate date for each target. 30 currencies. Reference rates, not transaction rates. Source: ECB. Signed receipt. Price: $0.001 per call via x402 (USDC on Base or XRP on XRPL). The response includes a provenance block (sg-provenance/1): each fact carries its source, source URL, retrieval time and limits; evidence only, no score, rating or verdict. Example arguments: {"from":"USD","to":"EUR,GBP,JPY","amount":"250"}.
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>",
"amount": "<amount>"
},
"name": "fx_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Comma-separated target currencies (ISO 4217), 1-10 | |
| date | No | Rate date YYYY-MM-DD within the last 90 days; default latest | |
| from | Yes | Source currency (ISO 4217) | |
| amount | Yes | Amount to convert |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Converted amounts and rates per target currency at the ECB rate date | |
| receipt | No | Ed25519-signed, hash-chained receipt; verify free with the verify_receipt tool or POST /v1/verify-receipt. New receipts carry a signed `evidence` object: service_version, data_timestamp, validation, terms_version, terms_hash, provenance_hash. |