Generate 997 Functional Acknowledgment
generate_997_ackGenerate an X12 997 Functional Acknowledgment for a given EDI interchange, indicating acceptance (A) for valid documents or rejection (R) for structural errors.
Instructions
Build an X12 997 Functional Acknowledgment answering the given X12 interchange (sender/receiver swapped, one AK2/AK5 pair per transaction). The ack status follows envelope validation: clean file → A, structural errors → R.
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": {
"content": "<content>"
},
"name": "generate_997_ack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Raw EDI document text: an X12 interchange (ISA...IEA) or EDIFACT interchange (UNA/UNB...UNZ) | |
| ack_control_number | No | Interchange control number to stamp on the acknowledgment (default 1001) |