Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

set_port_state

Enable or disable a switch port and optionally configure its link speed and 802.3x flow control.

Instructions

Enable or disable a switch port, and optionally set its speed and flow control.

Args: port: Port number (1-16). enabled: True to enable the port, False to administratively shut it down. speed: Link speed. One of: AUTO, HALF_10M, FULL_10M, HALF_100M, FULL_100M, FULL_1000M. flow_control: True to enable 802.3x flow control (pause frames).

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

Input Schema

NameRequiredDescriptionDefault
portYes
speedNoAUTO
enabledYes
flow_controlNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does add one genuinely useful nuance: disabling is 'administratively' shutting the port down, not a physical action. It is silent on operational consequences, though — whether changing speed causes a link flap, whether disabling drops traffic, whether settings persist across reboot, or what privileges are required.

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?

The action and optional scope are front-loaded in one sentence, followed by a compact Args block that maps one-to-one onto the four properties. No filler or repetition of the tool name.

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?

For a four-parameter mutation tool with no annotations and a declared output schema, the description covers every parameter thoroughly and need not describe return values. The remaining gap is behavioral: nothing tells the agent about disruption, persistence, or required state before applying a speed change.

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% and no enums are declared in the schema, so the description does all the work: it gives the port range (1-16), spells out the full speed enumeration including half/full duplex and 10M/100M/1000M variants, and explains flow_control as 802.3x pause frames. This fully compensates for the empty schema documentation.

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?

The first sentence names a specific verb pair (enable/disable) and resource (switch port) plus the optional configuration it performs (speed, flow control), which is enough to separate it from get_port_states and set_poe_port. It never explicitly contrasts itself with those siblings, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus set_poe_port, set_port_pvid, or set_port_mirror, and no prerequisites (link state, admin privileges, whether the port must be down before changing speed). The only usage-adjacent content is the per-argument gloss, which is parameter semantics rather than selection guidance.

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