Skip to main content
Glama

pt_read_mac_table

Read a switch's real MAC address table per VLAN to find where a MAC was learned, showing MAC, port, and dynamic/static status.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.7/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 full burden. It does disclose that this is a read operation, that results are scoped per VLAN, and that entries are dynamic or static, which is real behavioral context. It stops short of stating prerequisites (e.g., devices must be reachable/powered), whether "REAL" implies a live query versus cached data, or what happens when a named switch does not exist.

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, the two parameters are given as a compact list, and the closing example directly demonstrates a realistic query. Every line adds information and there is no 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?

For a two-parameter, zero-required read tool with an output schema already covering return values, the description covers purpose, both parameters, sentinel semantics, and a usage example. The only shortfall is operational context (preconditions or failure behavior) that would matter given the absence of annotations.

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 coverage is 0%, so the description must define the parameters and it does: "switch: switch name; empty = every switch" and "vlan: VLAN number; 0 = every VLAN" give the meaning of both the values and the sentinel defaults, which the bare schema (integer default 0, string default "") does not convey. Only the accepted value formats (exact switch name spelling, VLAN range) remain unstated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Reads a switch's REAL MAC address table, per VLAN: MAC, port, dynamic or static" gives a specific verb (reads), a specific resource (MAC address table), and the returned fields, which separates it in intent from siblings like pt_read_arp or pt_read_cdp. It does not name any sibling explicitly, so an agent must infer the boundary from resource names 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?

The worked example ("where did SW1 learn PC1's MAC?") implies the intended use case and shows the call shape, which is better than nothing. However, there is no explicit when-not-to-use guidance and no pointer to alternatives such as pt_read_arp for IP-to-MAC mapping, so an agent must decide the boundary itself.

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