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

Packet Tracer MCP — Node.js port

pt_read_ospf

Reads real OSPF state per router, including router ID, areas, neighbors, roles, and addresses, and flags non-FULL adjacencies, duplicate router IDs, and routers without neighbors.

Instructions

Reads OSPF's REAL state: router-id, areas and neighbours per process.

Each neighbour comes with its state by name (FULL, 2WAY, INIT...), its role (DR/BDR/DROTHER, null on point-to-point), local port and address. Flags neighbours not FULL (2WAY between DROTHERs is normal), duplicate router-ids and routers with OSPF but no neighbours.

Parameters:

  • device: router name; empty = every router.

Example: pt_read_ospf(device="R1")

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

Input Schema

NameRequiredDescriptionDefault
deviceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.1/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 well: it discloses what each neighbour record contains (state name, DR/BDR/DROTHER role, local port and address) and, notably, the interpretation rules — it flags non-FULL neighbours, notes 2WAY between DROTHERs is normal, flags duplicate router-ids and OSPF-enabled routers with no neighbours. It does not state error behavior for an unknown device name or the exact return structure.

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 purpose, then per-neighbour content, then anomaly flags, then the parameter and an example. Every block carries information, though the parenthetical about 2WAY and the trailing example slightly overlap with earlier statements.

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 single-parameter, annotation-free, no-output-schema read tool, the description covers purpose, per-record fields, scoping, and result interpretation. Return format/shape and behavior on an unmatched device name are the remaining gaps, which are modest.

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% and the schema only shows a 'Device' string with an empty default, so the description must compensate. 'device: router name; empty = every router' plus the example pt_read_ospf(device="R1") supplies the meaning of the default value and the expected name form.

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 OSPF's REAL state') and enumerates the entities returned: router-id, areas and neighbours per process. This is plainly distinct from the sibling read tools (ARP, ACL, routes, STP), which cover other protocols/tables.

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 only scoping guidance is that an empty device means every router, which implies per-device vs fleet-wide usage. There is no explicit statement of when to reach for this tool versus another read tool, and no prerequisites or exclusions.

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