{
  "name": "edi.parse",
  "group": "edi",
  "summary": "Parse an X12 EDI document (850, 856, 810, 855, 997 and others) into structured JSON.",
  "description": "Reads a raw ASC X12 interchange and returns it as JSON: delimiters taken from the ISA header, the ISA/GS/ST envelope decoded, every segment split into named elements, and a document-specific summary - purchase order lines for an 850, the HL shipment hierarchy and SSCCs for an 856, invoice totals for an 810. EDI is positional and delimiter-sensitive, and unreadable without a spec table; reading it by inspection produces confident nonsense, which is why this is a tool rather than a prompt.",
  "keywords": [
    "edi",
    "x12",
    "850",
    "856",
    "asn",
    "810",
    "edi parser",
    "parse edi",
    "read edi",
    "read a purchase order",
    "decode edi",
    "purchase order",
    "supply chain",
    "walmart edi",
    "retail edi"
  ],
  "endpoint": "https://fluentedi.com/v1/edi/parse",
  "mcp_name": "edi_parse",
  "makes_network_request": false,
  "parameters": {
    "type": "object",
    "properties": {
      "input": {
        "description": "Raw X12 EDI text, beginning with ISA where available.",
        "type": "string",
        "maxLength": 2000000
      },
      "include_segments": {
        "description": "Include the flat segment list alongside the summary.",
        "type": "boolean",
        "default": true
      }
    },
    "required": [
      "input"
    ],
    "additionalProperties": false
  },
  "examples": [
    {
      "description": "Parse a purchase order",
      "url": "https://fluentedi.com/v1/edi/parse?input=ST*850*0001~BEG*00*SA*4500123456**20260822~N1*ST*ACME%20STORES*92*0042~PO1*1*100*EA*9.99**UP*012345678905~CTT*1~SE*6*0001~",
      "args": {
        "input": "ST*850*0001~BEG*00*SA*4500123456**20260822~N1*ST*ACME STORES*92*0042~PO1*1*100*EA*9.99**UP*012345678905~CTT*1~SE*6*0001~"
      }
    },
    {
      "description": "Parse an advance ship notice",
      "url": "https://fluentedi.com/v1/edi/parse?input=ST*856*0001~BSN*00*SHIP001*20260822*1200*0001~HL*1**S*1~HL*2*1*O*1~HL*3*2*P*1~MAN*GM*006141411234567890~HL*4*3*I~SN1**12*EA~CTT*4~SE*10*0001~",
      "args": {
        "input": "ST*856*0001~BSN*00*SHIP001*20260822*1200*0001~HL*1**S*1~HL*2*1*O*1~HL*3*2*P*1~MAN*GM*006141411234567890~HL*4*3*I~SN1**12*EA~CTT*4~SE*10*0001~"
      }
    }
  ],
  "suggestion": null
}