Skip to main content
Glama

Build topology

build_topology
DestructiveIdempotent

Replace an entire Cisco Packet Tracer topology in one atomic call: validate devices, links, IOS commands, and PC IP settings before applying, with no changes if anything is invalid.

Instructions

Replace the whole topology in one call. Atomic: if any device, link, IOS block or host IP entry is invalid, nothing changes and the error names the failing item. Same rules as add_device, add_link, configure_device and configure_pc (models are resolved, ports normalized, cables inferred when omitted, IOS commands run in global configuration mode).

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": {
      "devices": "<devices>"
    },
    "name": "build_topology"
  }
}

Input Schema

NameRequiredDescriptionDefault
iosNoIOS commands per router/switch (global configuration mode).
pcsNoHost IP configurations (as configure_pc).
linksNoLinks between device ports (at most 2000).
devicesYesDevices to create (at most 500).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the operation is atomic, an invalid device/link/IOS block/host IP causes zero changes, and the error names the failing item. This meaningfully qualifies the destructiveHint/idempotentHint pair by telling the agent partial writes never occur. It does not describe authorization, limits on repeated calls, or the success response, so not a 5.

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?

Three sentences, zero filler, and the two highest-value facts (whole-topology replace, atomic all-or-nothing) are front-loaded before the reference to the per-item tool rules.

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 large, destructive, four-array mutation tool, the description covers scope, atomicity, failure reporting and the semantics of each array. With no output schema, it leaves the success return shape (counts or resulting topology) undocumented, which is the only notable gap.

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 already 100%, so the baseline is 3; the description earns credit by supplying cross-cutting semantics the schema cannot express — model aliases are resolved, ports are normalized, cables are inferred when omitted, and IOS commands execute in global configuration mode. Those statements tie the four top-level arrays together as one coherent payload.

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 plus scope: "Replace the whole topology in one call." That immediately separates it from the incremental siblings add_device, add_link, configure_device and configure_pc, which it explicitly names as rule-sources rather than alternatives.

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?

Frames the tool as the bulk/whole-topology path versus per-item operations, and tells the agent that the semantics match add_device/add_link/configure_device/configure_pc. It does not explicitly say when NOT to use it (e.g. versus load_topology or reset_topology, or when adding a single device is preferable), so guidance is clear but not exhaustive.

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