Skip to main content
Glama

pt_send_pdu

Send an ICMP echo between devices to test connectivity, optionally stepping simulation events and returning a 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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.8/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 well: it discloses that the tool mutates simulator state (switching between Simulation and Realtime), that the PDU queues in an event list rather than being delivered immediately in Simulation mode, and that the first PDU can legitimately fail on ARP and should be re-sent. These are non-obvious behaviors an agent could not infer from the schema alone.

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?

One-line purpose statement up front, then a parameter list, then a runtime caveat, then a worked example. Every sentence adds information; nothing is repeated from the schema or padded.

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 four-parameter mutation tool with no annotations and an output schema already present, the description covers everything an agent needs: mode side effects, default behaviors, valid range, return-value nuance (trace inclusion), a known failure mode, and a call example. No material gap remains.

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: source/destination as device names cross-referenced to pt_query_topology, simulation with its default and mode-switch effect, and steps with its 0-100 range and the consequence that a trace is included. This is meaning well beyond the bare typed properties.

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?

The description opens with a specific verb+resource: an ICMP echo between two devices, framed as the GUI's 'Add Simple PDU'. The word 'Simple' plus the ICMP-echo qualifier implicitly separates it from the raw-packet sibling pt_send_raw, so an agent can tell what class of operation this is without opening the schema.

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 explains the two operating modes (simulation=True queues in the event list, False delivers immediately in Realtime) and gives concrete guidance on retrying the first PDU after an ARP stall. What it doesn't do is state explicitly when to prefer pt_send_raw or pt_read_packet_trace; it only notes that steps>0 yields a trace 'like pt_read_packet_trace', leaving the choice between tools to inference.

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