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

Packet Tracer MCP — Node.js port

pt_read_mac_table

Reads a switch's real MAC address table per VLAN, showing MAC, port, and dynamic/static entries to identify where a device's MAC was learned.

Instructions

Reads a switch's REAL MAC address table, per VLAN: MAC, port, dynamic or static.

Parameters:

  • switch: switch name; empty = every switch.

  • vlan: VLAN number; 0 = every VLAN.

Example: where did SW1 learn PC1's MAC? pt_read_mac_table(switch="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_mac_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
vlanNo
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 burden and does disclose the key behaviors: it returns live device state ('REAL'), the scope of the defaults (empty = every switch, 0 = every VLAN), and the shape of each row (dynamic vs static). It does not mention permissions, latency on large topologies, or whether results are paginated, but for a read-only table dump nothing critical is hidden.

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 purpose sentence is front-loaded, followed by a short parameter block and a single concrete example that doubles as a usage cue. No sentence is redundant and nothing needs reordering.

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 two-parameter, read-only tool with no output schema and no annotations, the definition is nearly self-sufficient: purpose, both parameter semantics, and an example use case are all present. Only the return-value structure and behavior on unknown switch/VLAN values are left unspecified.

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 explains that an empty switch means all switches and that vlan 0 means all VLANs, meaning that is absent from the bare schema and its defaults. It stops short of stating valid VLAN ranges or whether names vs numbers are accepted for switch, leaving a small 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 MAC address table') plus the exact scope ('per VLAN') and the returned fields (MAC, port, dynamic or static). This is immediately distinguishable from sibling reads such as pt_read_arp or pt_read_vlans without opening any schema.

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 conveyed only implicitly through a worked example question ('where did SW1 learn PC1's MAC?'), which does anchor the intended use case well. There is no explicit when-not-to-use guidance and no pointer to alternatives such as the ARP table reader that could also answer end-host location questions.

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