Skip to main content
Glama

pt_set_port

Sets low-level attributes on a live Packet Tracer port, applying only passed values for bandwidth, duplex, description, MAC, power, zone, Proxy ARP, or IKE without configure terminal.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.3/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 most of it well: it discloses the sentinel-default semantics (only explicitly passed attributes are applied), the `setXxx`-missing case being silently ignored, and the partial-application reporting. It does not cover failure modes (unknown device/interface), prerequisites, or whether changes persist to saved config.

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?

Purpose and usage come first, then a flat parameter list — appropriate ordering for a tool that must document 12 undocumented parameters. The one longer digression (Proxy ARP leaking topology information) is genuinely decision-relevant rather than filler.

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, the description covers intent, sentinel semantics, silent-ignore behavior, and every parameter; an output schema exists, so return values need little further explanation. It could still say whether the device/port must already exist and whether settings survive a device reload or save.

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 there are 12 parameters, so the description must compensate entirely — and it does, documenting each parameter with units, example formats, sentinel values, and behavioral effects (e.g. bandwidth in kbps with 0 = no change, mac_address in AABB.CCDD.EEFF form, power 1/0/-1, zone_member restricted to router interfaces). No parameter is left ambiguous.

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") plus the target context ("on a live device in PT"). The scope note about covering adjustments the CLI doesn't expose helps position it, but no sibling tool is named, so differentiation from tools like pt_apply_interface_tuning or pt_apply_hardening is left to inference.

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?

Gives a clear when-to-use signal: low-level tweaks the CLI can't easily express, or changes you want applied without entering `configure terminal`. It stops short of stating when NOT to use it or naming the alternative tools for higher-level configuration, so guidance is clear but not complete.

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