Skip to main content
Glama

FX Agent: check a statement's FX charges

check_fx_charges
Read-only

Every 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

NameRequiredDescriptionDefault
filesNo[{ name, data (CSV text or base64 PDF/image), kind?: statement|invoice, currency? (account currency when the CSV has none), account? }]
consentNoAdd the result anonymously to the public markup index
invoicesNo[{ vendor, number?, date, amount, currency, vat?, reference_currency?, reference_amount?, reference_rate? }]
providerNoYour bank or card, from the public index list (fnb, absa, ing, revolut, ...); anything else is stored as other. Used only with consent.
settingsNo{ functional_currency?, chart_of_accounts?, accounting_policy?: { fx_cost: separate_account|in_expense, expense_rate_date: invoice|charge }, period_end?, match_window_days? }
card_typeNoCard type, for the anonymous index. Used only with consent.
transactionsNo[{ date, description, amount (negative = money out), currency, foreign_amount?, foreign_currency?, bank_rate?, fee?, vat?, cashback?, processing_date?, status?, chain?, tx_hash? }]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnlyHint it discloses the rate source and weekend/holiday fallback, deterministic re-runnable output (same input, same pack_id, hashes and signature), an enumerated exception list, and a rate limit. That is substantial behavioral context. The only loose end is the tension between openWorldHint=false and the external ECB rate and public markup index lookups, which is not reconciled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a dense run-on with a long parenthetical exception list and marketing framing ('found, proven and booked', 'SwapEazi never touches the money', 'Free up to 20 transactions a month'). The substantive facts are buried in phrasing that makes the definition slow to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does the necessary work of explaining the return value: a signed, re-runnable pack with pack_id, hashes and signature plus flagged exceptions. All seven optional parameters are accounted for, so an agent has enough to call it correctly, though the exact exception taxonomy stays vague.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description reinforces the two input modes (files vs. transactions[]/invoices[]) and names the settings keys (functional_currency, chart_of_accounts, accounting_policy), but adds no semantics beyond what the schema properties already document.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (foreign-currency charges on bank/card statements) and a concrete pipeline: match to invoice, rate at ECB mid, split markup/fee/VAT, book balanced journals. This is unmistakably different from the sibling tools, which deal with payments, corridors, mandates and liquidity, so an agent can select it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent how to supply input ('Give files ... or transactions[] and invoices[]') and mentions the free-tier ceiling, which implies the usage context. It never states when to prefer this over another tool or any explicit exclusion, so the when-to-use guidance remains implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources