Skip to main content
Glama

Validate Frame

validate_frame

Run protocol compliance checks on a frame, pass/fail per item, no device needed. Supports Modbus TCP, FINS/TCP, MELSEC 3E for req/resp frames.

Instructions

对一帧报文跑规范校验清单, 逐项 pass/fail (不需要连接设备)。

Modbus TCP: MBAP 长度一致性、协议号、功能码、unit 范围、PDU 自洽、数量/地址边界、异常码 (Modbus TCP 无 CRC, RTU 才有)。 FINS/TCP: magic、TCP 长度自洽、TCP 命令合法、error 字段、 FINS 端结码、载荷完整性。 MELSEC 3E: 副头部、数据长度自洽、命令/软元件代码、结束代码。 direction 取 req 或 resp。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
protocolYes
directionNoresp
frame_hexYes
frame_formatNo3e_binary

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the behavioral disclosure burden and does so reasonably well: it discloses offline operation, item-by-item pass/fail behavior, and protocol-specific validation logic including the nuance that Modbus TCP has no CRC (unlike RTU). It does not cover error handling or invalid-input behavior, but the output schema covers the return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with a one-sentence summary, followed by clean per-protocol bullet lists, and ends with a direction note. Every sentence adds protocol-specific value; there is no redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema handles return values, so that is not a gap. However, for a 4-parameter tool with no annotations and no schema descriptions, accepted protocol strings, frame_hex formatting, and frame_format values should be specified; they are mostly implied. The rich protocol checklists make it usable, but the missing parameter details keep it from being fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It only explains direction explicitly ('direction 取 req 或 resp') and hints at protocol values via the protocol sections. frame_hex format and frame_format semantics are not described, leaving an agent without enough information about how to supply those parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: run a spec validation checklist on one frame with itemized pass/fail results, and explicitly notes it requires no device connection. The protocol-specific checklists (Modbus TCP, FINS/TCP, MELSEC 3E) make the validation purpose concrete. It does not explicitly distinguish from the sibling parse_frame tool, so it stops short of a top score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear usage context: use it offline to validate a frame against protocol rules, and it enumerates the supported protocols with their specific check items. It also explains the direction parameter accepts req or resp. It does not explicitly name alternatives or state when not to use it, so exclusion guidance is missing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ymxc152/plctap'

If you have feedback or need assistance with the MCP directory API, please join our Discord server