Skip to main content
Glama

ensp_enable_lldp

Enables LLDP on Huawei eNSP devices to broadcast and receive neighbor information, then verify connections. Optionally enable per interface.

Instructions

在指定设备上开启 LLDP(用于让设备广播 / 接收邻居信息)。

LLDP(Link Layer Discovery Protocol)是华为 eNSP 设备默认支持的链路层发现协议, 设备互相通告自己的接口和系统名。开启后即可用 ensp_verify_lldp_neighbors 看到哪些接口连到了对端设备的哪个接口。

工作流程:

  1. system-view 进入系统视图

  2. lldp enable 全局使能(华为默认全局开启后所有接口都广播)

  3. 若指定了 interfaces,进每个接口视图执行 lldp enable (仅在接口视图下需要单独使能时才需要;默认情况下全局开即可)

参数:

  • session_id_or_name:会话 ID 或设备名

  • interfaces:可选,要单独使能 LLDP 的接口列表(如 ["GigabitEthernet0/0/2"]); 留空表示仅全局使能

返回每步的执行结果(命令 / elapsed / output / errored),失败时停止并标记。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
interfacesNo
session_id_or_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well: it explains that global 'lldp enable' already broadcasts on all interfaces so per-interface enablement is usually unnecessary, and it discloses failure behavior (stops on error and marks the step). It does not mention session prerequisites or whether the operation is idempotent.

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?

Well-structured with a purpose line, a numbered workflow, and a parameter section; the key scoping fact is front-loaded. It is slightly verbose in re-explaining what LLDP is, which is tangential to invocation.

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?

Given the output schema exists, return values needn't be documented, though the description briefly notes them (command/elapsed/output/errored). Combined with the workflow and full parameter explanation, an agent has what it needs, though auth/permission context is absent.

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

Parameters4/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, and it does: it defines session_id_or_name (session ID or device name) and interfaces (optional per-interface enablement list, empty means global only) with an example. This meaningfully exceeds the bare schema.

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?

States a specific verb and resource (开启 LLDP on 指定设备) and scopes the effect (broadcast/receive neighbor info on Huawei eNSP). It names the sibling counterpart ensp_verify_lldp_neighbors, letting an agent distinguish it from the verification tool without opening a schema.

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?

Provides clear context: enable LLDP so that ensp_verify_lldp_neighbors can reveal neighbor links, and explains the workflow order. However, it never states when NOT to use this tool or names alternative enablement paths, so it stops short of the explicit when/when-not/alternatives bar of a 5.

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