Skip to main content
Glama
nbrain-industrial-ot-zkteco-modbus

nbrain-industrial-ot-zkteco-modbus

audit_iec62443_agent_modbus_command

Enforce IEC 62443-3-3 read-only safety firewall for AI-agent Modbus PLC commands, requiring dual-control HMAC authorization for writes.

Instructions

Enforce IEC 62443-3-3 autonomous AI agent read-only safety firewall on Modbus PLC commands.

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": {
      "slave_id": "<slave_id>",
      "function_code": "<function_code>",
      "payload_hex": "<payload_hex>"
    },
    "name": "audit_iec62443_agent_modbus_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
slave_idYes
payload_hexYes
function_codeYes
supervisor_secretNo
authorization_hmacNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure and falls short. It does not explain whether the tool blocks commands, logs an audit event, returns an allow/deny decision, or requires authentication via supervisor_secret or authorization_hmac.

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

Conciseness4/5

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

The definition is a single front-loaded sentence with no filler or repetition. It is concise, although the density of security jargon makes the sentence less informative than its brevity suggests.

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

Completeness1/5

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

For a security-sensitive tool with five undocumented parameters, no annotations, and no output schema, the description is far too thin. It does not give the agent enough information to invoke the tool correctly or understand its effects.

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

Parameters1/5

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

The schema has five parameters with 0% description coverage, and the description provides no parameter-level meaning. Critical fields such as supervisor_secret, authorization_hmac, and payload_hex are completely undocumented, forcing the agent to guess.

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 names a specific enforcement action and resource: an IEC 62443-3-3 read-only safety firewall applied to Modbus PLC commands. This distinguishes it from the sibling tools, which handle framing/verification or ZKTeco data. However, the name says 'audit' while the description says 'enforce,' so the exact operation remains slightly ambiguous.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives, nor any prerequisites or exclusion conditions. The only implied usage is that it applies to Modbus PLC commands under an IEC 62443 read-only policy.

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