Skip to main content
Glama

pt_apply_hsrp

Configures one HSRP group on a router interface via IOS CLI, setting virtual IP, priority, preempt, and version with per-line verification.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden, and it does well: it discloses that each CLI line is verified, that measurements are on a 2911 in PT 9, that version 1 is accepted but NOT verified, that dry_run validates without sending, and the PT-connected constraint that virtual_ip must be a free host address rather than the interface's own IP. It does not say whether an existing group is overwritten or how partial failure is handled, which keeps it below a 5.

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 summary followed by a tight parameter list, then a runnable example and a verification step. No sentence is filler; the format lets an agent scan to the field it needs quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no prose explanation. For an 8-parameter, no-annotation mutation tool, the description supplies the environment constraints, defaults, ranges, verification path and a worked example — everything needed to invoke it correctly.

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%, so the description must compensate entirely, and it does: group range 0-4095 plus the requirement that both routers share group and virtual_ip, priority range 0-255 with default 100 and the rule that higher wins, preempt default True with its meaning, version default 2 with the caveat about 1, and dry_run behavior. Only the router/interface string formats are covered by example rather than by rule, a minor gap.

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?

Opens with a specific verb and resource: "Configures one HSRP group on a router interface through IOS CLI." The scope (one group, one interface) and the exact CLI lines issued (standby version, standby <g> ip|priority|preempt) make it unambiguously distinct from the other pt_apply_* siblings.

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?

It routes the agent to pt_query_topology for obtaining router/interface names and to pt_cli with "show standby brief" for verification, plus an explicit example of the two-router pattern (repeat on R2 with priority=100). What is missing is an explicit statement of when NOT to use it or how it differs from a generic pt_cli write path.

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