Calculate cross-border FX savings
calculate_fx_savingsArithmetic comparison of a USDC settlement against comparator percentages YOU supply (bank_fee_pct, custodial_fee_pct) across 14 global fiat currencies. The comparators are assumptions, not measurements of any bank or provider; no protocol fee is deducted on this rail.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "BRL",
"amount_usdc": 50000
},
"name": "calculate_fx_savings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Gross invoice settlement volume in USD/USDC (alias). | |
| currency | No | Target currency for local comparison (e.g. EUR, GBP, BRL, INR, ARS, PHP, NGN, SGD). | |
| amount_usd | No | Gross invoice settlement volume in USD/USDC (alias). | |
| amount_usdc | No | Gross invoice settlement volume in USD/USDC. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | ||
| scope | No | ||
| currency | No | ||
| amount_usdc | Yes | ||
| deel_fee_usd | No | ||
| pct_retained | Yes | ||
| local_currency | No | ||
| legacy_swift_fee_usd | No | ||
| retained_savings_usd | Yes | ||
| code402_protocol_fee_usd | No |