convert_currency
Convert a specified amount using ECB reference rates via Frankfurter. Requires finite amount > 0 and <= 1000000000, from_currency and to_currency (supported three-letter ISO codes). Returns amount, converted_amount, rate and published rate date. One CelerAPI call; get_fx_rate is not a prerequisite. Informational estimate, not trade execution or a real-time quote. Price: $0.0011 production USDC via x402 on Base mainnet. Example arguments: {"amount":500,"from_currency":"GBP","to_currency":"USD"}.
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": {
"amount": "<amount>",
"from_currency": "<from_currency>",
"to_currency": "<to_currency>"
},
"name": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| to_currency | Yes | ||
| from_currency | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| complete | Yes |