Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

add_vlan_members

Add ports to an existing 802.1Q VLAN as tagged or untagged members without affecting other VLAN members; including a port can change its tagging mode.

Instructions

Add ports to an existing 802.1Q VLAN.

Reads the current VLAN state and adds the specified ports without affecting other existing members. A port can be changed from tagged to untagged (or vice versa) by including it in the desired list.

Args: vid: VLAN ID of the existing VLAN to modify. tagged_ports: Ports to add as tagged members. untagged_ports: Ports to add as untagged (access) members.

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": {
      "vid": "<vid>"
    },
    "name": "add_vlan_members"
  }
}

Input Schema

NameRequiredDescriptionDefault
vidYes
tagged_portsNo
untagged_portsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 the tool reads current VLAN state first, that it adds ports 'without affecting other existing members', and that including a port in the opposite list retags it. It omits error behavior for a nonexistent vid or invalid port numbers, and says nothing about permissions.

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, followed by the one behavioral sentence that genuinely matters (non-destructive add, retagging), then a compact Args block. The Args section largely restates parameter names but adds real meaning for each, so there is little waste.

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-value detail is not required, and the description adequately covers the read-modify-write semantics of this mutation. The remaining gaps are error handling and permission/auth requirements, which are modest for a VLAN membership tool.

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

Parameters4/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, and it does: vid is tied to an existing VLAN to modify, tagged_ports means tagged members, and untagged_ports is clarified as 'access' members. It stops short of format details such as port numbering or whether the lists are additive versus declarative.

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?

States a specific verb and resource: 'Add ports to an existing 802.1Q VLAN.' The word 'existing' implicitly separates it from create_vlan, and 'add' separates it from remove_vlan_members, but neither sibling is named explicitly.

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?

Usage is implied by 'existing VLAN to modify' and by the note about retagging via the desired list, so an agent can infer this is the tool for incremental membership changes. However, there is no explicit statement of when to prefer this over remove_vlan_members or create_vlan, and no preconditions such as the VLAN needing to exist or ports being valid.

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