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

Packet Tracer MCP — Node.js port

pt_read_cdp

Reads the real CDP neighbour table to show which device is cabled to which port, with local and remote port, platform and capability per neighbour. Query one device or all.

Instructions

Reads the REAL CDP neighbour table: who is cabled to which port.

Per neighbour: device id, local and remote port, platform, capability. CDP announces every 60 s: right after a deploy the table is empty.

Parameters:

  • device: device name; empty = every device.

Example: pt_read_cdp(device="SW1")

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

Input Schema

NameRequiredDescriptionDefault
deviceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden. It discloses that the operation is a read, lists the per-neighbour return fields, and notes the 60-second CDP refresh causing an empty table immediately after deploy. It does not cover device-side prerequisites such as CDP being enabled, but the key read-only and freshness behavior are stated.

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?

The description is front-loaded, uses a short bullet for the parameter, and gives one concrete example. Every sentence adds either scope, return information, or an operational caveat.

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?

For a simple one-parameter read tool with no output schema and no annotations, the description supplies the return shape, default parameter behavior, and a freshness caveat. It is nearly complete, though it could mention what happens for devices where CDP is unsupported or disabled.

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?

The schema has 0% description coverage for the single 'device' parameter. The description fully explains that it is a device name and that an empty value means every device, which is exactly the semantic an agent needs.

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 gives a specific verb ('Reads') and resource ('CDP neighbour table'), and clarifies the payload as 'who is cabled to which port.' That is enough to distinguish it from generic device-read siblings without relying on the name alone.

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

Usage Guidelines3/5

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

It implies the use case (checking CDP neighbour/cabling information) and gives a useful timing caveat that the table can be empty right after deploy. However, it never explicitly states when to choose this over alternatives such as MAC/ARP table reads or what to do when CDP is unavailable.

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