Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

get_vlan_config

Retrieves the switch's full 802.1Q VLAN configuration, including enabled status, VLAN limit, and each VLAN's ID, name, tagged ports, and untagged ports.

Instructions

Get the full 802.1Q VLAN configuration.

Returns: enabled (whether 802.1Q mode is active), max_vlans (device limit, typically 32), and a list of VLANs each with vid, name, tagged_ports, and untagged_ports. VLAN 1 ('Default') always exists with all ports as untagged members by default.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_vlan_config"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose non-obvious domain behavior: max_vlans is a device limit typically 32, and VLAN 1 'Default' always exists with all ports untagged by default. It does not state permission requirements, error behavior when 802.1Q is disabled, or whether the read is cached, but for a parameterless read-only getter these are minor.

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 one-line purpose, followed by a compact structured return breakdown. Some content restates what the existing output schema already declares, which is the only redundancy; nothing is padded or buried.

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?

With zero parameters and an output schema present, the description need only establish purpose and any invariant an agent must know before acting, and it supplies the key invariant (VLAN 1 always exists). The repeated return-field listing is redundant against the output schema, leaving slight room for a tighter definition.

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?

The tool takes zero parameters, so there is no parameter meaning to add and the baseline of 4 applies. The description correctly avoids inventing arguments and instead frames the call as scope-free (full configuration).

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 and resource: get the full 802.1Q VLAN configuration. The 802.1Q qualifier plus the described return content (vid, name, tagged/untagged ports) clearly separates it from siblings like get_pvid_config, get_qos_config, and get_lag_config, which cover different configuration domains.

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 the 'get' verb and by the readable scope, so an agent can infer this is the inspection call that precedes create_vlan, add_vlan_members, or delete_vlan. However, no explicit when-to-use statement, prerequisites (e.g., that 802.1Q mode may be disabled), or named alternative is given.

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