Convert an amount across LATAM currencies at live rates
latam_convert_fxConverts an amount between LATAM and reference currencies at live edge-cached rates: MXN, ARS, CLP, COP, PEN, UYU, BRL, USD and EUR. One call can fan out to several targets at once, or to every supported currency when you omit the target list, and each conversion returns the converted amount with the rate and its inverse. Use it to price a cross-border invoice, normalise a multi-country report to one currency, or estimate a payout. Do not use it to settle a payment or to book an FX trade: the rates are indicative and come from public sources, so always check the source field, which reports 'fallback-reference' when every live upstream timed out and static reference rates were used. Do not use it for validation either, which the three sibling tools handle, although latam_validate_batch can bundle an FX conversion into the same charge. Read-only and non-destructive, but NOT deterministic: it reads live market data, so two identical calls minutes apart can legitimately return different figures, and a retry is safe but will not necessarily reproduce the earlier numbers. Costs 0.008 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping. It never throws on bad input: an unsupported currency code is replaced by the default and noted in fx.warnings rather than rejected, so read fx.base and fx.warnings to confirm the pair you actually got.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "latam_convert_fx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target currency or array of target currencies, ISO 4217. Omit it to receive every supported currency except the source in a single call, which costs the same as one target. | |
| from | No | Source currency, ISO 4217. Defaults to USD. An unsupported code falls back to USD and adds a warning instead of failing. | USD |
| amount | No | Amount to convert, in the source currency, as a plain number. Defaults to 1, which gives you the raw rates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx | No | Live FX conversion result. | |
| ok | Yes | true when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that. | |
| meta | Yes | Provenance of the call, worth logging. | |
| error | No | Stable machine-readable failure code, present only on a rejected call. Common values: 'invalid_payment' and 'settlement_failed' (x402 verification or settlement refused, returned with HTTP 402), 'B2B_KEY_INVALID' and 'B2B_QUOTA_EXCEEDED' (B2B X-API-Key path). An invalid document is NOT an error: the call succeeds with valid false and a populated errors array. | |
| message | No | Human-readable explanation of the failure. Safe to log or surface to a human operator. | |
| results | No | Always empty for this tool, since no identifier was submitted. | |
| summary | Yes | Aggregate counters, so a batch can be triaged without walking the results array. | |
| warnings | No | Non-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check. | |
| suggestedNextSteps | No | Chaining hints for autonomous agents: sibling paid APIs commonly called right after this one, selected from what was actually found in the results. Purely advisory, never required. |