Skip to main content
Glama

Plc Browse

plc_browse
Read-onlyIdempotent

Browse OPC UA address space by listing child nodes from a selected node, mapping the device structure for targeted reads. Ideal for diagnosing and navigating PLC address hierarchies.

Instructions

浏览地址空间: 从 node 展开一层子节点 (诊断场景的"列目录")。

返回 {node, children, total, shown, truncated}: children 每项含 node_id / display_name / node_class; 超出输出预算时 truncated=true 且 total 给出全量数 —— 需要更深层级就对着子 node_id 再调一次。 默认从 Objects 文件夹 (ns=0;i=85) 起步; 对 plc_read 前先摸清 设备地址空间结构时用。 当前仅 OPC UA 支持 (会话协议无帧概念, browse 是它的"读目录"形态); 其他协议用 list_protocols 的 read_options 直接构造地址。 输出预算: 单次最多 200 个子节点 (约 30KB), 防止大地址空间撑爆上下文。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
nodeNons=0;i=85
portYes
unitNo
limitNo
protocolYes
timeout_msNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeYes
shownYes
totalYes
childrenNo
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.1

TDQS

A4.5/5.0
Behavior5/5

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

The description adds behavioral details beyond the annotations: it explains the return structure ({node, children, total, shown, truncated}), the output budget (max 200 children, ~30KB), truncation behavior, default starting node, and the need to call again with a child node_id for deeper levels. It also notes the protocol limitation. No contradiction with the readOnlyHint.

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 description is a single, dense paragraph that front-loads the core function and return format. It is efficient, but slightly long; however, every sentence adds value, covering purpose, usage, and behavioral constraints.

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 description covers the essential aspects: return structure, truncation behavior, default node, usage context, protocol limitation, and output budget. The output schema likely defines the return format, so the description focuses on behavior. It could detail more parameters, but overall it is complete enough for the tool's scope.

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 coverage is 0%, so the description must compensate. It explains the 'node' parameter (default ns=0;i=85) and 'limit' (output budget of 200), and implies 'protocol' by restricting to OPC UA. However, it does not describe host, port, unit, or timeout_ms, leaving these to be inferred from context.

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

Purpose5/5

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

The description clearly states the tool's purpose: browse the address space by expanding one level of child nodes from a given node, framed as a 'list directory' for diagnostics. It differentiates from siblings like plc_read (reading values) and list_protocols (listing protocols) by specifying when to use it and what it returns.

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

Usage Guidelines5/5

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

It explicitly says to use this before plc_read to understand the address space structure, and notes that it only supports OPC UA, directing users of other protocols to use list_protocols' read_options instead. This gives clear when-to-use and when-not-to-use guidance.

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