Skip to main content
Glama
netmiko-mcp-linksys

netmiko-mcp-linksys

by WackEarl

poe_cycle

Power-cycles a PoE port device by switching PoE off for a set interval and back on, with dry-run default and protected-port refusal.

Instructions

Power-cycle the device on a PoE port: PoE off, wait off_seconds (2..60), PoE on. PoE is switched on again even if the wait or the session fails (finally, then one retry in a new session). Protected ports are refused hard. dry_run=true by default. Does not save.

SWITCH_PROTECTED_PORTS is unset or invalid: port writes that check it are refused on every port (fail-closed). Caution ports (SWITCH_CAUTION_PORTS): none.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "port": "<port>"
    },
    "name": "poe_cycle"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes
dry_runNo
off_secondsNo
confirm_caution_portNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1

TDQS

A4.3/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so well: it discloses the finally-style re-enable, one retry in a new session, hard refusal on protected ports, the fail-closed behavior when SWITCH_PROTECTED_PORTS is unset/invalid, that no caution ports are configured, and that state is not saved. These are exactly the operational traits an agent cannot infer elsewhere.

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 core sequence and safety guarantees are front-loaded in the first two sentences with no padding. The trailing paragraph on SWITCH_PROTECTED_PORTS and caution-port configuration is relevant to refusal behavior but reads as environment boilerplate that is less immediately actionable for a caller.

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?

For a mutating, potentially disruptive tool with no annotations, the description covers failure modes, retry, refusal, dry-run default, and persistence. An output schema exists so return values need no explanation; the only real gap is the unexplained confirm_caution_port flag.

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%, and the description adds meaning only for off_seconds (range 2..60) and dry_run (default true). The required 'port' parameter and 'confirm_caution_port' are never explained, and the mention that caution ports are "none" hints at confirm_caution_port without saying what it does.

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?

States a specific verb and resource ("Power-cycle the device on a PoE port") and then spells out the exact mechanism (PoE off, wait, PoE on), which unambiguously distinguishes it from siblings like poe_disable and poe_enable. An agent can pick this without opening any schema.

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?

Gives clear context: a timed power cycle with off_seconds bounded 2..60, dry_run defaulting true, and the condition that protected ports are refused. It does not explicitly name poe_disable/poe_enable as the alternatives for a non-cycling toggle, so routing guidance stops just short of complete.

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