Skip to main content
Glama

CAMT.054 to JSON, CSV & DATEV API - unpack collective bookings, check QR and RF references

camt054_to_excel
Read-onlyIdempotent

Parse an ISO 20022 camt.054 debit / credit notification (versions .001.02 to .001.08, one XML or a ZIP of up to 20) into one record per payment: every collective entry (Swiss QR-bill credits, SEPA batch credits, direct debit collections) is unpacked into its transactions and checked (sum of the transactions = booked amount). Each transaction has dates, signed amount, counterparty name / IBAN / BIC, structured reference with its check (QR reference mod 10, RF creditor reference ISO 11649), remittance text, EndToEndId, mandate, bank codes and charges. Optional output as CSV or as a DATEV EXTF v700 Buchungsstapel (base64). Up to 1,000 transactions per call. Deterministic, 0 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/camt054-to-excel.

Input Schema

NameRequiredDescriptionDefault
xmlNoThe camt.054 file as XML text (provide xml or fileContent)
chartNoDATEV chart of accounts (output=datev)SKR03
outputNojson = records only; csv / datev also return the file as base64 in outputFilesjson
clientNoNoDATEV Mandantennummer for the file header (optional)
fileNameNoOptional file name, e.g. camt054-2026-10-05.xml
bankAccountNoDATEV bank account (default 1200 SKR03 / 1800 SKR04)
fileContentNoOr the .xml / the bank's .zip base64-encoded (max 12 MB per XML)
consultantNoNoDATEV Beraternummer for the file header (optional)
csvSeparatorNoCSV separator; ';' writes a decimal comma,
counterAccountNoDATEV clearing account (default Geldtransit 1360 / 1460)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "output": "json"
      -  }
      -]New value: +[
      +  {
      +    "output": "json",
      +    "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:camt.054.001.08\">\n<BkToCstmrDbtCdtNtfctn>\n<GrpHdr><MsgId>C054-20261005-0001</MsgId><CreDtTm>2026-10-05T18:02:11</CreDtTm></GrpHdr>\n<Ntfctn><Id>NTF-20261005-01</Id><CreDtTm>2026-10-05T18:02:11</CreDtTm>\n<Acct><Id><IBAN>CH5800791123000889012</IBAN></Id><Ccy>CHF</Ccy><Ownr><Nm>Muster Treuhand AG</Nm></Ownr></Acct>\n<Ntry><NtryRef>CH4431999123000889012</NtryRef><Amt Ccy=\"CHF\">3949.75</Amt><CdtDbtInd>CRDT</CdtDbtInd><RvslInd>false</RvslInd><Sts><Cd>BOOK</Cd></Sts><BookgDt><Dt>2026-10-05</Dt></BookgDt><ValDt><Dt>2026-10-05</Dt></ValDt><AcctSvcrRef>BR202610050001</AcctSvcrRef><BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RCDT</Cd><SubFmlyCd>VCOM</SubFmlyCd></Fmly></Domn></BkTxCd><NtryDtls><Btch><NbOfTxs>4</NbOfTxs></Btch><TxDtls><Refs><AcctSvcrRef>TX00100001</AcctSvcrRef><EndToEndId>E2E-0931</EndToEndId></Refs><Amt Ccy=\"CHF\">1250.00</Amt><CdtDbtInd>CRDT</CdtDbtInd><RltdPties><Dbtr><Pty><Nm>Velo Werkstatt Limmat AG</Nm></Pty></Dbtr><DbtrAcct><Id><IBAN>CH9300762011623852957</IBAN></Id></DbtrAcct></RltdPties><RltdAgts><DbtrAgt><FinInstnId><BICFI>KBAGCH22XXX</BICFI></FinInstnId></DbtrAgt></RltdAgts><RmtInf><Strd><CdtrRefInf><Tp><CdOrPrtry><Prtry>QRR</Prtry></CdOrPrtry></Tp><Ref>210000000003139471430009017</Ref></CdtrRefInf><AddtlRmtInf>Rechnung 2026-0931</AddtlRmtInf></Strd></RmtInf></TxDtls><TxDtls><Refs><AcctSvcrRef>TX00100002</AcctSvcrRef><EndToEndId>NOTPROVIDED</EndToEndId></Refs><Amt Ccy=\"CHF\">489.50</Amt><CdtDbtInd>CRDT</CdtDbtInd><RltdPties><Dbtr><Pty><Nm>Praxis am See GmbH</Nm></Pty></Dbtr><DbtrAcct><Id><IBAN>CH5604835012345678009</IBAN></Id></DbtrAcct></RltdPties><RltdAgts><DbtrAgt><FinInstnId><BICFI>CRESCHZZ80A</BICFI></FinInstnId></DbtrAgt></RltdAgts><RmtInf><Strd><CdtrRefInf><Tp><CdOrPrtry><Prtry>QRR</Prtry></CdOrPrtry></Tp><Ref>210000000003139471430009025</Ref></CdtrRefInf><AddtlRmtInf>Rechnung 2026-0932</AddtlRmtInf></Strd></RmtInf></TxDtls><TxDtls><Refs><AcctSvcrRef>TX00100003</AcctSvcrRef><EndToEndId>NOTPROVIDED</EndToEndId></Refs><Amt Ccy=\"CHF\">2010.25</Amt><CdtDbtInd>CRDT</CdtDbtInd><RltdPties><Dbtr><Pty><Nm>Gärtnerei Grünblick</Nm></Pty></Dbtr><DbtrAcct><Id><IBAN>CH3608387000001080173</IBAN></Id></DbtrAcct></RltdPties><RltdAgts><DbtrAgt><FinInstnId><BICFI>RAIFCH22XXX</BICFI></FinInstnId></DbtrAgt></RltdAgts><RmtInf><Strd><CdtrRefInf><Tp><CdOrPrtry><Prtry>QRR</Prtry></CdOrPrtry></Tp><Ref>210000000003139471430009030</Ref></CdtrRefInf><AddtlRmtInf>Rechnung 2026-0933</AddtlRmtInf></Strd></RmtInf></TxDtls><TxDtls><Refs><AcctSvcrRef>TX00100004</AcctSvcrRef><EndToEndId>NOTPROVIDED</EndToEndId></Refs><Amt Ccy=\"CHF\">200.00</Amt><CdtDbtInd>CRDT</CdtDbtInd><RltdPties><Dbtr><Pty><Nm>Café Morgenrot</Nm></Pty></Dbtr><DbtrAcct><Id><IBAN>CH9300762011623852957</IBAN></Id></DbtrAcct></RltdPties><RltdAgts><DbtrAgt><FinInstnId><BICFI>KBAGCH22XXX</BICFI></FinInstnId></DbtrAgt></RltdAgts><RmtInf><Strd><CdtrRefInf><Tp><CdOrPrtry><Prtry>QRR</Prtry></CdOrPrtry></Tp><Ref>210000000003139471430009041</Ref></CdtrRefInf><AddtlRmtInf>Rechnung 2026-0934, Teilzahlung</AddtlRmtInf></Strd></RmtInf></TxDtls></NtryDtls></Ntry>\n<Ntry><Amt Ccy=\"CHF\">760.00</Amt><CdtDbtInd>CRDT</CdtDbtInd><RvslInd>false</RvslInd><Sts><Cd>BOOK</Cd></Sts><BookgDt><Dt>2026-10-05</Dt></BookgDt><ValDt><Dt>2026-10-05</Dt></ValDt><AcctSvcrRef>BR202610050002</AcctSvcrRef><BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>RCDT</Cd><SubFmlyCd>AUTT</SubFmlyCd></Fmly></Domn></BkTxCd><NtryDtls><TxDtls><Refs><AcctSvcrRef>TX00200001</AcctSvcrRef><EndToEndId>NORDLICHT-4471</EndToEndId></Refs><Amt Ccy=\"CHF\">760.00</Amt><CdtDbtInd>CRDT</CdtDbtInd><RltdPties><Dbtr><Pty><Nm>Atelier Nordlicht GmbH</Nm></Pty></Dbtr><DbtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></DbtrAcct></RltdPties><RltdAgts><DbtrAgt><FinInstnId><BICFI>COBADEFFXXX</BICFI></FinInstnId></DbtrAgt></RltdAgts><RmtInf><Strd><CdtrRefInf><Tp><CdOrPrtry><Cd>SCOR</Cd></CdOrPrtry></Tp><Ref>RF442026000935</Ref></CdtrRefInf></Strd><Ustrd>Invoice 2026-0935</Ustrd></RmtInf></TxDtls></NtryDtls></Ntry>\n<Ntry><Amt Ccy=\"CHF\">12.50</Amt><CdtDbtInd>DBIT</CdtDbtInd><RvslInd>false</RvslInd><Sts><Cd>BOOK</Cd></Sts><BookgDt><Dt>2026-10-05</Dt></BookgDt><ValDt><Dt>2026-10-05</Dt></ValDt><AcctSvcrRef>BR202610050003</AcctSvcrRef><BkTxCd><Domn><Cd>PMNT</Cd><Fmly><Cd>MCOP</Cd><SubFmlyCd>CHRG</SubFmlyCd></Fmly></Domn></BkTxCd><AddtlNtryInf>Preise QR-Zahlungseingänge September 2026</AddtlNtryInf></Ntry>\n</Ntfctn>\n</BkToCstmrDbtCdtNtfctn>\n</Document>\n"
      +  }
      +]
    • changedInput schema / properties / xml / description
      Previous value: -"The camt.054 file as XML text (empty = built-in sample: 6 payments, 3 entries)"New value: +"The camt.054 file as XML text (provide xml or fileContent)"
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: it discloses validation behavior (sum of transactions must equal booked amount), reference checks (QR mod 10, ISO 11649 RF), hard limits (20 files, 1,000 transactions, 12 MB per XML), statelessness ('nothing stored'), and the exact auth/pricing paths (free 5 calls/day, X-API-Key, x402). Nothing about side effects or cost is left for the agent to guess.

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?

Front-loads the core action and input constraints, then the per-transaction payload, then output/auth details — a logical progression where nearly every clause carries information. It is dense and somewhat long, with pricing URLs that are necessary for invocation but feel promotional.

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

Completeness5/5

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

With 10 optional parameters, no output schema, and a mutation-free read profile, the description covers everything an agent needs: what is returned per record, that CSV/DATEV come back as base64 in outputFiles, size and volume caps, and how to authenticate. No significant gap remains.

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 schema already documents xml/fileContent, output modes, separators, and the DATEV fields; baseline 3 applies. The description adds only the DATEV EXTF v700 framing and the enumeration of transaction fields, which is useful context but not new per-parameter semantics beyond what the schema states.

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: parse an ISO 20022 camt.054 notification into one record per payment, unpacking collective entries. It names supported versions (.001.02–.001.08), accepted inputs (XML or ZIP of up to 20), and the three output shapes, which clearly separates it from generic converters like xml_to_excel or sepa_xml_to_excel.

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?

Gives clear context for when it applies: camt.054 debit/credit notifications with collective bookings that need unpacking and reference validation, plus guidance that output can be JSON, CSV, or DATEV. It does not name exclusions or point to sibling tools for adjacent formats (e.g. SEPA pain files or plain XML), so it stops short of full when/when-not routing.

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