Skip to main content
Glama

Create a Full Network Topology

create_full_network_topology

Build or rebuild a Packet Tracer network in one call from JSON: add devices, links, host IP settings, and IOS configs while preserving existing devices.

Instructions

Build a whole network in one call into the open Packet Tracer file (existing devices are kept). Same format export_network_topology returns, so exports can be rebuilt. Steps run in order: devices (+modules), links, host IP settings, then IOS configs; errors are collected, not fatal.

Format: { "description": "OSPF lab", "devices": [ {"name": "R1", "device_type": "router", "model": "2911", "x": 100, "y": 100, "modules": [{"slot": "0/0", "module": "HWIC-2T"}], "config": "hostname R1\ninterface Gi0/0\n ip address 192.168.1.1 255.255.255.0\n no shutdown"}, {"name": "SW1", "device_type": "switch", "model": "2960-24TT", "x": 300, "y": 100}, {"name": "PC1", "device_type": "pc", "model": "PC-PT", "x": 500, "y": 100} ], "links": [{"device_a": "R1", "port_a": "GigabitEthernet0/0", "device_b": "SW1", "port_b": "GigabitEthernet0/1"}, {"device_a": "PC1", "port_a": "FastEthernet0", "device_b": "SW1", "port_b": "FastEthernet0/1"}], "hosts": [{"name": "PC1", "port": "FastEthernet0", "ip_address": "192.168.1.10", "subnet_mask": "255.255.255.0", "default_gateway": "192.168.1.1"}] } Use full port names. cable defaults to "auto". Discover models with get_device_models and modules with get_device_model_details.

Examples:

  • "Build a 3-router OSPF lab with a LAN behind each router"

  • "Recreate the topology I exported earlier"

  • "Set up a router-on-a-stick lab with two VLANs"

Input Schema

NameRequiredDescriptionDefault
topologyYesTopology object (or its JSON string): description, devices, links, hosts -- see the docstring

Output Schema

NameRequiredDescriptionDefault
linksNo
errorsNo
devicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Adds real behavior beyond the annotations: execution order (devices+modules, links, host IPs, then IOS configs), partial-failure semantics ('errors are collected, not fatal'), and the additive nature ('existing devices are kept') which clarifies the non-destructive hint. It also flags an operational gotcha ('Use full port names') and a default ('cable defaults to auto') that an agent would otherwise have to discover by trial.

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?

The critical scope and retention caveat are front-loaded before the format block, and each section (behavior, format, discovery hints, examples) earns its place. The JSON example is long but is the highest-value content for a single-parameter bulk tool; minor trimming of the redundant host entry naming PC1 twice could still be done.

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 high-complexity bulk-mutation tool, the description covers preconditions (open file), retention behavior, ordering, error handling, format, and how to resolve model/module values. An output schema exists, so return values needn't be explained, and nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but the schema leaves most nested fields undocumented, so the description carries the real load: a full worked JSON body showing device/link/host shapes, the required device fields (name, device_type, model, x/y) and config-as-IOS-text usage. It exceeds the baseline by explaining field intent and cross-referencing get_device_models for model values.

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?

Opens with a specific verb+resource+scope: 'Build a whole network in one call into the open Packet Tracer file', and immediately clarifies the retention semantics ('existing devices are kept'). It also distinguishes itself from the export sibling by naming the inverse relationship ('Same format export_network_topology returns'), so an agent can tell bulk-creation apart from the incremental add_device_to_network/connect_two_devices path.

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 concrete selection contexts through the three examples ('Build a 3-router OSPF lab', 'Recreate the topology I exported earlier', 'router-on-a-stick lab with two VLANs') and the export-rebuild use case. It also routes the agent to sibling discovery tools (get_device_models, get_device_model_details) before calling. It stops short of explicitly saying when NOT to use it versus add_device_to_network/connect_two_devices for single-object edits.

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