Validate Frame
validate_frameValidate protocol frames against specification checklists for Modbus TCP, FINS/TCP, and MELSEC 3E. Returns pass/fail per check without requiring a device connection.
Instructions
对一帧报文跑规范校验清单, 逐项 pass/fail (不需要连接设备)。
Modbus TCP: MBAP 长度一致性、协议号、功能码、unit 范围、PDU 自洽、数量/地址边界、异常码 (Modbus TCP 无 CRC, RTU 才有)。 FINS/TCP: magic、TCP 长度自洽、TCP 命令合法、error 字段、 FINS 端结码、载荷完整性。 MELSEC 3E: 副头部、数据长度自洽、命令/软元件代码、结束代码。 direction 取 req 或 resp。
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": {
"protocol": "<protocol>",
"frame_hex": "<frame_hex>"
},
"name": "validate_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | Yes | ||
| direction | No | resp | |
| frame_hex | Yes | ||
| frame_format | No | 3e_binary |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |