Skip to main content
Glama

Probe Device

probe_device

Probe PLC communication and identify failure layer: connection refused, timeout, no reply, or exception response. Diagnose why a device returns no data and decide next step.

Instructions

测试能否连上 PLC 并通信, 失败时给出层级归因。

reachable = 传输层可达 (TCP 已建立; 设备回异常响应也算在线)。 failure_class 取:

  • connection_refused: 端口没人监听/网络不可达 (查网络与端口)

  • timeout: 连接超时 (查网络路由/防火墙)

  • connected_but_no_reply: TCP 通了但设备不回话 (查协议配置)

  • exception_response: 设备回异常码 (查 unit/寄存器配置, 带 exception_code) 典型用法: 设备"读不到数据"时先调本工具分层定位, 再决定下一步。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
portYes
unitNo
protocolYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
reachableYes
layer_hintNoapplication
failure_classNo
exception_codeNo

Schema Changelog

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

  1. First observedv0.4.0

TDQS

A4/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 it well. It defines 'reachable', enumerates all failure_class values with their meanings and remediation hints, and explains that exception responses still count as online. It does not mention side effects or timeout details, but a probe tool's behavior is largely covered.

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 well-structured and front-loaded: primary purpose first, then reachable definition, then failure classes with troubleshooting hints, then a typical usage scenario. Every sentence earns its place and there is no filler.

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

Completeness4/5

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

The tool has an output schema, so the return-value details do not need to be explained. The description covers the core scenario, failure taxonomy, and next-step suggestions, which is reasonably complete for a diagnostic probe. It could add more explicit parameter guidance or sibling-tool differentiation, but nothing essential is missing for calling it correctly.

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

Parameters3/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 for the undocumented parameters. It indirectly adds meaning to protocol and unit by referencing 'protocol config' and 'unit/register config' in the failure-class guidance, and host/port are self-evident. However, it does not document valid protocol values, unit semantics, or parameter formatting, leaving a clear gap.

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 tool's function: test whether a PLC can be connected to and communicated with, and provide layered attribution on failure. It is specific about the resource (PLC connectivity/communication) and the failure-class output, but it does not explicitly distinguish itself from sibling tools such as plc_read or detect_device.

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 a concrete when-to-use hint: when a device reports 'cannot read data', call this tool first to locate the failing layer before deciding the next step. It does not explicitly name alternative tools or state when not to use it, so it stops short of full routing guidance.

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