Skip to main content
Glama
tplink-sg1016-mcp

tplink-sg1016-mcp

by daniel-k

set_port_mirror

Configure port mirroring to copy ingress or egress traffic from source ports to a monitoring port, enabling packet sniffing and traffic analysis.

Instructions

Configure port mirroring for traffic analysis.

Copies traffic from source ports to a destination port where a packet sniffer or analyzer can be connected.

Args: enabled: True to enable mirroring. destination_port: The monitoring port that receives copied traffic. ingress_ports: Source ports to mirror incoming traffic from. egress_ports: Source ports to mirror outgoing traffic from.

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

Input Schema

NameRequiredDescriptionDefault
enabledYes
egress_portsNo
ingress_portsNo
destination_portNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the operational effect (traffic is copied to the monitoring port), but says nothing about what happens when enabled=false while destination_port/ingress/egress are still supplied, whether a prior configuration is overwritten, or whether mirroring disrupts normal forwarding. Output schema existence relieves it of explaining return values.

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?

Purpose is stated first, mechanism second, and parameters are grouped in a clean Args block where each line earns its place. The only minor slack is the slightly redundant second sentence, which restates the mirroring concept already implied by the opening line.

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 4-parameter mutation tool with no annotations, the definition covers the essentials of what is configured and what each field means. It is still incomplete on the mutation side: the interaction with get_port_mirror_config, the effect of disabling, and validation rules for the optional port lists are absent.

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?

With 0% schema description coverage, the Args block is the only source of parameter meaning, and it does compensate well: it explains the monitoring role of destination_port and the ingress vs. egress directionality of the source-port lists. It stops short of documenting constraints such as the destination_port default of 1, port ranges, or whether source lists are required when enabled is true.

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 description opens with a specific verb+resource ("Configure port mirroring") and immediately explains the mechanism: copying traffic from source ports to a destination port for a sniffer/analyzer. This makes the tool's job unmistakable and implicitly contrasts with the read-only sibling get_port_mirror_config, though that sibling is never named.

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 context is only implied by "for traffic analysis" and the sniffer/analyzer sentence; there is no explicit when-to-use guidance, no mention of checking current state via get_port_mirror_config first, and no preconditions such as required permissions or whether existing mirroring must be cleared.

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