Skip to main content
Glama

pt_build_topology

Build a Cisco Packet Tracer topology in one call: add devices, cable links, apply IOS configs, set host addressing, and save the project.

Instructions

Build a whole lab in one call.

devices: [{"name":"R1","type":"router","model":"2911","x":300,"y":100}, ...] links: [{"a":"R1","a_port":"GigabitEthernet0/0","b":"S1","b_port":"GigabitEthernet0/1","cable":"straight"}] ios_configs: {"R1": ["hostname R1", "interface g0/0", "ip address 10.0.0.1 255.255.255.0", "no shutdown"]} hosts: [{"name":"PC1","ip":"10.0.0.10","mask":"255.255.255.0","gateway":"10.0.0.1","dns":null,"port":"FastEthernet0"}] Steps run in that order; each step's error is reported without aborting the rest.

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

Input Schema

NameRequiredDescriptionDefault
hostsNo
linksNo
devicesYes
save_pathNo
ios_configsNo
new_projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one genuinely non-obvious trait: steps execute in a fixed order and a failing step does not abort the rest, so partial results are possible. It stays silent on mutation semantics that matter most for a bulk-write tool, notably whether an existing lab is overwritten, what new_project and save_path actually do, and what the response reports.

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 one-line purpose is front-loaded and every following block is a labelled, directly usable payload example rather than prose. The closing sentence on ordering and error isolation is dense but earns its place; the only waste is the trailing "..." placeholders that hint at more fields without saying which.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex six-parameter bulk-mutation tool with no annotations and no output schema, the description covers the payload shapes well but leaves key gaps: return value/result reporting, the effect of new_project and save_path, and whether devices must reference models available via pt_list_models. An agent could construct a call but not confidently predict its side effects.

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

Parameters3/5

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

Schema description coverage is 0% and the schema types the arrays only as generic objects with additionalProperties, so the examples are the sole source of field names and shape (name/type/model/x/y, a_port/b_port/cable, host ip/mask/gateway/dns/port) — real added value. However, two of the six parameters, save_path and new_project, are never mentioned, and none of the fields are described semantically.

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?

"Build a whole lab in one call" gives a specific verb and resource, and the four labelled payload examples (devices, links, ios_configs, hosts) make the scope concrete. The "whole lab" framing implicitly separates it from single-element siblings like pt_add_device, though no sibling is named.

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?

Usage is only implied: an agent can infer this is the bulk-create path when it has a complete lab spec rather than individual pieces. There is no statement of prerequisites (open project, existing devices, model validity) and no explicit when-not guidance pointing at pt_add_device, pt_connect, or pt_new_project for incremental work.

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