Skip to main content
Glama

pt_read_routes

Reads the live routing table from one device or all routers, showing prefixes, protocols, next hops, AD, and metrics to verify convergence and spot missing routes.

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

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 full burden and does well: 'Reads' signals a non-mutating operation, the source of truth is disclosed ('RoutingProcess'), and notable derived behavior — cross-router `convergence_gaps` for prefixes missing on dynamic-protocol routers — is called out. It omits prerequisites (that a live simulation/lab must be running) and behavior when the named device 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core statement, then field list, then the cross-router behavior, then parameter and example — a sensible order. Slightly embellished phrasing ('REAL' in caps, parenthetical asides) adds a little noise but nothing is truly redundant.

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 one-parameter read tool with an output schema present, this is nearly complete; even the return fields are summarized despite the schema. The remaining gap is environmental preconditions and failure behavior, which an agent would need before invoking it blindly.

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%, so the description must compensate, and it does: the single parameter is defined as a device name with the exact semantics of the empty default ('empty = every device with a routing table'). No ambiguity remains about how to scope the call.

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?

The description opens with a specific verb and resource ('Reads the REAL routing table of a live device') and enumerates exactly what is returned (prefix, protocol letter/name, next hop, interface, AD, metric). It implicitly maps to `show ip route`, which lets an agent distinguish it from protocol-specific siblings, though it never names an alternative like pt_read_ospf explicitly.

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?

Usage context is clear: read the live routing table, and pass an empty device to inspect every router with a routing table. The worked example ('did OSPF converge? pt_read_routes()') anchors a concrete scenario. There is no explicit when-not guidance or named alternative, which keeps it below a 5.

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