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

Packet Tracer MCP — Node.js port

pt_read_packet_trace

Reads the simulation event list and per-layer decision log to reveal what each packet did and why, helping diagnose dropped pings and routing or ARP failures.

Instructions

Reads the simulation's event list: what each packet did and WHY.

Besides the path (device, ingress/egress port, source, destination, traffic type and outcome) it returns the decision log that PT generates per OSI layer — the same text as the "PDU Details" panel of its GUI. That is where the real cause of a failing ping shows up, for example: "The next-hop IP address is not in the ARP table."

Requires Simulation mode with generated traffic (pt_simulation_mode(on=True) and then a ping, or pt_simulation_step so the events move on).

Parameters:

  • limit: maximum frames to return (1-200, default 20).

  • device: if given, only the frames that went through that device.

  • include_decisions: if False, omits the per-layer log (shorter reply).

Example: see why a ping is dropped: pt_read_packet_trace(limit=10)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pt_read_packet_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
deviceNo
include_decisionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.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 substantial work: it discloses the preconditions, the shape of returned data (path fields plus per-layer decision log text), and a cost/size control ('include_decisions: if False ... shorter reply'). It stops short of explicitly declaring the operation read-only and does not say whether calls have any side effects on simulation state, which is the one thing an agent still has to infer from the verb 'Reads'.

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 with the core purpose, then prerequisites, then a tidy bulleted parameter list and a one-line example, so the structure is easy to scan. A few sentences are decorative rather than informative ('That is where the real cause of a failing ping shows up') and could be trimmed without losing meaning.

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?

There is no output schema, yet the description fully covers what comes back (device, ingress/egress port, source, destination, traffic type, outcome, plus per-layer decision log) and how to shorten it. It also documents why the tool needs a running simulation, which is the main failure mode an agent would otherwise hit; ordering of results under limit is the only minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 largely does: it adds the undocumented range (1-200) alongside the schema's default of 20, explains device as 'only the frames that went through that device' (the schema offers only a bare title), and spells out the effect of include_decisions. It does not specify the format device expects (name vs. ID) or whether limit returns the newest or oldest frames.

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 ('Reads the simulation's event list: what each packet did and WHY') and immediately distinguishes itself from sibling read tools by scope: per-packet decision logs across OSI layers, equivalent to the GUI 'PDU Details' panel. An agent can tell this apart from pt_read_arp or pt_read_mac_table, which return single-table state rather than per-packet event history.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit prerequisites ('Requires Simulation mode with generated traffic') and names the exact enabling siblings (pt_simulation_mode(on=True), pt_simulation_step) needed to produce events. It also supplies a concrete selecting scenario, 'see why a ping is dropped', which is the diagnostic condition under which this tool beats the other pt_read_* state readers.

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