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

Packet Tracer MCP — Node.js port

pt_read_stp

Reads Spanning Tree's actual state per VLAN and switch to identify the root bridge, root ID, path cost, and root port, and flags VLANs where switches disagree on the root (not converged).

Instructions

Reads Spanning Tree's REAL state per VLAN: who the root bridge is.

Per switch and VLAN: whether it is the root, the root ID (priority and MAC), and where available its bridge ID, priority, root path cost and root port. Across switches it flags VLANs where they disagree on the root (not converged). PT 9 does not expose per-port STP state or role.

Parameters:

  • switch: switch name; empty = every switch.

  • vlans: VLAN numbers to read; empty = every VLAN in the switch.

Example: pt_read_stp(vlans=[1, 10])

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

Input Schema

NameRequiredDescriptionDefault
vlansNo
switchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.2/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 behavioral burden and does so well: it discloses the returned per-switch/per-VLAN fields, the cross-switch non-convergence flagging, and an explicit simulator limitation ('PT 9 does not expose per-port STP state or role'). It does not state error behavior for an unknown switch name, which is a minor omission for a read-only tool.

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 core purpose is front-loaded in the first sentence, followed by a results paragraph, a limitation note, and a compact parameter list with an example. Every sentence adds information; nothing is redundant filler.

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 no output schema and no annotations, the description must explain return values, and it does in sufficient detail. The remaining gaps are modest: no error/failure behavior for bad switch names, and no clarification of the contrast implied by capitalizing 'REAL' (e.g., actual root election state versus configured priority).

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 description coverage is 0%, so the description must compensate, and it does: it defines both parameters and their empty-value semantics ('switch: switch name; empty = every switch', 'vlans: ... empty = every VLAN in the switch') plus a concrete example call. Format details, such as whether VLAN lists accept ranges, are not covered.

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 Spanning Tree's REAL state per VLAN: who the root bridge is.' It then enumerates exactly what is reported (root status, root ID/priority/MAC, bridge ID, root path cost, root port) and how cross-switch disagreement is surfaced, so an agent knows precisely what this tool returns.

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?

Usage is implied rather than stated: the tool is the read counterpart to configuration tools, and the two parameters' empty-value conventions ('empty = every switch', 'empty = every VLAN') guide invocation. However, there is no explicit when-to-use guidance, no mention of when not to use it, and the obvious alternative (pt_apply_stp) is never named.

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