Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

get_port_statistics

Retrieve per-port TX/RX packet counters, enabled state, and negotiated link speed to monitor switch traffic and diagnose port health.

Instructions

Get per-port packet counters (TX/RX good and bad packets).

Counters are cumulative since last reboot and wrap at 2^32 (4 billion). Also includes each port's enabled state and link_status (negotiated speed).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 behavioral burden, and it does contribute real value: counters are cumulative since last reboot and wrap at 2^32, which directly affects how an agent delta-computes rates. It does not state that the call is read-only (only implied by 'Get') or whether the values are a point-in-time snapshot versus sampled over an interval.

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?

Three short sentences, front-loaded with what is returned and followed by the two caveats that matter (cumulative-since-reboot, 2^32 wrap). The trailing sentence on enabled state and link_status is the only part that could be trimmed as schema-duplicative.

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?

For a zero-parameter read tool with a full output schema, the essential gap-filler — the wraparound caveat — is present. What is missing is any statement of read-only safety or of the snapshot semantics, which matters given there are no annotations to cover that ground.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline is 4 on that basis. The description instead spends its words describing return fields (counters, enabled state, link_status), which duplicates the supplied output schema, so it adds little beyond structured data.

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?

States a specific verb and resource: 'Get per-port packet counters (TX/RX good and bad packets)' and adds the secondary fields (enabled state, link_status). That makes the tool's scope unambiguous, though it never distinguishes itself from the closely-named sibling get_port_states, which plausibly returns the same enabled/link fields.

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 — an agent can infer this is the read tool for traffic counters, and it is a no-parameter call so misuse risk is low. There is no explicit when-to-use/when-not statement, no reference to polling cadence, and no pointer to any alternative for related port data.

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