Skip to main content
Glama
hugil
by hugil

set_port_vlan_membership

Configure VLAN port membership on Zyxel switches by assigning ports as tagged, untagged, forbidden, or excluded. Preview changes with dry-run and apply with automatic backups.

Instructions

Set port membership in a VLAN (mode: tagged|untagged|forbidden|excluded). Protected ports (uplink 1, AP trunk 4) are refused. Auto-backs up current state before applying; running config is saved to startup on success. dry_run=true (default) previews without applying.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
portsYes
dry_runNo
vlan_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that protected ports are refused, that state is auto-backed-up before applying, that running config is saved to startup on success, and that dry_run defaults to preview. It omits permission/auth requirements and whether failures roll back, but the mutation behavior is unusually well disclosed.

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?

Front-loaded with the core action, then constraints and side effects in supporting sentences. Compact and mostly waste-free, though the mode enum parenthetical and the line-broken sentences are slightly awkward.

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 mutation tool with no annotations, this covers side effects (backup, startup save), refusals, and the preview flag, which is what an agent needs before invoking. An output schema exists so return values need not be described. Only auth/permission prerequisites are missing.

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%, so the description must compensate. It usefully supplies the mode enum values (absent from the schema) and the dry_run default semantics, but leaves ports (integer format/port numbering) and vlan_id entirely unexplained.

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 (Set) and resource (port VLAN membership) and enumerates the mode values, which lets an agent distinguish it from set_pvid and set_port_config in the sibling list. The purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies the mode options and the protected-port exclusion, which is implied usage guidance, but it never states when to use this tool instead of set_pvid or set_port_config. No explicit when/when-not routing is given.

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