Skip to main content
Glama

pt_apply_etherchannel

Bundle switch ports into an EtherChannel (Port-channel group) via Cisco IOS CLI, with optional trunk mode and allowed VLANs, to add link aggregation and redundancy.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.4/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 discloses that each CLI line is verified, that behavior is measured only on a 2960-24TT in PT 9 and unverified on other models, the group range (1-6 on a 2960), and that dry_run validates without sending. It stops short of stating idempotency or what happens when ports are already in a channel, which is the main remaining gap for a mutation tool.

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 summary sentence followed by a tight per-parameter bullet list, then a verification hint and a worked example. Nearly every line earns its place; the peer-switch note and the mode note overlap slightly but each adds distinct guidance.

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 7-parameter configuration tool with an output schema present (so return values needn't be described), the definition covers model caveats, mode pairing rules, trunk/VLAN interaction, dry-run and verification. Minor omissions remain: required vs optional parameters are not flagged, and failure/idempotency behavior is unstated.

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 coverage is 0% with 7 parameters, and the description documents all of them: switch, ports (with count, speed constraint and range-collapse syntax), group range, mode with its accepted values and semantics, trunk, allowed_vlans (trunk-only, with example), and dry_run. This goes well beyond the bare typed properties.

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') and even names the concrete artifact created. An agent can immediately distinguish this from sibling tools like pt_apply_vlan or pt_apply_stp.

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 operational constraints: at least one side must be active/desirable, passive+passive and auto+auto never form, and the peer switch must be configured the same way. It also routes verification to pt_cli with 'show etherchannel summary'. It lacks an explicit when-not-to-use statement (e.g. use pt_apply_interface_tuning for single-port settings), so it settles at 4.

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