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

Packet Tracer MCP — Node.js port

pt_apply_etherchannel

Bundles switch ports into a verified EtherChannel via IOS CLI to aggregate links and optionally configure trunking/VLANs for LACP, PAgP, or static channels.

Instructions

Bundles switch ports into an EtherChannel (Port-channel) through IOS CLI, each line verified. Measured on a 2960-24TT in PT 9; other models are not verified.

  • switch: switch name in PT.

  • ports: 2-8 full port names of one speed, e.g. ["FastEthernet0/10", "FastEthernet0/11"]. A contiguous run is sent as interface range FastEthernet0/10 - 11.

  • group: channel-group number (1-6 on a 2960).

  • mode: "active"|"passive" (LACP), "desirable"|"auto" (PAgP) or "on" (static). At least one side must be active/desirable: passive+passive or auto+auto never forms. Configure the peer switch the same way (same group mode family, same ports count).

  • trunk: True puts Port-channel in switchport mode trunk.

  • allowed_vlans: trunk only, e.g. [10, 20] (switchport trunk allowed vlan).

  • dry_run: validate and return the CLI/payload without sending.

Check it with pt_cli(device=switch, commands=["show etherchannel summary"]). Example: pt_apply_etherchannel(switch="SW1", ports=["FastEthernet0/10", "FastEthernet0/11"], group=1, mode="active", trunk=True)

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": {
      "switch": "<switch>",
      "ports": "<ports>"
    },
    "name": "pt_apply_etherchannel"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoactive
groupNo
portsYes
trunkNo
switchYes
dry_runNo
allowed_vlansNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.5/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 substantial work: it discloses per-line verification, a model/version caveat ("Measured on a 2960-24TT in PT 9; other models are not verified"), and that dry_run validates without sending. It does not describe failure behavior (partial configuration left behind), idempotency of re-applying, or what is returned.

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?

Front-loaded one-line purpose followed by a bulleted parameter block and a verification hint plus example; no filler sentences. The mode bullet is dense but every clause (enum values, protocol family, pairing rule) is load-bearing.

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 seven-parameter mutating CLI-wrapper with no annotations and no output schema, the definition covers formats, constraints, cross-device prerequisites, and a safe preview path. The remaining gap is outcome information — what the tool returns and what state is left behind if a line fails mid-configuration.

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 for every one of the seven parameters: port naming and 2-8 same-speed constraint, the range-compression behavior for contiguous ports, group range on a 2960, the full mode enum with protocol meanings, trunk, allowed_vlans with its trunk-only restriction, and dry_run. This is meaning the schema alone cannot supply.

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 ("Bundles switch ports into an EtherChannel (Port-channel<group>) through IOS CLI") plus the notable behavioral trait that each line is verified. It also implicitly separates itself from the generic CLI sibling by pointing to pt_cli for post-check verification rather than for configuration.

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 real usage conditions: pair configuration on the peer switch with the same group mode family and port count, the LACP/PAgP pairing rule ("passive+passive or auto+auto never forms"), and a concrete verification path via pt_cli. It stops short of stating when to prefer this tool over hand-rolling commands through pt_cli, so no explicit exclusion.

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