Skip to main content
Glama

ensp_health_check

Check a Huawei eNSP device's health to diagnose session, interface, OSPF, and route problems, then return a structured report with fix suggestions.

Instructions

对设备进行全面健康检查,自动诊断异常。

检查项:

  1. 会话状态(连接是否正常)

  2. 设备元信息(VRP 版本、型号)

  3. 接口状态(物理/协议状态,自动诊断 down 的接口)

  4. OSPF 邻居状态(可选,需 check_ospf=True

  5. 路由表完整性(可选,需 check_routes=True

返回结构化诊断报告,包含每个检查项的 issues 列表和修复建议。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
check_ospfNo
check_routesNo
expected_routesNo
session_id_or_nameYes
expected_up_interfacesNo
expected_ospf_neighborsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

B3.4/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 behavior burden and does reasonably well: it establishes this is a diagnostic/read operation, lists exactly which subsystems are inspected, discloses the conditional gating of the optional checks, and describes the output shape ('issues' list per check item plus repair suggestions). It does not state permissions or side effects explicitly, but a health check is inherently read-only, so coverage is good.

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 purpose followed by a compact numbered breakdown of check items, which maps naturally onto the tool's behavior. Sentences are tight and the optional flags are flagged inline; the list format is appropriate rather than padding.

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

Completeness3/5

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

Because an output schema exists, return values need not be explained and the description still adds a useful one-line summary of the report. It is adequate for a read-only diagnostic tool but leaves notable gaps: the expected_* comparison parameters and session_id_or_name are unexplained, and there is no indication of when to prefer it over the granular verify_* siblings.

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 description coverage is 0%, so the description must compensate, and it only partially does. It gives meaningful semantics for two parameters (check_ospf, check_routes) by mapping them to specific check items, but it never mentions session_id_or_name, expected_routes, expected_up_interfaces, or expected_ospf_neighbors — the comparison inputs that drive the diagnosis — nor the expected formats for those values.

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 and resource: '对设备进行全面健康检查,自动诊断异常', then enumerates the concrete check items (session, metadata, interfaces, OSPF, routes). This clearly differs in scope from the narrower verify_* siblings, but it never names or contrasts against them (e.g. ensp_verify_interfaces, ensp_diagnose_error), so sibling differentiation is only implicit via the '全面/comprehensive' framing.

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

Usage Guidelines3/5

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

It supplies some usage context by noting OSPF and route checks are optional and gated by check_ospf=True / check_routes=True, which tells the agent how to enable them. However, it gives no guidance on when to choose this comprehensive check versus the individual verify_* tools or ensp_diagnose_error, leaving the agent to infer the routing decision.

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