Skip to main content
Glama

Get topology

get_topology
Read-only

Retrieves the current topology as JSON, including devices, links, IOS commands, and host IP configurations for validating or reviewing a Packet Tracer design.

Instructions

Return the current topology as JSON: devices (with the position that will be emitted; autoPlaced: true when the auto layout computed it), links (with the cable that will be emitted), IOS commands and host IP configurations.

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": "get_topology"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description does add genuine context beyond them: what fields come back, the preview semantics ('the position that will be emitted', 'the cable that will be emitted'), and the meaning of autoPlaced. It still says nothing about behavior on an empty or unbuilt topology, or about whether calling it triggers layout.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is a single front-loaded sentence with no filler, and the payload list leads. However, the nested parentheses around autoPlaced and the emitted cable make the sentence harder to parse than necessary, and the 'will be emitted' phrasing is vague without naming the export step.

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 carries the burden of describing return values, and it does list the four top-level payload sections plus the autoPlaced flag semantics. Combined with annotations covering read-only behavior, this is nearly complete; only the empty-topology case and the relationship to the auto-layout step remain unstated.

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?

The tool takes zero parameters, so there is no parameter semantics to document; the baseline for a no-argument tool applies. The description instead spends its words on describing the return shape, which is the right allocation.

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 pairs the verb 'Return' with a specific resource ('the current topology') and enumerates the payload it emits: devices, links, IOS commands, host IP configurations. That is enough to separate it from mutation siblings such as add_device or configure_device, though it never names build_topology or load_topology as the alternative.

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?

No explicit when-to-use or when-not-to-use statement, and no sibling is named. Usage is only implied by the phrase 'that will be emitted', which hints this is a preview of pending export state rather than a mutating step. An agent must infer that this tool is the read step after build/load.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.