Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

set_port_qos_priority

Assign a QoS priority queue to a switch port so port-based QoS traffic handling can be configured per port; supports LOWEST, NORMAL, MEDIUM, and HIGHEST priorities.

Instructions

Set a port's QoS priority queue. Only effective when QoS mode is PORT_BASED.

Args: port: Port number (1-16). priority: LOWEST (queue 0), NORMAL (queue 1), MEDIUM (queue 2), or HIGHEST (queue 3).

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

Input Schema

NameRequiredDescriptionDefault
portYes
priorityYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose an important behavioral trait: the call is a no-op unless the device is in PORT_BASED mode. It does not say whether a rejected call errors or silently succeeds, whether the setting persists across reboots, or whether it requires elevated credentials, which matters for a config mutation.

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?

One summary sentence, one scoping constraint, then a compact Args block. Everything is front-loaded and nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 not be explained, and both parameters and the mode precondition are covered. What is missing is the failure semantics when QoS mode is not PORT_BASED and any coupling to set_qos_mode, which an agent needs before invoking on an unconfigured device.

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 the priority parameter is an unconstrained string, so the description is doing real work by enumerating LOWEST/NORMAL/MEDIUM/HIGHEST and mapping each to a queue number 0-3. It also supplies the 1-16 range missing from the integer port field. Only minor details (case sensitivity, validation errors) are absent.

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?

"Set a port's QoS priority queue" gives a specific verb and resource, and the PORT_BASED carve-out immediately narrows the concept. It stops short of naming a sibling such as set_qos_mode to contrast with, but the operation itself is unambiguous.

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?

"Only effective when QoS mode is PORT_BASED" is a genuine prerequisite that tells the agent when this call will or will not do anything, which most sibling setters lack. It does not explicitly instruct the agent to call set_qos_mode first, leaving the ordering inference to the caller.

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