Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

create_vlan

Creates a new 802.1Q VLAN with a VLAN ID and name, assigning optional tagged and untagged port memberships on a TP-Link SG1016 switch.

Instructions

Create a new 802.1Q VLAN with optional initial port memberships.

Ports not listed become non-members. Use add_vlan_members / remove_vlan_members to modify port memberships on existing VLANs.

Args: vid: VLAN ID (2-4094). VLAN 1 already exists as the default. name: VLAN name (alphanumeric only, max 10 characters). tagged_ports: Ports that send/receive frames with an 802.1Q VLAN tag. untagged_ports: Ports that send frames without a VLAN tag (access ports).

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": "<name>"
    },
    "name": "create_vlan"
  }
}

Input Schema

NameRequiredDescriptionDefault
vidYes
nameYes
tagged_portsNo
untagged_portsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose a non-obvious side effect (ports not listed become non-members) and an environment constraint (VLAN 1 pre-exists). It does not cover error behavior for an existing VID or any authorization requirements, leaving some mutation risk undisclosed.

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 purpose and the sibling-routing guidance are front-loaded before the Args block, and every line adds information. The Args formatting is slightly verbose relative to the amount of prose, but nothing is wasted.

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 no explanation, and the input semantics are fully covered. The remaining gap is behavioral edge cases (duplicate VID, invalid port numbers), which a mutation tool would ideally address.

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?

Schema coverage is 0%, yet the description documents all four parameters: vid range 2-4094, name alphanumeric with a 10-character cap, and the semantic difference between tagged (trunk) and untagged (access) port lists. This fully compensates for the bare schema.

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?

"Create a new 802.1Q VLAN with optional initial port memberships" is a specific verb plus resource with scope, and the description explicitly distinguishes itself from add_vlan_members / remove_vlan_members, which only modify existing VLANs.

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 a clear routing rule: use this tool to create, use the member tools for existing VLANs, and notes VLAN 1 already exists as the default. It stops short of stating what happens on a duplicate VID or any prerequisite permissions, so it is strong but not fully explicit about when-not to call.

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