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

Packet Tracer MCP — Node.js port

pt_send_pdu

Sends an ICMP echo PDU between two Packet Tracer devices in simulation or realtime mode, with optional event steps to return the packet trace.

Instructions

The GUI's "Add Simple PDU": an ICMP echo from one device to another.

Parameters:

  • source, destination: device names (pt_query_topology).

  • simulation: True (default) switches PT to Simulation first, so the PDU waits in the event list; False switches to Realtime, where PT delivers it at once.

  • steps: in Simulation, how many events to step forward right away (0-100). With steps > 0 the reply includes the packet trace (path, drops and PT's per-layer reason), like pt_read_packet_trace.

The first PDU between two devices can die at a router waiting on ARP, exactly like the first ping: send it again.

Example: pt_send_pdu("PC1", "PC4", steps=10)

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": {
      "source": "<source>",
      "destination": "<destination>"
    },
    "name": "pt_send_pdu"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNo
sourceYes
simulationNo
destinationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that the tool mutates the simulator's mode (switching between Simulation and Realtime), that the PDU may sit in the event list, and that steps>0 triggers packet-trace collection in the reply. It does not describe the response shape when steps=0 or whether the call blocks on delivery, leaving some behavioral surface undocumented.

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 a one-line identity statement, then a scannable parameter list, a caveat, and a concrete example call. Every sentence carries information; the only mild redundancy is the analogy "exactly like the first ping" alongside the already-explicit ARP 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?

There is no output schema, so the description must explain returns, and it does for the steps>0 case (path, drops, per-layer reason) but not for the plain steps=0 case, where the agent cannot tell whether success/failure is reported. Combined with the mode-switching and ARP caveats, it is otherwise sufficient to call the tool 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 supply all parameter meaning, and it does: source/destination are device names sourced from pt_query_topology, simulation is a mode switch with a stated default and observable consequence, and steps is bounded 0-100 with the effect of producing a packet trace. The 0-100 range and the default values are semantic constraints the bare schema does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: an ICMP echo ("Add Simple PDU") sent from one named device to another, which is far more concrete than the tool name alone. It differentiates itself from pt_read_packet_trace by noting that trace output is a side effect of stepping, but it never explicitly contrasts itself with the sibling pt_send_raw (arbitrary/raw packets), so sibling differentiation is only implicit.

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 clear operational guidance: use simulation=True to queue the PDU in the event list, False to deliver immediately in Realtime, and points to pt_query_topology as the source of device names. It also warns that the first PDU between two devices can die at a router waiting on ARP and should simply be re-sent, which is exactly the kind of guidance that prevents misdiagnosis. It lacks an explicit "when not to use this / use pt_send_raw instead" statement.

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