Convert between forex and crypto at live rates
convert_amountConvert an amount between forex or crypto currencies at the live mid-market rate, e.g. 100 USD to EUR, EUR to JPY or GBP to USD. Costs $0.002 USDC per call, paid with x402 on Base; failed calls are not charged.
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_amount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target currency or token (e.g. `GBP`, `ETH`). Case-insensitive. | |
| from | Yes | Source currency or token (e.g. `USD`, `BTC`). Case-insensitive. | |
| amount | No | Amount to convert. Defaults to 1 (returns just the rate). |