Network operations MCP server for device inspection, configuration analysis, security policy evaluation, and performance monitoring across multiple network vendors
The server defines 11 network diagnostic tools via FastMCP. Tool naming follows verb_noun patterns (check_*, inspect_*, identify_*, backup_*, analyze_*) which is correct. However, descriptions are problematic: many are very short (10-20 chars in Chinese), parameter descriptions exist but lack depth regarding constraints and formats. Input schemas are present with basic typing but lack enums for constrained values (e.g., 'log_type' accepts free-form 'auth|system|all' as a string without enum). Output schemas are not documented, the code returns result.dict() but the structure of 'data', 'statistics', 'raw_outputs' fields is inferred from implementation, not declared to the LLM. Error handling returns error strings but does not guide recovery or categorize errors as retryable vs. fatal. Security concern: passwords are passed as parameters (anti-pattern; should use server-side injection). Critically, the source code snippet is truncated mid-file (device_tools.py cuts off at 'stdout.read().decode'), so several tool implementations are not fully visible, making it impossible to verify complete schema and error handling for all tools. Per-tool assessments are conservative given this visibility gap.
分析网络设备的登录和系统日志,识别异常访问和行为模式
分析网络设备的安全策略配置,识别潜在风险和优化机会
备份网络设备配置
检查安全ACL配置
检查网络设备性能,包括CPU、内存、温度、接口流量等
分析网络设备的当前会话连接信息,识别在线用户和连接特征
检查网络设备光模块状态和信息
Passwords and credentials passed as tool parameters (password: str = ''), direct violation of secret-injection pattern. Agents log all parameters, leaking secrets into traces and logs.
Output schemas are not documented. Tools return result.dict() with fields like 'status', 'data', 'statistics', 'raw_outputs', 'summary', 'error', structure is inferred from implementation rather than declared in MCP tool definition. LLM cannot plan downstream tool calls or extract specific fields.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 48 | - | v1 |
检查路由器路由表
检查交换机端口状态
识别网络设备类型和基本信息
检查交换机VLAN配置
Tool descriptions are very brief (mostly 10 - 30 chars in Chinese) and lack guidance on when to use each tool vs. similar ones. E.g., 'check_device_performance' vs 'check_optical_modules', unclear from descriptions which to call for CPU vs. interface health.
Constrained parameters use free-form strings instead of enums. E.g., 'route_type' accepts 'all|static|ospf|bgp|connected' and 'log_type' accepts 'auth|system|all' as plain strings with no enum constraint. LLMs may hallucinate invalid values like 'ospf-only' or 'syslog'.
Error handling returns error strings (e.g., 'Error: {error}', '执行失败: {str(e)}') but does not guide recovery or categorize errors. LLM receives a raw message with no indication of whether to retry, ask the user, or abandon.
Source code provided is truncated (device_tools.py cuts off mid-function at 'stdout.read().decode'). Cannot verify complete implementation, error handling, or actual output structure for tools: identify_network_device, check_switch_ports, and others. Per-tool scores for these are conservative (capped at 50 where implementation is not fully visible).
Parameter descriptions are minimal. E.g., 'timeout': 'SSH connection timeout in seconds' is present, but lacks constraints like 'min: 5, max: 300' or guidance on when to raise it for slow networks.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Tools are marked with 'Risk: READ_ONLY' or 'Risk: WRITE' in metadata but not in actual MCP tool definition. This is informational only, not actionable to the MCP spec.