FXRate: Convert an amount between currencies (ECB rates)
convert_currencyConvert an amount between two currencies at the official ECB reference rate (latest or a past date). Inputs: from, to (ISO codes like USD, EUR, JPY), amount (default 1), date (optional YYYY-MM-DD). Returns rate, result, inverse_rate and the rate date. Free: 30 calls/day per IP, then $0.001 per call via x402 or credits.
[FXRate via YourAITools MCP Hub] Free tier: same as FXRate's own MCP server (call without payment and without tier). Paid: convert $0.001 per call, with a credits key (Authorization: Bearer yatc_...) or x402 (USDC; the hub returns the payment terms). Failed tool calls aren't charged: credits are refunded automatically and x402 payments only settle on success.
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": "convert_currency"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | To currency: ISO 4217 code, e.g. USD, EUR, GBP, JPY (31 supported) | |
| date | No | Optional YYYY-MM-DD (default: latest). Weekends/holidays use the previous ECB rate. | |
| from | Yes | From currency: ISO 4217 code, e.g. USD, EUR, GBP, JPY (31 supported) | |
| tier | No | Paid tier: convert $0.001. Omit tier (with no credits key or x402 payment) to use the free tier. | |
| amount | No | Amount to convert (default 1), up to 1e15 |