fx_convert
$0.002 via x402: Convert an amount between two currencies at the latest ECB reference rate: {from, to, amount, rate, result, date}. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/convert?from=USD&to=CNY&amount=100. Via the Agent Exchange store gateway; settled by Coinbase.
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": "fx_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | to | |
| from | Yes | from | |
| amount | No | default 1 | |
| x_payment | No | Signed x402 payment payload (optional; without it the answer is the price) |