Skip to main content
Glama

run_serial_command

Run CLI commands on network devices over serial connection using Netmiko, processing hosts sequentially to avoid serial port conflicts.

Instructions

Run a CLI command on devices via direct Serial connection (using Netmiko).

Note: Physical serial ports generally cannot be used concurrently by multiple threads, so hosts are processed sequentially (one at a time).

Args: command: The CLI command to execute (e.g., 'show version'). filter_criteria: Dictionary to filter target hosts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
filter_criteriaNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds important context: sequential host processing and the physical serial port limitation. However, it omits details like authentication requirements, error handling, or side effects. The provided information is adequate but not exhaustive.

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 fairly concise: two sentences plus a note and arg list. It front-loads the main action and resource. The arg list repeats schema info but adds examples, which is acceptable. Minor redundancy (e.g., stating 'Use:') could be trimmed, but overall it's well-structured and easy to scan.

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's complexity (running CLI commands serially), the description covers purpose, a key behavioral trait, and basic parameter semantics. An output schema exists to document return values. However, it lacks details on error handling, prerequisites, or the exact meaning of filter_criteria. It is fairly complete but could be more robust.

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 description coverage is 0%, so the description must add meaning. It explains 'command' with an example and 'filter_criteria' as a dictionary to filter hosts. This adds value beyond the bare schema, but the structure of filter_criteria is not detailed (e.g., expected keys). The description partially compensates but could be more thorough.

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?

The description clearly states the verb ('Run') and resource ('CLI command on devices via direct Serial connection using Netmiko'). It distinguishes from sibling tools like 'run_netmiko_command' which likely use SSH/Telnet, making the purpose specific and unambiguous.

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?

The description provides a key usage note about sequential processing due to serial port constraints, which is valuable. However, it does not explicitly contrast with sibling tools like 'run_netmiko_command' or 'run_http_request', nor does it state when not to use this tool. The information is helpful but leaves some decision-making to the agent.

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/nagayon-935/nornir-mcp-server'

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