Skip to main content
Glama
yangyu2729

console-switch-mcp

by yangyu2729

send_command

Execute commands on network switches via serial console and retrieve the output. Supports Huawei, H3C, and Cisco devices for configuration and troubleshooting.

Instructions

向已连接的交换机发送一条命令,并获取返回结果。

华为交换机常用命令示例:

  • display version 查看设备版本

  • display current-configuration 查看当前配置

  • display interface brief 查看接口概要

  • display vlan 查看VLAN信息

  • display mac-address 查看MAC地址表

  • display arp 查看ARP表

  • display ip routing-table 查看路由表

  • display device 查看设备状态

  • display logbuffer 查看日志缓冲

  • ping 192.168.1.1 测试网络连通性

  • system-view 进入系统视图

  • display cpu-usage 查看CPU使用率

  • display memory-usage 查看内存使用率

注意:进入 system-view 后提示符会从 变为 [Huawei],此时可执行配置命令。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes要发送给交换机的命令(不需要带回车,会自动添加)
timeoutNo等待响应的超时时间(毫秒),默认 5000ms。对于 show running-config 等长输出建议设大一些
Behavior4/5

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

With no annotations provided, the description carries the full burden. It goes beyond the schema by explaining that newlines are auto-added, that timeout should be increased for long outputs, and that the prompt changes when entering system-view. These are useful behavioral details. However, it does not disclose the exact return format or potential error behaviors, leaving some gaps.

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 front-loaded with a clear purpose statement, followed by a well-organized list of common commands and a note about system-view. While it is longer than a typical description due to the examples, every line contributes useful information and there is no fluff or repetition. It is structured effectively for quick scanning.

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 tool has only 2 parameters and no output schema or annotations, the description is fairly comprehensive. It explains the core action, provides usage examples, and gives practical tips like timeout adjustment and prompt change behavior. It does not specify the return format or error handling, but for a simple command-sending tool, the level of detail is sufficient.

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?

The input schema already describes both parameters (command and timeout) fully, so the baseline is 3. The description adds value by providing example command syntax and clarifying that newlines are automatically added, plus a recommendation to increase timeout for long outputs. This enhances the semantic understanding beyond the schema alone.

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 clearly states the tool's function: sending a command to the connected switch and retrieving the result (向已连接的交换机发送一条命令,并获取返回结果). It includes numerous command examples, making the purpose concrete. However, it does not explicitly distinguish itself from the sibling tool send_config, which likely also sends commands, so it lacks sibling differentiation.

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?

The description provides many example commands (display version, ping, system-view) that illustrate typical usage, and notes about auto-added newline and timeout for long outputs. However, it does not explicitly state when to use this tool versus alternatives like send_config or get_status, nor does it mention any exclusions. The usage context is implied through examples rather than explicit guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yangyu2729/console-switch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server