Skip to main content
Glama

pt_inspect_ports

Inspect real port status, IP/MAC, cable type, and far-end connections on live Packet Tracer devices to diagnose why links stay down and flag cabling 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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden and largely meets it: it enumerates exactly what is read (line/protocol status, MAC, IP/mask, duplex, bandwidth, MTU, delay, CDP, DHCP client, NAT mode, ACLs, cable type, far-end), discloses anomaly-flagging behavior, and warns that an empty device filter is verbose on large topologies. It never states outright that the operation is read-only and does not modify the device, nor does it describe failure conditions such as a nonexistent or powered-off device, so the safety profile is implied rather than declared.

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 purpose, then behavior, then a labeled routing alternative, then parameters, then an example — a clean scan order. The attribute list in the second sentence is dense but earns its place as the contract for what the tool returns; the only mild redundancy is repeating the cable/far-end notion inside the anomaly-flagging sentence.

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?

An output schema exists and annotations are absent, so the description need not explain return values, and it covers purpose, alternative routing, both parameters, and a usage example. Completeness gaps are the read-only guarantee and error/precondition behavior for a live-device inspection, which an agent may need on a tool that touches a running lab.

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 does: 'device' is explained as a name filter where empty means all (with a verbosity caveat the schema's bare default does not convey), and 'only_linked' is defined functionally as returning only ports with a cable connected. What is missing is matching semantics for 'device' — whether it is an exact name, case-sensitive, or partial — which matters given the empty-string default.

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?

Opens with a specific verb and resource: 'Real state of each port of a live device in PT,' and immediately specifies the source of truth ('Reads the device, not the plan'), which distinguishes it from any plan/config-reading sibling. It also names the contrasting sweep tool pt_health_check, so an agent can route correctly without opening either 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?

Explicitly states the division of labor: 'It is the DETAIL view of one device; for the sweep of the whole topology (down links, duplicate IPs) use pt_health_check.' It supplies a concrete invocation scenario ('see why one of R1's links won't come up') with parameter values, leaving nothing 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