Skip to main content
Glama

ensp_send_commands

Batch-send CLI commands to Huawei eNSP devices over Telnet, returning per-command results; optionally halt on errors and auto-diagnose failures.

Instructions

批量下发命令,每条命令返回独立的 :class:TelnetResult

stop_on_error=True 时,遇到连接错误 设备命令报错(errored)会立刻中断。 auto_diagnose=True 时,对每条失败命令自动调用诊断引擎,返回 diagnosis 字段。 返回中 has_error 汇总是否存在任意一条命令报错。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandsYes
auto_diagnoseNo
stop_on_errorNo
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

A3.7/5.0
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 and does meaningful work: it discloses that stop_on_error aborts on either connection failure or device-level 'errored' results, that auto_diagnose invokes the diagnosis engine per failed command and adds a diagnosis field, and that has_error aggregates error state. It omits auth/session prerequisites and any rate or batching limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short, front-loaded lines, each covering one distinct concern (purpose, stop_on_error, auto_diagnose, return summary) with no filler or repetition.

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?

An output schema exists, so return-shape explanation is not required, and the behavioral flags are well covered. The gap is on the input side: nothing explains what session_id_or_name accepts (ID vs name) or how the commands array is interpreted, which matters for a 4-parameter tool at 0% schema coverage.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it does explain the semantics of two of the four parameters (auto_diagnose, stop_on_error) beyond their names. The required session_id_or_name and the commands array format (strings, ordering, view context) are not clarified anywhere.

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 opens with a specific verb and resource ('批量下发命令') and states the per-command return type (TelnetResult), which clearly marks it as the batch counterpart to the singular ensp_send_command sibling. It stops short of explicitly naming that sibling or stating the batch-vs-single selection rule.

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?

Usage is implied by the batch framing and the documented effect of stop_on_error and auto_diagnose, so an agent can infer when to flip those flags. However, there is no explicit statement of when to prefer this over ensp_send_command or when not to use it.

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