fx_ecb_convert
Convert an amount between two currencies at the European Central Bank daily reference rate, latest or for a past date, returning the rate used, the result, and the rate date. Costs $0.005 USDC on Base via x402.
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_ecb_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ISO 4217 target currency | |
| date | No | Past date YYYY-MM-DD; latest if omitted | |
| from | Yes | ISO 4217 source currency | |
| amount | Yes | Amount in the source currency |