Skip to main content
Glama
shigechika

io.github.shigechika/junos-mcp

by shigechika

install_package

Install firmware packages on Junos devices with pre-flight checks, including version verification, rollback handling, and rescue config save. Supports dry-run and forced installation with unlink option for low-flash models.

Instructions

Install firmware package on device with pre-flight checks.

Full upgrade flow: version check -> rollback pending if needed -> copy (with checksum) -> clear reboot schedule -> rescue config save -> request system software add (with validation).

Args: hostname: Target device hostname (must exist in config.ini) dry_run: If True (default), show what would be done without installing force: If True, skip version checks and force install unlink: If True, run request system software add <pkg> unlink via CLI instead of PyEZ SW.install(). Use for low-flash devices (EX2300 / EX3400, ~1.3 GB /dev/gpt/junos) where major version upgrades fail with "ERROR: insufficient space" because PyEZ does not expose the unlink parameter. The CLI path frees ~330 MB by unlinking the source tgz during extraction. config_path: Path to config.ini (empty string uses default search)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostnameYes
dry_runNo
forceNo
unlinkNo
config_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Discloses the full installation flow, parameter effects (dry_run, force, unlink), and the use of PyEZ vs CLI. With no annotations, the description carries the full burden and does it well, though it omits failure/rollback details.

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?

Well-structured with a summary line, flow steps, and parameter descriptions. The unlink explanation is thorough but slightly verbose; overall efficient for the complexity.

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?

Covers all parameters and the overall process. Since an output schema exists, the lack of return value description is acceptable. The description is complete enough for an agent to use the tool correctly.

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?

Adds rich meaning to all 5 parameters beyond the schema (0% coverage): hostname must exist in config.ini, dry_run shows what would be done, force skips checks, unlink explains low-flash usage with technical detail, config_path default search.

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?

Clearly states 'Install firmware package on device with pre-flight checks' and outlines the full upgrade flow, distinguishing it from sibling tools like rollback_package or copy_package.

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?

Provides specific guidance for when to use the unlink parameter (low-flash devices like EX2300/EX3400) and explains dry_run behavior. However, it does not compare against other sibling tools like check_upgrade_readiness or copy_package.

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