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

Packet Tracer MCP — Node.js port

pt_inspect_ports

Inspect real port state on a live Packet Tracer device to diagnose link, protocol, IP, duplex, ACL, cable, and far-end issues, and flag cable-down or protocol anomalies.

Instructions

Real state of each port of a live device in PT.

Reads the device, not the plan: line/protocol status, MAC, IP/mask, duplex, bandwidth, MTU, delay, CDP, DHCP client, NAT mode, applied ACLs and, on a cabled port, the real cable type (straight, cross, serial...) and the far end ("SW1:FastEthernet0/1"). Flags anomalies (cable connected with the port down, line up with protocol down).

It is the DETAIL view of one device; for the sweep of the whole topology (down links, duplicate IPs) use pt_health_check.

Parameters:

  • device: device name; empty = all (verbose on large topologies).

  • only_linked: if True, returns only ports with a cable connected.

Example: see why one of R1's links won't come up: pt_inspect_ports(device="R1", only_linked=True)

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_inspect_ports"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNo
only_linkedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.7/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 load and does well: it enumerates the fields read (line/protocol status, MAC, IP/mask, duplex, bandwidth, MTU, delay, CDP, DHCP client, NAT mode, ACLs, real cable type and far end), notes it flags anomalies, and warns that an empty device filter is verbose on large topologies. The read-only nature is strongly implied by "Reads the device" but never stated outright, and there is no mention of prerequisites such as the device existing or being powered/live.

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 one-line purpose, then details, alternatives, parameters, and an example in a predictable order. Slightly long for two parameters, but every block earns its place and there is no filler.

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, so the description supplies the return content itself by listing the inspected fields and anomaly flags, along with the sibling alternative and a usage example. For a read tool with two optional parameters, nothing an agent needs to call it correctly is missing.

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 define both parameters, and it does: device is "device name; empty = all" with a cost caveat about verbosity, and only_linked filters to ports with a cable connected. That adds meaning (and a performance warning) the bare schema does not provide.

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 ("Real state of each port of a live device in PT") and immediately scopes it as reading the device rather than the plan. It also explicitly positions itself as the single-device DETAIL view versus pt_health_check, so an agent can distinguish it from siblings without opening any schema.

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 an explicit routing rule: use this for one device's detail, use pt_health_check for the whole-topology sweep (down links, duplicate IPs). It closes with a concrete scenario ("see why one of R1's links won't come up") plus the precise call, so when-to-use is unambiguous.

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