Skip to main content
Glama

Load topology

load_topology
DestructiveIdempotent

Import a saved Packet Tracer topology from a JSON file and replace the current configuration only after full validation; any error keeps the existing topology.

Instructions

Replace the current topology with one read from a file written by save_topology (a bare get_topology JSON object is accepted too). Use an absolute path: relative paths resolve against $MCP_TRACER_DIR if set, else the server's working directory (now /app), which MCP clients often set arbitrarily. "~" is the user's home directory. Atomic: the file is fully parsed and validated (models, ports, links, IOS and host IP rules) before anything changes; on any error the current topology is kept. Max 5 MB.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "load_topology"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile to read. Only .json file names are accepted; .json is added when the file name has no extension. Absolute path recommended.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses atomicity (full parse/validation before any change), what validation covers (models, ports, links, IOS and host IP rules), the failure fallback (current topology is kept), and a 5 MB size cap. The path-resolution behavior of the server is exactly the kind of environment context the destructiveHint annotation cannot convey.

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?

Three sentences, front-loaded with the primary effect, then path resolution, then the atomicity/size guarantees. Dense but each clause carries information an agent needs; minor cost is that the path-resolution sentence is long and packs several rules together.

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?

For a single-parameter destructive replacement tool with annotations covering the safety profile and no output schema, the description supplies everything material: accepted input formats, path resolution, validation scope, failure behavior, and size limit. Nothing an agent needs to invoke it safely is missing.

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 100% so the baseline is 3, but the description adds real meaning beyond the schema's 'Absolute path recommended': the $MCP_TRACER_DIR fallback, working-directory resolution, and home-directory expansion. The extension-appending rule is already in the schema, so this is additive rather than redundant.

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 ('Replace the current topology with one read from a file') and ties the file format to the sibling save_topology, with get_topology JSON explicitly accepted as an alternative input. An agent can distinguish it from reset_topology/build_topology without opening any schema.

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?

Gives clear operative guidance: use an absolute path, where relative paths resolve, how '~' is handled, and which producers' output formats are accepted. It does not explicitly state when to prefer this over reset_topology or build_topology, so it stops short of full alternative routing.

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