Skip to main content
Glama

pt_verify_connectivity

Runs a real ping from a specified Packet Tracer device to a destination IP and parses the console output to confirm deployed topology connectivity.

Instructions

Runs a REAL ping from a device in PT and returns the result.

Unlike validations that are only printed as "check it by hand", this runs ping on the device's console and parses the real output: how many packets arrived. Use it to confirm that a freshly deployed topology really has connectivity.

Works with hosts (PC/Server/Laptop, format "Packets: Sent=..") and with IOS devices (router/switch, format "Success rate is N percent").

Parameters:

  • from_device: name of the device the ping starts from

  • to_ip: destination IP

  • count: reserved; PT uses its default per type (PC 4, IOS 5). A "-n" flag would break on IOS, so it is not forced for now.

  • timeout_s: maximum wait (default 45s: on a topology deployed moments ago, switch ports spend ~30s in STP before forwarding). A FAILED ping takes longer than a successful one: each packet waits for its own timeout before being declared lost (~13s measured for 4 lost packets).

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": {
      "from_device": "<from_device>",
      "to_ip": "<to_ip>"
    },
    "name": "pt_verify_connectivity"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
to_ipYes
timeout_sNo
from_deviceYes

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?

With no annotations, the description carries the full burden and does so well: it discloses that a real `ping` executes on the device console, that output is parsed differently for hosts versus IOS devices, and gives timing behavior (STP ~30s, ~13s per lost packet). It does not state whether the tool is read-only/safe, what happens if the device is missing or unpowered, or whether it blocks other lab operations.

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 with the core action, then a usage sentence, then platform notes, then a parameter breakdown that is warranted because the schema has no descriptions. No sentence is filler; even the timeout rationale directly prevents premature timeouts on fresh topologies.

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?

For a 4-parameter execution tool with an output schema present, the description covers everything an agent needs: what it does, when to use it, per-platform output differences, default timing risks, and the ignored count parameter. Return-value detail is correctly left to the output schema.

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 and it does for all four parameters: from_device, to_ip, count (explicitly reserved and ignored — critical to prevent misuse, since PT applies its own default of 4/5), and timeout_s with its default plus the reasoning behind 45s. This is meaning an agent cannot get from the bare schema.

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 ("Runs a REAL ping from a device in PT and returns the result") and immediately distinguishes it from the class of validators that only emit a printed "check it by hand" instruction. An agent can tell this performs an actual network operation on the device console rather than a static config check.

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?

"Use it to confirm that a freshly deployed topology really has connectivity" gives a concrete triggering condition, and the contrast with printed-only validations clarifies when this tool is needed instead. It stops short of naming a specific sibling alternative or stating when-not to use it (e.g. before devices are powered on).

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