Skip to main content
Glama

pt_query_topology

Query current devices in the active Packet Tracer topology to return names, models, port/IP details, and real cable types for all links. Verify bridge status first for live data.

Instructions

Query current devices in Packet Tracer. Returns name, model, and port/IP info for each device in the active topology, then every link with its real cable type (read from the link itself). Requires bridge connected (use pt_bridge_status to verify).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

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 full burden and does reasonably well: "Query" signals a read operation, the bridge-connected prerequisite and its failure mode are disclosed, and the note that cable type is "read from the link itself" hints that values are sourced from live state rather than configuration records. It does not state what happens if the bridge is disconnected (error vs empty result), which is the main residual gap.

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?

Roughly four short sentences, front-loaded with the purpose before moving to return content and then the prerequisite. Every sentence adds information; the only mild waste is that the return-value sentence partially duplicates the output schema already supplied.

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 read-only, zero-parameter query with an output schema present, the definition covers purpose, return shape, and the bridge prerequisite, so an agent can call it correctly. The description goes slightly beyond what is needed by restating return fields, but omits failure behavior when the bridge is not connected.

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 the baseline is 4. The description correctly describes a parameterless call that operates on the active topology implicitly, with no misleading hints about inputs.

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 uses a specific verb+resource pair ("Query current devices in Packet Tracer") and enumerates what is returned: device name, model, port/IP info, plus links with their real cable type. That is far more than a restatement of the name. It does not explicitly distinguish itself from close siblings such as pt_export_topology or pt_plan_topology, which keeps it out of 5 territory.

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?

It gives a concrete precondition ("Requires bridge connected") and names the sibling to use for checking that precondition (pt_bridge_status), which is genuinely actionable routing guidance. It stops short of saying when to prefer this over pt_export_topology or pt_plan_topology, so no exclusion criteria are provided.

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