Skip to main content
Glama

Convert a bank statement

convert_bank_statement

Converts a bank statement file (CAMT.053, MT940, CODA, Norma 43, CFONB 120, BAI2, OFX, QIF and more) to another format such as CAMT.053, MT940, CSV or Excel, and checks that the balances reconcile. When the file leaves something open, such as the date order or the opening balance, the answer is a need: call again with the same file, the answer and the resume token. Costs 1 call per started 500 transactions from the account's API balance, or credits once the API balance is empty, charged only on success. A PDF statement or scan read automatically (a draft to check) costs 5 calls per started 10 pages from the API balance, or 1 credit per started 10 pages once it cannot cover that. Needs an API key.

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": {
      "target": "<target>"
    },
    "name": "convert_bank_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
resumeNoThe resume token from the last need answer.
targetYesA bank format id, such as camt-053, mt940, bank-csv or xlsx.
accountNoThe answer to an account need, for a file with several accounts: the chosen account's position in the need's accounts list.
centuryNoThe answer to a century need: the century of the file's two-digit years.
currencyNoThe answer to a currency need: an ISO 4217 code, for a file that states no currency.
file_urlNoA public https address of the file. Private and local addresses are refused.
filenameNoThe file's name, which helps recognise its format.
date_orderNoThe answer to a dateOrder need: how the file writes its dates.
file_base64NoThe file's bytes as base64. Give this or file_url.
idempotency_keyNoAny unique string. Calling again with the same key and arguments within 24 hours never charges again.
opening_balanceNoThe answer to an openingBalance need: the opening balance the file does not print, as a decimal string.
statement_numberNoThe statement number MT940 and CODA carry.
decimal_separatorNoThe answer to a decimalSeparator need: the decimal separator of the file's amounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / account / description
      Added value: +"The answer to an account need, for a file with several accounts: the chosen account's position in the need's accounts list."
    • addedInput schema / properties / century / description
      Added value: +"The answer to a century need: the century of the file's two-digit years."
    • addedInput schema / properties / currency / description
      Added value: +"The answer to a currency need: an ISO 4217 code, for a file that states no currency."
    • addedInput schema / properties / date_order / description
      Added value: +"The answer to a dateOrder need: how the file writes its dates."
    • addedInput schema / properties / decimal_separator / description
      Added value: +"The answer to a decimalSeparator need: the decimal separator of the file's amounts."
    • addedInput schema / properties / opening_balance / description
      Added value: +"The answer to an openingBalance need: the opening balance the file does not print, as a decimal string."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the credit/call cost model per 500 transactions, the 5-calls-per-10-pages pricing for auto-read PDFs and scans, that charges occur only on success, and that an API key is required. The idempotency_key behavior (same key and arguments within 24h never recharges) adds a billing guarantee the annotations do not express.

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

Conciseness4/5

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

Purpose and formats are front-loaded, and every sentence carries non-obvious information. The pricing sentences are long, nested run-ons ('Costs 1 call per started 500 transactions from the account's API balance, or credits once the API balance is empty, charged only on success') that take effort 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?

For a 13-parameter tool with no output schema, the description covers the need/resume protocol, auth, cost, and supported formats well. The notable gap is the return shape: it never says whether the converted file comes back as bytes, base64, or a URL, which an agent must know to handle the result.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description earns a bump by framing account, century, currency, date_order, opening_balance and decimal_separator as answers to 'need' prompts in the resume loop, which explains why they exist and when they are supplied. It does not add format or syntax detail beyond the schema's own patterns.

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?

States a specific verb and resource ('Converts a bank statement file') and immediately scopes it with the concrete input formats (CAMT.053, MT940, CODA, Norma 43, CFONB 120, BAI2, OFX, QIF) and outputs (CAMT.053, MT940, CSV, Excel). The resource noun distinguishes it from convert_invoice without needing to name it.

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

Usage Guidelines4/5

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

Explicitly describes the interactive flow: when the file 'leaves something open' about date order or opening balance, the answer is a 'need' and the agent must call again with the same file plus the answer and resume token. That is real when-to-use guidance for the multi-turn case, but there is no guidance on when to prefer this over convert_invoice or list_formats.

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