FX Agent: check a statement's FX charges
check_fx_chargesEvery foreign-currency cost on a bank or card statement found, proven and booked. Give files (statement CSV, or PDF/screenshot; supplier invoices) or transactions[] and invoices[]. Each charge is matched to its invoice, rated at the ECB mid of the transaction date (last business day on weekends and holidays, date and source named), split into hidden markup in the rate, disclosed fee and VAT, booked as balanced journals in the functional currency (settings: functional_currency, chart_of_accounts, accounting_policy), with exceptions flagged (verification charges, failed attempts, refunds netted, no conversion, vendor reference rates never trusted, cashback, duplicates blocked). Returns a signed, re-runnable pack: same input, same pack_id, hashes and signature. Read-only: SwapEazi never touches the money. Free up to 20 transactions a month; unlimited with a key.
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": "check_fx_charges"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | [{ name, data (CSV text or base64 PDF/image), kind?: statement|invoice, currency? (account currency when the CSV has none), account? }] | |
| consent | No | Add the result anonymously to the public markup index | |
| invoices | No | [{ vendor, number?, date, amount, currency, vat?, reference_currency?, reference_amount?, reference_rate? }] | |
| provider | No | Your bank or card, from the public index list (fnb, absa, ing, revolut, ...); anything else is stored as other. Used only with consent. | |
| settings | No | { functional_currency?, chart_of_accounts?, accounting_policy?: { fx_cost: separate_account|in_expense, expense_rate_date: invoice|charge }, period_end?, match_window_days? } | |
| card_type | No | Card type, for the anonymous index. Used only with consent. | |
| transactions | No | [{ date, description, amount (negative = money out), currency, foreign_amount?, foreign_currency?, bank_rate?, fee?, vat?, cashback?, processing_date?, status?, chain?, tx_hash? }] |