decode_ebcdic_record
Decode raw IBM CP037 EBCDIC, COMP-3, and COMP-4 hex records against a COBOL copybook to return structured JSON, 88-level condition flags, REDEFINES overlays, byte spans, and forensic anomalies.
Instructions
Deterministically decode a raw IBM CP037 EBCDIC / COMP-3 / COMP-4 hex payload against a COBOL Copybook, returning structured JSON, 88-level condition flags, REDEFINES overlays, byte-by-byte spans, and forensic anomalies.
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": {
"copybook": "<copybook>",
"ebcdicHex": "<ebcdicHex>"
},
"name": "decode_ebcdic_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copybook | Yes | COBOL Copybook source text. | |
| ebcdicHex | Yes | Hex-encoded mainframe binary record bytes (spaces/newlines allowed). |