Skip to main content
Glama

SEPA XML to JSON & CSV API - read pain.001, pain.008 and pain.002, check IBANs and control sums

sepa_xml_to_excel
Read-onlyIdempotent

Parse ISO 20022 SEPA files (pain.001 credit transfers .02 / .03 / .09, pain.008 direct debits .01 / .02 / .08, pain.002 payment status reports .03 / .10; one XML or a ZIP of up to 20) into one record per payment: batch, execution / collection date, counterparty name, IBAN with its check (mod 97, length, SEPA country), BIC, address, amount, EndToEndId, remittance text, RF reference check, sequence type, mandate. pain.002: status per payment with the reason code in plain words (AC04, AM04, MD01 ...). Group and batch control sums (NbOfTxs / CtrlSum) are checked and duplicate EndToEndIds flagged. Optional CSV as base64. Up to 1,000 rows 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/sepa-xml-to-excel.

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": {
      "xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\"><CstmrCdtTrfInitn><GrpHdr><MsgId>PAIN001-20261005-01</MsgId><CreDtTm>2026-10-05T09:30:00</CreDtTm><NbOfTxs>5</NbOfTxs><CtrlSum>4954.75</CtrlSum><InitgPty><Nm>Muster Handels GmbH</Nm></InitgPty></GrpHdr><PmtInf><PmtInfId>BATCH-1</PmtInfId><PmtMtd>TRF</PmtMtd><BtchBookg>true</BtchBookg><NbOfTxs>3</NbOfTxs><CtrlSum>3779.50</CtrlSum><PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl></PmtTpInf><ReqdExctnDt><Dt>2026-10-06</Dt></ReqdExctnDt><Dbtr><Nm>Muster Handels GmbH</Nm></Dbtr><DbtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></DbtrAcct><DbtrAgt><FinInstnId><BICFI>COBADEFFXXX</BICFI></FinInstnId></DbtrAgt><ChrgBr>SLEV</ChrgBr><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1041</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">1240.50</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>INGDDEFFXXX</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Bürobedarf Schmidt KG</Nm><PstlAdr><StrtNm>Hauptstr. 5</StrtNm><PstCd>10115</PstCd><TwnNm>Berlin</TwnNm><Ctry>DE</Ctry></PstlAdr></Cdtr><CdtrAcct><Id><IBAN>DE02500105170137075030</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Rechnung 2026-1041</Ustrd></RmtInf></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1042</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">389.00</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>BYLADEM1001</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Druckerei Wagner GmbH</Nm></Cdtr><CdtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></CdtrAcct><RmtInf><Strd><CdtrRefInf><Tp><CdOrPrtry><Cd>SCOR</Cd></CdOrPrtry></Tp><Ref>RF5420261042</Ref></CdtrRefInf></Strd></RmtInf></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1043</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">2150.00</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>BKAUATWWXXX</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Logistik Huber GmbH</Nm><PstlAdr><StrtNm>Ringstr. 1</StrtNm><PstCd>1010</PstCd><TwnNm>Wien</TwnNm><Ctry>AT</Ctry></PstlAdr></Cdtr><CdtrAcct><Id><IBAN>AT611904300234573201</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Fracht Oktober</Ustrd></RmtInf></CdtTrfTxInf></PmtInf><PmtInf><PmtInfId>BATCH-2</PmtInfId><PmtMtd>TRF</PmtMtd><BtchBookg>true</BtchBookg><NbOfTxs>2</NbOfTxs><CtrlSum>1175.25</CtrlSum><PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl></PmtTpInf><ReqdExctnDt><Dt>2026-10-07</Dt></ReqdExctnDt><Dbtr><Nm>Muster Handels GmbH</Nm></Dbtr><DbtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></DbtrAcct><DbtrAgt><FinInstnId><BICFI>COBADEFFXXX</BICFI></FinInstnId></DbtrAgt><ChrgBr>SLEV</ChrgBr><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1044</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">720.00</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>ABNANL2AXXX</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Studio Janssens BV</Nm></Cdtr><CdtrAcct><Id><IBAN>NL91ABNA0417164300</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Design Q3</Ustrd></RmtInf></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1045</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">455.25</InstdAmt></Amt><Cdtr><Nm>Hotel Alpenblick</Nm></Cdtr><CdtrAcct><Id><IBAN>DE00370400440532013001</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Seminar 14.10.</Ustrd></RmtInf></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>",
      "output": "json"
    },
    "name": "sepa_xml_to_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlNoThe SEPA file as XML text (provide xml or fileContent)
outputNojson = records only; csv also returns the table as base64 in outputFilesjson
fileNameNoOptional file name, e.g. pain001-2026-10.xml
languageNoLanguage of status and reason textsen
fileContentNoOr the .xml / a .zip base64-encoded (max 12 MB per XML)
csvSeparatorNoCSV separator; ';' writes a decimal comma,

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\"?><Document xmlns=\"urn:iso:std:iso:20022:tech:xsd:pain.001.001.09\"><CstmrCdtTrfInitn><GrpHdr><MsgId>PAIN001-20261005-01</MsgId><CreDtTm>2026-10-05T09:30:00</CreDtTm><NbOfTxs>5</NbOfTxs><CtrlSum>4954.75</CtrlSum><InitgPty><Nm>Muster Handels GmbH</Nm></InitgPty></GrpHdr><PmtInf><PmtInfId>BATCH-1</PmtInfId><PmtMtd>TRF</PmtMtd><BtchBookg>true</BtchBookg><NbOfTxs>3</NbOfTxs><CtrlSum>3779.50</CtrlSum><PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl></PmtTpInf><ReqdExctnDt><Dt>2026-10-06</Dt></ReqdExctnDt><Dbtr><Nm>Muster Handels GmbH</Nm></Dbtr><DbtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></DbtrAcct><DbtrAgt><FinInstnId><BICFI>COBADEFFXXX</BICFI></FinInstnId></DbtrAgt><ChrgBr>SLEV</ChrgBr><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1041</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">1240.50</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>INGDDEFFXXX</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Bürobedarf Schmidt KG</Nm><PstlAdr><StrtNm>Hauptstr. 5</StrtNm><PstCd>10115</PstCd><TwnNm>Berlin</TwnNm><Ctry>DE</Ctry></PstlAdr></Cdtr><CdtrAcct><Id><IBAN>DE02500105170137075030</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Rechnung 2026-1041</Ustrd></RmtInf></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1042</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">389.00</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>BYLADEM1001</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Druckerei Wagner GmbH</Nm></Cdtr><CdtrAcct><Id><IBAN>DE02120300000000202051</IBAN></Id></CdtrAcct><RmtInf><Strd><CdtrRefInf><Tp><CdOrPrtry><Cd>SCOR</Cd></CdOrPrtry></Tp><Ref>RF5420261042</Ref></CdtrRefInf></Strd></RmtInf></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1043</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">2150.00</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>BKAUATWWXXX</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Logistik Huber GmbH</Nm><PstlAdr><StrtNm>Ringstr. 1</StrtNm><PstCd>1010</PstCd><TwnNm>Wien</TwnNm><Ctry>AT</Ctry></PstlAdr></Cdtr><CdtrAcct><Id><IBAN>AT611904300234573201</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Fracht Oktober</Ustrd></RmtInf></CdtTrfTxInf></PmtInf><PmtInf><PmtInfId>BATCH-2</PmtInfId><PmtMtd>TRF</PmtMtd><BtchBookg>true</BtchBookg><NbOfTxs>2</NbOfTxs><CtrlSum>1175.25</CtrlSum><PmtTpInf><SvcLvl><Cd>SEPA</Cd></SvcLvl></PmtTpInf><ReqdExctnDt><Dt>2026-10-07</Dt></ReqdExctnDt><Dbtr><Nm>Muster Handels GmbH</Nm></Dbtr><DbtrAcct><Id><IBAN>DE89370400440532013000</IBAN></Id></DbtrAcct><DbtrAgt><FinInstnId><BICFI>COBADEFFXXX</BICFI></FinInstnId></DbtrAgt><ChrgBr>SLEV</ChrgBr><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1044</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">720.00</InstdAmt></Amt><CdtrAgt><FinInstnId><BICFI>ABNANL2AXXX</BICFI></FinInstnId></CdtrAgt><Cdtr><Nm>Studio Janssens BV</Nm></Cdtr><CdtrAcct><Id><IBAN>NL91ABNA0417164300</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Design Q3</Ustrd></RmtInf></CdtTrfTxInf><CdtTrfTxInf><PmtId><EndToEndId>RE-2026-1045</EndToEndId></PmtId><Amt><InstdAmt Ccy=\"EUR\">455.25</InstdAmt></Amt><Cdtr><Nm>Hotel Alpenblick</Nm></Cdtr><CdtrAcct><Id><IBAN>DE00370400440532013001</IBAN></Id></CdtrAcct><RmtInf><Ustrd>Seminar 14.10.</Ustrd></RmtInf></CdtTrfTxInf></PmtInf></CstmrCdtTrfInitn></Document>"
      +  }
      +]
    • changedInput schema / properties / xml / description
      Previous value: -"The SEPA file as XML text (empty = built-in sample: pain.001 with 5 payments in 2 batches)"New value: +"The SEPA file as XML text (provide xml or fileContent)"
  2. Added

TDQS

A4/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 (IBAN mod-97, length, SEPA country, RF reference check, NbOfTxs/CtrlSum control sums, duplicate EndToEndId flagging), determinism, no storage, and concrete quota/auth mechanics (5 calls/day per IP, X-API-Key, x402 per-call price). These are exactly the operational facts annotations cannot 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?

Front-loaded with the file types and output shape, and every clause carries content, but the body is a single run-on sentence of stacked parentheses and symbol-heavy payment codes (AC04, AM04, MD01, RF, pain versions) that is harder to scan than it needs to be. Pricing/URL detail at the tail is justified for auth but adds bulk.

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 enumerating returned record fields and the pain.002 reason-code translation, which is strong. One gap remains: it does not say whether a failed IBAN/control-sum check rejects the call or merely flags the row, nor how ZIP-level errors surface.

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 the baseline is 3; the description adds real value by clarifying the xml-vs-fileContent alternative, that fileContent accepts a ZIP of up to 20 files, and that csv output returns a base64 payload. It adds modest meaning on top of an already-documented schema rather than duplicating it.

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?

States a precise verb and resource: parse ISO 20022 SEPA pain.001/.008/.002 files (with message-type versions enumerated) into one record per payment, and lists the output fields. The scope is unmistakable, though it never names a sibling (e.g. sepa_xml, xml_to_excel, camt054_to_excel) to draw the boundary explicitly.

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?

Usage context is implied by the input types (SEPA XML or ZIP up to 20 files, 1,000 rows/call, 12 MB per XML), but there is no explicit when-to-use / when-not statement or routing to an alternative sibling. An agent can infer this is the SEPA-specific parser, but must reason about it.

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