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
| Name | Required | Description | Default |
|---|---|---|---|
| vid | Yes | ||
| name | Yes | ||
| tagged_ports | No | ||
| untagged_ports | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |