Skip to main content
Glama

pt_read_vlans

Reads a switch's real VLAN database in Packet Tracer to verify VLAN assignments, access and trunk ports, and port security before or after configuration.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does well: it discloses that PT factory VLANs (1, 1002-1005) are flagged, that access ports, trunk ports with native VLAN, and port-security ports are included, and that it surfaces access ports stranded in a missing VLAN. It never explicitly states the operation is read-only/non-mutating, but "Reads" and the diagnostic framing make that unambiguous.

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 core statement, then the return contents, then usage, parameters, and an example. Every section earns its place, though the trailing example call adds little for a one-parameter tool.

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?

A low-complexity, single-parameter read tool whose annotations are absent but whose description fully covers scope, returned data categories, and verification use cases. An output schema exists, so the description is not obligated to document the response shape, and what it does say is enough to invoke the tool correctly.

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% for the single parameter, and the description only adds "switch name in PT" plus an example call, which hints the value is a PT device name rather than an ID. That is marginal meaning beyond the schema's string type and "Switch" title, so it compensates only partially for the coverage gap.

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 ("Reads a switch's REAL VLAN database in PT") and the capitalization of REAL signals it returns live device state rather than intended configuration. It also names the counterpart tool (pt_apply_vlan) whose effect it verifies, so an agent can separate it from the apply-side siblings without opening a 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?

Gives two concrete when-to-use scenarios: confirming that a pt_apply_vlan was applied, and discovering a topology you didn't build. It does not state when not to use it or name a competing read tool, so it falls just short of the top mark.

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