Skip to main content
Glama

pt_read_ospf

Reads OSPF state for one or all routers, including router-id, areas, and neighbor roles/states, and flags non-FULL neighbors, 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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4/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 so well: it discloses the interpretation of returned states, notes that role is null on point-to-point, and warns that 2WAY between DROTHERs is normal while also flagging duplicate router-ids and routers with OSPF but no neighbours. It is implicitly read-only but never states prerequisites (device reachability, permissions) or error behavior.

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?

Front-loaded summary sentence, then behavioral caveats, then a labeled parameter list and a one-line example. Every sentence carries operational information; nothing is restated from the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-value shape need not be re-explained, and the description still adds interpretive guidance about the returned states. The lone parameter is fully documented, making the definition complete for a one-argument read tool.

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 description compensates by defining the single parameter's meaning and default semantics ('router name; empty = every router'), which the bare schema does not convey. A worked example reinforces the expected value format.

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?

Names a specific verb and resource ('Reads OSPF's REAL state') plus the concrete contents: router-id, areas, neighbours per process. The OSPF resource is distinct from every listed sibling (routes, STP, ACL, ARP), so an agent can route correctly, though no sibling is named explicitly for contrast.

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?

Scope guidance is present via 'device: router name; empty = every router', which tells the agent how to broaden or narrow the call. There is no explicit when-to-use/when-not-to-use statement versus other read tools (e.g. pt_read_routes), so usage must be inferred from the resource name.

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