Skip to main content
Glama

ensp_load_topology

Loads a .topo file, probes each device's COM port over TCP, auto-connects reachable devices, and returns launch guidance for pending ones so you can resume eNSP lab setup.

Instructions

加载 .topo 拓扑:解析 → 探测每个设备的 com_port → 自动建连 → 输出启动指引。

典型工作流:

  1. 调用本工具解析 .topo,获得设备清单与连线;

  2. 工具对每个 com_port 做 TCP 探测(无需 telnet 登录);

  3. 对可达端口自动调用 ensp_connect_device 建连;

  4. 对不可达端口,把设备列入 pending_devices 并附带 eNSP GUI 启动步骤;

  5. 用户在 eNSP GUI 中启动设备后,再次调用本工具(或 ensp_scan_devices + ensp_connect_device 组合)补齐剩余会话。

返回 JSON + Markdown 报告(markdown_report 字段)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
auto_connectNo
scan_timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that probing is TCP-only with no telnet login, that reachable ports trigger automatic session creation via `ensp_connect_device`, and that unreachable devices are diverted to `pending_devices` rather than failing the call. It omits idempotency/error semantics and whether repeated calls create duplicate sessions, keeping it short of a 5.

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?

Front-loaded one-line summary followed by a tight numbered workflow that maps to the actual execution stages. Slight redundancy in restating the `ensp_scan_devices` + `ensp_connect_device` fallback, but no filler sentences.

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?

For a complex orchestration tool, the description covers the pipeline, the failure path, and the follow-up action, and an output schema exists so return-value detail is unnecessary. Remaining gaps are the meaning of `pending_devices` fields and error behavior when the topology file itself is invalid.

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 coverage is 0% for all three parameters, so the description must compensate and largely does not: `auto_connect` and `scan_timeout` are only alluded to indirectly via the probing/auto-connect narrative, with no units for the timeout or mention of the 0.5 default, and `path` has no stated format or constraint.

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 states a specific verb+resource and scope: loading a ``.topo`` file and running a four-stage pipeline (parse → probe com_ports → auto-connect → emit startup guidance). This is clearly more than the parse-only siblings, though it never explicitly contrasts itself with `ensp_parse_topology`, leaving that distinction to be inferred from the pipeline steps.

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 gives an explicit numbered when-to-use workflow, names the fallback combination (`ensp_scan_devices` + `ensp_connect_device`) for the same goal, and states the exact re-invocation condition (after the user starts devices in the eNSP GUI). Nothing about tool selection is left to inference.

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