Skip to main content
Glama
Packet Tracer MCP — Node.js port

Packet Tracer MCP — Node.js port

pt_set_port

Set low-level port attributes on a live Packet Tracer device, such as bandwidth, duplex, MAC address, power, Proxy ARP, IKE, and security zone, without entering configure mode.

Instructions

Sets low-level attributes of a port on a live device in PT.

Only applies the attributes passed explicitly (parameters with sentinel defaults). Useful for adjustments the CLI doesn't expose easily, or that you want to apply without entering configure terminal.

Parameters:

  • device: device name in PT (e.g. "R1")

  • interface: interface name (e.g. "GigabitEthernet0/0")

  • bandwidth: bandwidth in kbps (>0 to apply; 0 = don't change)

  • bandwidth_auto: 1 enables BW auto-negotiation, 0 disables it, -1 doesn't change

  • full_duplex: 1 full duplex, 0 half duplex, -1 doesn't change

  • duplex_auto: 1 enables duplex auto-negotiation, 0 disables, -1 doesn't change

  • description: descriptive text (empty = doesn't change)

  • mac_address: MAC in "AABB.CCDD.EEFF" format (empty = doesn't change)

  • power: 1 powers the port on, 0 off, -1 doesn't change

  • zone_member: name of the port's security zone, for Zone-Based Firewall (empty = doesn't change). Router interfaces only.

  • proxy_arp: 1 enables Proxy ARP, 0 disables it, -1 doesn't change. Turning it off is common hardening: with Proxy ARP the router answers ARPs that are not its own and leaks information about the topology.

  • ike: 1 enables IKE on the interface (IPsec VPN), 0 disables it, -1 doesn't change.

Returns which attributes were applied (those with a method available in the port's API). If some setXxx does not exist on the device's model, it is silently ignored and only what took effect is reported.

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": {
      "device": "<device>",
      "interface": "<interface>"
    },
    "name": "pt_set_port"
  }
}

Input Schema

NameRequiredDescriptionDefault
ikeNo
powerNo
deviceYes
bandwidthNo
interfaceYes
proxy_arpNo
descriptionNo
duplex_autoNo
full_duplexNo
mac_addressNo
zone_memberNo
bandwidth_autoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.2/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 burden and does well: it explains the sentinel-default pattern (only explicitly passed attributes are applied), that missing setXxx methods on a device model are silently ignored, and what the return value reports. It omits whether changes are transient versus persisted, and any prerequisite that the device must be live/running beyond the phrase 'live device'.

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 purpose and the sentinel-default rule, then a structured parameter list. Given zero schema coverage the length is justified, though the Proxy ARP hardening aside and some per-parameter explanations could be trimmed without losing call-critical 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 12-parameter mutation tool with no annotations and no output schema, the description covers the key behaviors: partial application, silent skipping of unsupported setters, and return content. It leaves gaps around state persistence (running-config vs. saved), device-live prerequisites, and potential failure modes, which an agent would want before mutating a live device.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates fully: every one of the 12 parameters is documented with sentinel semantics (0/-1/empty = no change), value meanings (1/0/-1), formats ('AABB.CCDD.EEFF', 'GigabitEthernet0/0'), and scope restrictions (zone_member, router interfaces only). This adds substantial meaning beyond the bare schema.

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 ('Sets low-level attributes of a port on a live device') and clarifies the niche versus the CLI path by noting it is for adjustments the CLI doesn't expose easily or that should be applied without entering configure terminal. It doesn't differentiate from the closely related pt_apply_interface_tuning or pt_apply_hardening siblings, so it stops short of full sibling disambiguation.

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?

Provides clear usage context: low-level attribute changes that are awkward via CLI or that should avoid configure terminal, plus a rationale for common cases like disabling Proxy ARP as hardening. It gives no explicit when-not-to-use guidance or pointer to alternative tools (e.g. pt_apply_interface_tuning) that could also set duplex/power-like settings.

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

Deploy Server

Other Tools