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

Packet Tracer MCP — Node.js port

pt_verify_connectivity

Runs a real ping from a Packet Tracer device and parses console output to confirm topology connectivity, reporting packet loss or IOS success-rate results.

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

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 ping runs on the device console, that output is parsed, that formats differ per device family (PC 'Packets: Sent=..' vs IOS 'Success rate is N percent'), and that failures take longer than successes. The STP startup delay and per-packet timeout timing explain the default timeout rationale.

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-loads the core behavior, then a Parameters block; almost every sentence adds information. The contrast with print-only validations is slightly verbose but justified. Minor tightening possible in the timeout explanation.

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?

Covers behavior, device coverage, and all parameters for a no-output-schema tool. It says the result is parsed packet counts or success rate but does not state the concrete return shape the agent will receive, which is the one remaining gap.

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 four parameters: from_device, to_ip, count (reserved, with the reason -n would break IOS), and timeout_s with its 45s default and the STP/timeout reasoning. This is meaning well beyond the bare schema titles.

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 distinguishes itself from print-only validations that tell the user to 'check it by hand'. The agent can tell exactly what happens when this is called.

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 a clear use case ('confirm that a freshly deployed topology really has connectivity'), which implicitly sequences it after pt_deploy. It stops short of naming an alternative tool or stating when not to use it, so it falls just short of the top band.

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