Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

get_port_states

Retrieves admin state, configured/negotiated speed, and flow control plus link status for all 16 switch ports. Use it to check connectivity and spot link-down or speed mismatches.

Instructions

Get configuration and link status for all 16 switch ports.

Per port: enabled (admin state), speed_config (configured speed), speed_actual (negotiated link speed, LINK_DOWN if no link), flow_control_config/actual. Speed values: LINK_DOWN, AUTO, HALF_10M, FULL_10M, HALF_100M, FULL_100M, FULL_1000M.

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_port_states"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

With no annotations, the description carries the full disclosure burden and mostly meets it: it states the return is unfiltered across all 16 ports, defines each field's meaning, and explains the ambiguous case ('speed_actual ... LINK_DOWN if no link'). It stops short of stating the operation is non-mutating/safe or anything about refresh behavior, which is a modest gap for a read tool with an output schema.

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-sentence purpose, then a compact per-field breakdown. The trailing enumeration of speed values is long but genuinely aids interpretation of the returned data rather than padding; the multi-line field list is slightly sprawling but every line carries 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?

For a zero-argument read tool with an output schema and no annotations, the definition covers scope, field meanings, and the key edge case (link down). It does not address whether disabled or LAG-member ports appear differently or whether values are live vs cached, which are minor omissions given the output schema documents the structure.

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?

Zero parameters, so the baseline is 4. The description still adds useful scope meaning by making clear it takes no filter arguments and always returns all 16 ports, which prevents an agent from hunting for a port-selection argument.

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 configuration and link status') and bounds the scope explicitly ('all 16 switch ports'), then enumerates the exact per-port fields returned. That field list (admin state, configured vs negotiated speed, flow control) is what separates it from siblings like get_port_statistics or get_poe_port_states, so an agent can pick it without opening the schema.

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 only implied: a no-argument read tool whose name and first sentence make clear it is the way to inspect port state. The description names no alternatives, no preconditions, and no 'use X instead when...' routing, even though get_poe_port_states and get_port_statistics sit right next to it.

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