Skip to main content
Glama

MT940 to CAMT.053 Converter API - ISO 20022

mt940_camt053_converter
Read-onlyIdempotent

Convert SWIFT MT940 bank statements to ISO 20022 CAMT.053 XML (camt.053.001.08 or camt.053.001.02), CSV, OFX or structured JSON, and convert CAMT.053/052 XML back to MT940, CSV, OFX or JSON. Reconciles opening plus entries against closing balance, validates account and counterparty IBAN (ISO 13616 mod-97) and BIC (ISO 9362), flags ISO 20022 CBPR+ readiness, and returns parsed transactions with running balances. Deterministic, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/mt940-camt053-converter.

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": {
      "content": "{1:F01DEUTDEFFAXXX0000000000}{2:I940DEUTDEFFXXXXN}{4:\n:20:STARTUMS\n:25:DE89370400440532013000\n:28C:00001/001\n:60F:C261110EUR1000,00\n:61:2611111111D120,50NTRFNONREF//BANK123456\n:86:/EREF/INV-2026-0042/NAME/Muster GmbH/IBAN/DE02120300000000202051/BIC/BYLADEM1001/REMI/Invoice 2026-0042 office supplies\n:61:2611121112C2500,00NTRFINV-77//BANK9\n:86:Salary November\n:61:261113D12,30NCHGNONREF\n:62F:C261113EUR3367,20\n:64:C261113EUR3367,20\n-}",
      "version": "001.08",
      "direction": "camt"
    },
    "name": "mt940_camt053_converter"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNoRaw SWIFT MT940 (.sta/.mt940) or ISO 20022 CAMT.053/052 XML statement text. Provide content or fileBase64.
versionNoISO 20022 CAMT.053 schema version when converting to CAMT.001.08
directionNoTarget output format: auto (MT940->CAMT or CAMT->MT940), camt, mt940, ofx, csv or json.auto
fileBase64NoBase64-encoded MT940, CAMT.053/052 XML, or bank statement ZIP file (alternative to content, max 15 MB).
maxTransactionsNoMaximum number of structured transaction objects to return in JSON (1-2000).
includeTransactionsNoWhen true, include structured parsed transactions with running balance and IBAN/BIC validation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / content / description
      Previous value: -"Raw SWIFT MT940 (.sta/.mt940) or ISO 20022 CAMT.053 XML statement text. Provide content or fileBase64."New value: +"Raw SWIFT MT940 (.sta/.mt940) or ISO 20022 CAMT.053/052 XML statement text. Provide content or fileBase64."
    • changedInput schema / properties / direction / description
      Previous value: -"Target format: auto (MT940->CAMT or CAMT->MT940), camt, mt940 or ofx."New value: +"Target output format: auto (MT940->CAMT or CAMT->MT940), camt, mt940, ofx, csv or json."
    • changedInput schema / properties / direction / enum
      Previous value: -[
      -  "auto",
      -  "camt",
      -  "mt940",
      -  "ofx"
      -]New value: +[
      +  "auto",
      +  "camt",
      +  "mt940",
      +  "ofx",
      +  "csv",
      +  "json"
      +]
    • changedInput schema / properties / fileBase64 / description
      Previous value: -"Base64-encoded MT940 or CAMT.053 file (alternative to content, max 15 MB)."New value: +"Base64-encoded MT940, CAMT.053/052 XML, or bank statement ZIP file (alternative to content, max 15 MB)."
    • addedInput schema / properties / includeTransactions
      Added value: +{
      +  "default": true,
      +  "description": "When true, include structured parsed transactions with running balance and IBAN/BIC validation.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / maxTransactions
      Added value: +{
      +  "default": 200,
      +  "description": "Maximum number of structured transaction objects to return in JSON (1-2000).",
      +  "maximum": 2000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses that the conversion is deterministic with zero AI, that nothing is stored, that opening plus entries are reconciled against the closing balance, that IBAN (ISO 13616 mod-97) and BIC (ISO 9362) are validated, and that CBPR+ readiness is flagged. It also states concrete rate limits and the two paid access mechanisms, which are exactly the operational facts an agent needs.

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?

The core conversion capability is front-loaded in the first sentence, with behavioral guarantees second and commercial terms last. The pricing sentence is dense with URLs and x402 details but still relevant to invocation decisions; a small amount could be trimmed without loss.

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 well to state that parsed transactions with running balances are returned and that validation results and CBPR+ flags are produced. It does not describe the response shape for non-JSON outputs (e.g., whether CAMT XML is returned inline) or error behavior, which leaves a modest gap for a converter with six optional parameters.

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 description coverage is 100%, so the input schema already documents content, version, direction, fileBase64, maxTransactions, and includeTransactions. The description's mention of formats and schema versions mirrors the enums rather than adding new semantics, so the baseline of 3 applies.

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

Purpose4/5

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

The description uses specific verbs and resources: converting SWIFT MT940 statements to CAMT.053 XML/CSV/OFX/JSON and converting CAMT.053/052 XML back to MT940 and other formats, including the exact schema versions supported. An agent can immediately tell what the tool transforms. It stops short of distinguishing itself from the sibling bank_statement_converter or camt054_to_excel, so it does not earn a 5.

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?

Usage context is clear from the stated input and output formats, and the free/paid access paths (5 calls/day per IP, API key, or x402 per-call) tell the agent what to expect operationally. It does not explicitly say when to prefer this tool over the sibling statement converter or when conversion is inappropriate, so exclusions are absent.

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