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

Packet Tracer MCP — Node.js port

pt_read_vlans

Reads a switch's actual VLAN database in Packet Tracer, listing VLANs, access and trunk ports, port security, and mismatches to verify VLAN changes or discover unknown topologies.

Instructions

Reads a switch's REAL VLAN database in PT.

Returns each VLAN with its number, name, whether it is one of PT's factory ones (1, 1002-1005) and its access ports; plus the trunk ports (with native VLAN), the ports with port security, and access ports left in a VLAN missing from the database. Use it to confirm that a pt_apply_vlan was applied, or to discover a topology you didn't build.

Parameters:

  • switch: switch name in PT.

Example: pt_read_vlans(switch="SW1")

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": {
      "switch": "<switch>"
    },
    "name": "pt_read_vlans"
  }
}

Input Schema

NameRequiredDescriptionDefault
switchYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A3.9/5.0
Behavior3/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 makes the read-only nature clear by verb choice and does a good job disclosing what the response contains (factory VLAN flags, trunk/native VLANs, port-security ports, orphaned access ports). It says nothing about error behavior when the switch name is invalid, whether it requires a loaded topology, or cost/latency for large databases.

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?

Purpose and return shape are front-loaded, then a clearly separated usage sentence, then params and an example. The return-shape sentence is a dense run-on list of categories but each clause carries distinct information, so little is wasted.

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?

With one parameter and no output schema, the description does the right work by enumerating the returned categories in place of a schema. The main gap is failure handling and what an empty or partial result looks like, which matters for a tool whose stated purpose is verification.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 compensate; it does so minimally by explaining that "switch" is the switch name in PT and by giving the pt_read_vlans(switch="SW1") example. It does not address whether the name is case-sensitive, whether it must match the exact PT device label, or how ambiguity is handled.

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 and resource ("Reads a switch's REAL VLAN database in PT") and the "REAL" qualifier signals it reads live device state rather than a declared intent. The resource (VLANs) cleanly separates it from every sibling reader such as pt_read_mac_table or pt_read_routes.

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 gives two concrete usage contexts: verifying that a pt_apply_vlan took effect, and discovering an existing topology. The write counterpart pt_apply_vlan is named explicitly, which routes the agent well. There is no explicit when-not guidance, which keeps it just short of a 5.

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