Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

set_port_pvid

Assigns a switch port's PVID so untagged ingress traffic is mapped to the specified VLAN; use it when changing a port's native VLAN.

Instructions

Set a port's PVID (native VLAN for untagged ingress traffic).

All untagged frames arriving on this port will be assigned to this VLAN. The port must be an untagged or tagged member of the target VLAN.

Args: port: Port number (1-16). pvid: VLAN ID to assign as the port's native VLAN.

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": {
      "port": "<port>",
      "pvid": "<pvid>"
    },
    "name": "set_port_pvid"
  }
}

Input Schema

NameRequiredDescriptionDefault
portYes
pvidYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does explain the operational effect (all untagged ingress frames get assigned to this VLAN) and a membership prerequisite, but says nothing about failure modes, whether traffic is briefly disrupted, or whether the setting persists across reboots.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the one-line purpose, follows with two short clarifying sentences, then a compact Args block. No redundant or filler wording; every sentence adds information.

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 key precondition plus frame-handling semantics are covered. Minor gaps remain around error conditions and VLAN existence requirements, but nothing essential for a correct invocation is missing.

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% and neither property has a description, yet the Args block documents both: port with a 1-16 range constraint not present in the schema, and pvid as the VLAN ID to assign. That is meaningful compensation for the missing schema documentation.

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 (a port's PVID), then immediately disambiguates with the parenthetical '(native VLAN for untagged ingress traffic)'. An agent can distinguish this write operation from the getter sibling get_pvid_config without opening any schema.

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?

Gives a concrete precondition: 'The port must be an untagged or tagged member of the target VLAN', which tells the agent when the call will succeed. It does not name alternatives or state when not to use it (e.g. to change VLAN membership itself, use add_vlan_members), so it stops short of full routing guidance.

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