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

Packet Tracer MCP — Node.js port

pt_apply_hsrp

Configures an HSRP group on a router interface via IOS CLI — version, virtual IP, priority, and preempt — verifying each command. Use dry run to preview the CLI first.

Instructions

Configures one HSRP group on a router interface through IOS CLI, each line verified (standby version, standby <g> ip|priority|preempt). Measured on a 2911 in PT 9.

  • router / interface: e.g. "R1", "GigabitEthernet0/0" (pt_query_topology).

  • group: 0-4095 with version 2. Both routers use the same group and virtual_ip.

  • virtual_ip: the hosts' gateway. With PT connected it must be a free host address in the interface's live subnet, not the interface's own IP.

  • priority: 0-255, default 100; the higher one becomes active.

  • preempt: take over again when this router comes back (default True).

  • version: 2 (measured). 1 is accepted but NOT verified.

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

Example (active router; repeat on R2 with priority=100): pt_apply_hsrp(router="R1", interface="GigabitEthernet0/0", group=1, virtual_ip="192.168.1.254", priority=110) Check: pt_cli(device="R1", commands=["show standby brief"]).

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": {
      "router": "<router>",
      "interface": "<interface>",
      "group": "<group>",
      "virtual_ip": "<virtual_ip>"
    },
    "name": "pt_apply_hsrp"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupYes
routerYes
dry_runNo
preemptNo
versionNo
priorityNo
interfaceYes
virtual_ipYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.6/5.0
Behavior5/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 so: it discloses that every line is verified, that behavior was measured on a 2911 under PT 9, that version 1 is accepted but unverified, and that dry_run returns the CLI/payload without sending. It also documents two non-obvious correctness constraints (same group/virtual_ip on both routers; virtual_ip must be a free host address when PT is connected).

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, then parameter bullets, then a concrete worked example and a verification step — a sensible order with little waste. Minor deduction because the bullets restate schema defaults (priority 100, preempt true, version 2) that structured data already provides.

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 an eight-parameter, no-annotation, no-output-schema networking tool, the definition covers correctness constraints, verification, and dry-run preview well. It leaves unstated the response shape on a real run (only dry_run's return is described) and what happens if the group is already configured.

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%, so the description must compensate, and it documents all eight parameters with ranges and meanings (group 0-4095 with version 2, priority 0-255 default 100 and higher wins, preempt semantics, version 2 verified, virtual_ip acting as the hosts' gateway, dry_run behavior). It adds semantics the schema titles cannot convey.

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 ('Configures one HSRP group on a router interface') plus the mechanism ('through IOS CLI') and the scope ('one group'), which separates it from a raw-command tool like pt_cli. The 'each line verified' clause adds a distinguishing behavioral property up front.

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?

The workflow is made clear: resolve names via pt_query_topology, validate with dry_run, and confirm with pt_cli show standby brief. What is missing is an explicit contrast with pt_cli (i.e. 'do not hand-type standby commands, use this instead'), so the alternative is implied rather than named.

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