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

Packet Tracer MCP — Node.js port

pt_read_routes

Reads the live routing table of a device or all routers, showing prefix, protocol, next hop, AD and metric, and flags convergence gaps where a dynamic-protocol router lacks prefixes others know.

Instructions

Reads the REAL routing table of a live device (or of every router).

What show ip route shows, read from the device's RoutingProcess: per route its prefix, protocol letter and name (C connected, L local, S static, O OSPF, D EIGRP, R RIP), next hop, interface, AD and metric. Across several routers it lists convergence_gaps: prefixes a router running a dynamic protocol lacks while the others know them.

Parameters:

  • device: device name; empty = every device with a routing table.

Example: did OSPF converge? pt_read_routes()

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

Input Schema

NameRequiredDescriptionDefault
deviceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does most of it: it discloses the data source (RoutingProcess), the exact per-route payload (prefix, protocol letter/name, next hop, interface, AD, metric), and a derived signal (convergence_gaps across routers). It does not say whether the call is read-only in annotation terms, how an unknown/unsupported device name is handled, or anything about errors, which keeps it below a 5.

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 purpose sentence, then payload detail, then a short parameter block, then an example — a clean, scannable structure. The parenthetical enumeration of protocol letters (C, L, S, O, D, R) is slightly heavy but is arguably necessary to decode the output since no output schema exists.

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?

There is no output schema, so the description must explain returns, and it does so concretely down to field level plus the convergence_gaps aggregate. Remaining gaps are minor for a single-parameter read: error behavior for bad device names and whether non-router devices are silently skipped or flagged.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single `device` property, and the description fully compensates by defining the empty-string default's meaning as 'every device with a routing table' — an interpretation the bare string schema cannot convey. This is exactly the value-add the parameter section should supply.

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 the REAL routing table') and pins the scope ('of a live device (or of every router)'), then anchors it to the concrete analog 'show ip route' read from the device's RoutingProcess. That framing separates it from siblings like pt_read_ospf (protocol state) without needing their schemas.

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?

Provides a real selection cue with the worked example 'did OSPF converge? pt_read_routes()', and the convergence_gaps feature makes the multi-router case explicit. It never states when NOT to use it or names an alternative such as pt_read_ospf, so it stops short of full routing guidance.

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