convert_currency
Convert any amount between 30+ fiat currencies with real-time ECB rates. Returns converted amount, rate, and inverse rate. [PAID: $0.002 USDC per call via x402 on Base. First call without payment_signature returns the payment requirements.]
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 | Target currency ISO code (e.g. JPY, EUR) | |
| from | Yes | Source currency ISO code (e.g. GBP, USD) | |
| amount | No | Amount to convert | 1 |
| payment_signature | No | Optional x402 payment token. Call the tool WITHOUT this first to receive payment requirements (price, payTo, asset, nonce rules), sign the exact-scheme EIP-712 USDC authorization with your wallet, then retry with this field set to the base64 token. |