util_x12
X12 EDI Parser — Offline ANSI X12 EDI parser and validator. Detects delimiters from the ISA header (element, component, repetition, segment terminator incl. CR/LF), walks ISA/IEA, GS/GE and ST/SE envelopes and checks control numbers and counts (SE01 segment count, GE01, IEA01), flags missing trailers and GS functional-ID mismatches, and returns business summaries: 850/875 purchase orders (PO number, lines, quantities, extended total, CTT check), 810/880 invoices (lines vs TDS total, SAC allowances/charges), 856 ASN (BSN, HL hierarchy, carrier, BOL, PO numbers), 855, 997/999 acknowledgments (accepted/rejected sets with AK3/AK4 errors), 835 remittance (payment, trace, claims charged/paid), 837 claims (professional/institutional/dental, totals, billing NPI), 834 enrollment, 270/271, 276/277, 820, 204, 214, 846, 990. Pass the interchange in text= (URL-encoded); segments=1 returns every parsed segment. Price: $0.004 USDC (Base, via x402).
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": {
"text": "<text>"
},
"name": "util_x12"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ISA*00* *00* *ZZ*SENDERID *ZZ*RECEIVERID *231001*1200*U*00401*000000001*0*P*>~GS*PO*SENDER*RECEIVER*20231001*1200*1*X*004010~ST*850*0001~BEG*00*SA*PO12345**20231001~PO1*1*10*EA*2.50**UP*012345678905~CTT*1~SE*5*0001~GE*1*1~IEA*1*000000001~ |