Skip to main content
Glama
shigechika

io.github.shigechika/junos-mcp

by shigechika

run_show_command_batch

Execute CLI show commands on multiple Junos devices concurrently using hostname or tag selection, with optional grep filtering to narrow output.

Instructions

Run a CLI show command on multiple devices in parallel.

Uses ThreadPoolExecutor for concurrent execution. Either hostnames or tags selects the targets; if both are omitted, every router in config.ini is targeted. When both are given, the intersection is used.

Args: command: CLI command to execute on all devices hostnames: List of target device hostnames (must exist in config.ini) tags: Tag filter. Each list element is one tag group (comma-separated tags AND together within a group). Multiple list elements OR together across groups. E.g. ["tokyo,core", "backup"] means (tokyo AND core) OR backup. Combined with hostnames the result is the intersection. grep_pattern: Optional Python re pattern. When set, only lines matching the pattern (via re.search) are kept from each host's output. Header lines (starting with #) are always preserved. Hosts with no matching lines show (no match). Reduces large batch outputs to the essential lines. max_workers: Maximum parallel threads (default 5) config_path: Path to config.ini (empty string uses default search)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes
hostnamesNo
tagsNo
grep_patternNo
max_workersNo
config_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses concurrency via ThreadPoolExecutor, tag filtering details, grep behavior (headers preserved, output for no match), and defaults for max_workers and config_path. Missing details on error handling or output format, but overall transparent for a read-only command.

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 well-structured with a brief headline and bullet-like parameter explanations. It is fairly concise given the complexity, but could be slightly tighter (e.g., combining some sentences). Every sentence adds value.

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 6 parameters (1 required) and an output schema presumably covering return values, the description covers selection, filtering, parallelism, and defaults. It lacks explicit error handling or mention of output structure, but the presence of output schema may compensate. Overall complete for the intended use.

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

Parameters5/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 explain all 6 parameters. It does so thoroughly: command (CLI command), hostnames (must exist in config.ini), tags (detailed AND/OR logic), grep_pattern (re.search, header preservation), max_workers (default 5), config_path (default search). This adds significant meaning beyond the schema.

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 'Run a CLI show command on multiple devices in parallel,' specifying the action (run) and resource (CLI show command on multiple devices). This distinguishes it from siblings like run_show_command (single device) and run_show_commands (multiple commands on single device).

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 explains target selection via hostnames, tags, or both, with clear logic (intersection, default all). It also covers grep_pattern filtering. However, it does not explicitly state when not to use this tool or compare to alternatives, leaving some inference 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/shigechika/junos-mcp'

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