Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

run_cable_test

Tests cable quality and estimates length on specified switch ports, returning per-port status and estimated length in meters to diagnose open, short, or crosstalk faults.

Instructions

Start cable diagnostics (TDR test) on specified ports and return results.

Tests cable quality and estimates length. Returns per-port results immediately: status (NOT_TESTED, NO_CABLE, NORMAL, OPEN, SHORT, OPEN_SHORT, CROSSTALK) and length_m (estimated cable length in meters).

Args: ports: Port numbers to test (1-16).

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": {
      "ports": "<ports>"
    },
    "name": "run_cable_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
portsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose key behavior: the test is TDR-based, results are returned per-port and "immediately" rather than asynchronously, and the possible status values are enumerated. It omits the operational impact (whether testing briefly drops the link) and any permission or device-state requirements, which keeps it short of a 5.

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-loaded with the action in the first clause, then a compact paragraph on behavior and return values, then a short Args block. No filler sentences; every line conveys actionable 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?

A single required parameter plus an output schema means the description does not need to detail return values, yet it helpfully names the status enum and length_m. The one meaningful gap for a hardware diagnostic on a switch is the lack of any note about service impact or preconditions, which an agent would want before running it on production ports.

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 description coverage is 0%, so the description must compensate — and it does the most important thing by adding the valid range "(1-16)" for the ports array, which the bare integer-array schema does not convey. Nothing is said about ordering, duplicates, or behavior with an empty list, so it stops short of fully documenting the parameter.

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 action ("Start cable diagnostics (TDR test)") on a specific resource ("specified ports") and immediately characterizes the result. No sibling tool in the list performs cable diagnostics, so the agent can distinguish it cleanly from the surrounding get_*/set_* port-configuration tools.

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 "Start cable diagnostics ... on specified ports" and the tool is unique among siblings, so there is no real alternative to route to. However, the description never states when a caller should run this (e.g., link-down troubleshooting), nor whether it is disruptive to live traffic — a relevant consideration an agent cannot infer.

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