fx_convert
[PAID $0.002 USDC/call, x402, eip155:8453] Convert an amount between two currencies at the official ECB reference rate, today or any date since 1999, incl. CFA franc and Gulf pegs. Returns rate, amount, rate 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": "fx_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO 4217 target currency, e.g. EUR, XOF, AED | |
| date | No | YYYY-MM-DD (default: latest ECB fixing) | |
| from | Yes | ISO 4217 source currency, e.g. USD | |
| amount | No | Amount to convert (default 1) |