Parse ANSI X12 Healthcare EDI
parse_x12_ediParse or validate ANSI X12 EDI healthcare transactions (837P claims, 835 remittance advice, 270/271 eligibility) into structured JSON with interchange envelopes, delimiters, SNIP validation levels 1-4, and per-segment error diagnostics.
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": {
"edi": "<edi>"
},
"name": "parse_x12_edi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edi | Yes | Raw ANSI X12 EDI text (interchange envelope included) | |
| operation | No | Operation to run: "parse" (default) returns structured JSON, "validate" runs envelope and SNIP checks | |
| snipLevel | No | SNIP validation level 1-4 (validate operation) | |
| validateSnip | No | Run SNIP type validation during parse |