Skip to main content
Glama
netmiko-mcp-linksys

netmiko-mcp-linksys

by WackEarl

port_security_set

Limit MAC addresses learned on a switch port (1–256) or disable port security; protected ports are refused, and changes run as a dry run by default without saving.

Instructions

Set port security (max learned MACs 1..256) or turn it off (limit omitted). Protected ports are refused. 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": "port_security_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes
limitNo
dry_runNo
confirm_caution_portNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does substantial work: it states the valid range, the fail-closed refusal behavior when SWITCH_PROTECTED_PORTS is unset/invalid, that dry_run is the default (so writes are simulated unless overridden), and that nothing is saved. It does not explain what a refusal response looks like or how confirm_caution_port interacts when a caution port is targeted.

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 most important facts — the operation, its range, and the disable path — are front-loaded in the first sentence. The trailing environment-status sentences are a bit clipped and read like config dumps, but they are short and relevant to failure behavior.

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?

An output schema exists, so return values need not be described, and the description covers the mutation semantics, defaults, safety gates, and persistence caveat appropriate to a 4-parameter write tool. The only real gap is the exact semantics of confirm_caution_port and port name format.

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% across four parameters, so the description must compensate. It adequately documents limit (1..256, omit to disable) and dry_run (default true), and touches caution ports, but it never specifies the expected port identifier format or the precise meaning of confirm_caution_port.

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 ('Set port security') and immediately defines the permitted value range and the disable path (omit limit). It is clear what the tool does, but it does not distinguish itself from adjacent configuration siblings such as storm_control_set or rate_limit_set.

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?

It gives actionable conditions: omit limit to turn the feature off, protected ports are refused, dry_run defaults to true, and changes are not persisted. What is missing is explicit routing to alternatives (e.g., save_config to persist, or a separate tool for other port settings).

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