Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_TRACER_DIRNoOptional directory used by save_topology, load_topology and export_script to resolve relative paths. If unset, relative paths resolve against the server's working directory. A leading ~ means your home directory; absolute paths always work.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
add_deviceA

Add a device to the topology. model must be a PTBuilder model key; common aliases are resolved and the result shows the canonical key ("4331" -> ISR4331, "WRT300N" -> Linksys-WRT300N, "ASA5505" -> 5505, "IP Phone 7960" -> 7960, "PC" -> PC-PT). Routers: 1841, 1941, 2811, 2901, 2911, ISR4321, ISR4331. Switches: 2950-24, 2950T-24, 2960-24TT. Multilayer switches: 3560-24PS (preferred), 3650-24PS (ships without a power supply in PT). Hosts: PC-PT, Server-PT, Laptop-PT, Printer-PT. Other: Hub-PT, Cloud-PT, AccessPoint-PT, Linksys-WRT300N, 5505, 5506-X, 7960. The pt://catalog resource lists every accepted key and its ports. Names must be unique (case-insensitive), 1-64 characters: letters, digits, spaces and . _ ( ) / -, starting with a letter or digit. At most 500 devices. Omit x and y to place the device automatically. The result lists the device's ports.

add_linkA

Connect two device ports with a cable. Use Packet Tracer interface names; abbreviations are expanded (Gi0/0 -> GigabitEthernet0/0, Fa0/1 -> FastEthernet0/1, Se0/0/0 -> Serial0/0/0). Each port can belong to only one link, and the two ends must be on different devices. Onboard ports: 1841: FastEthernet0/0-1; 1941: GigabitEthernet0/0-1; 2811: FastEthernet0/0-1; 2901: GigabitEthernet0/0-1; 2911: GigabitEthernet0/0-2; ISR4321: GigabitEthernet0/0/0-1 (unverified); ISR4331: GigabitEthernet0/0/0-2 (unverified); 2950-24: FastEthernet0/1-24 (unverified); 2950T-24: FastEthernet0/1-24, GigabitEthernet0/1-2 (unverified); 2960-24TT: FastEthernet0/1-24, GigabitEthernet0/1-2; 3560-24PS: FastEthernet0/1-24, GigabitEthernet0/1-2 (unverified); 3650-24PS: GigabitEthernet1/0/1-24 (unverified); PC-PT: FastEthernet0; Server-PT: FastEthernet0; Laptop-PT: FastEthernet0 (unverified); Printer-PT: FastEthernet0 (unverified). Routers have no onboard serial ports and modules cannot be added yet, so connect routers over Ethernet. Omit cable to let the server infer it: straight between unlike devices (router/host <-> switch/hub), cross between like devices (switch-switch, router-router, router-PC, PC-PC), straight from an access point to a switch/hub and cross to a router/host, serial for Serial ports, console for Console/RS232 ports.

remove_deviceA

Remove a device together with its links, IOS commands and IP configuration.

remove_linkA

Remove the link that uses the given device port (a port belongs to at most one link).

rename_deviceA

Rename a device; its links, IOS commands and IP configuration follow. IOS hostname commands are not changed (use configure_device with replace: true to update them).

configure_deviceA

Add IOS configuration commands to a router, switch or multilayer switch (not PCs, servers, ASAs, access points or wireless routers). Commands run in GLOBAL CONFIGURATION MODE: do not send enable, configure terminal, end or write memory (PTBuilder saves automatically); such lines are dropped and reported. Leave sub-modes (interface, router ospf, line) with exit. Use full interface names (interface GigabitEthernet0/0). Commands are appended to earlier ones; set replace: true to overwrite the device's previous commands. Invalid commands fail silently in PT.

configure_pcA

Set the IPv4 configuration of a host: PC-PT and Server-PT (Laptop-PT and Printer-PT are accepted but unverified). PTBuilder configures only the FastEthernet0 interface. dhcp: true enables DHCP (ip, mask and gateway are ignored; dns is kept). Otherwise ip and mask are required; mask accepts 255.255.255.0 or /24. Replaces the host's previous IP configuration. For routers and switches use configure_device instead.

build_topologyA

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).

get_topologyA

Return the current topology as JSON: devices (with the position that will be emitted; autoPlaced: true when the auto layout computed it), links (with the cable that will be emitted), IOS commands and host IP configurations.

validate_configA

Check the topology before generate_script. Errors mean the PTBuilder script would fail or abort (e.g. PORT_KIND_MISMATCH, CABLE_INCOMPATIBLE, DUPLICATE_PORT, IOS_ON_NON_IOS) and block generate_script; warnings mean it may not work as intended in Packet Tracer (e.g. UNVERIFIED_PORT, CABLE_SUSPICIOUS, GATEWAY_NOT_IN_SUBNET, ISOLATED_DEVICE). Each issue has a code and a fix.

generate_scriptA

Generate the PTBuilder JavaScript for the current topology. Tell the user to open a new, empty Packet Tracer workspace (File > New), open Extensions > Builder Code Editor, paste the script and click Run. Runs validation first: errors block generation unless force: true. The script is the first text block; warnings, if any, are a second text block.

reset_topologyA

Delete every device, link and configuration.

save_topologyA

Save the current topology (devices, links, IOS commands, host IP configurations) to a JSON file that load_topology can read back. 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. Missing folders are created. Refuses to replace an existing file unless overwrite: true. The result shows the absolute path written.

load_topologyA

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.

export_scriptA

Write the PTBuilder script for the current topology to a file, for users who prefer a file to copying from chat. 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. Same validation as generate_script: errors block the export unless force: true. Refuses to replace an existing file unless overwrite: true. The user then copies the whole file into Extensions > Builder Code Editor in a new, empty Packet Tracer workspace and clicks Run.

Prompts

Interactive templates invoked by user choice

NameDescription
vlan_labStep-by-step build of a VLAN lab: a 2960 access switch, PCs per VLAN and optional inter-VLAN routing (router-on-a-stick on a 2911 or SVIs on a 3560), with the full IOS configuration and addressing.
ospf_labStep-by-step build of a single-area OSPF lab: 2911 routers in a chain or ring, one PC LAN per router, with /30 transit links, router IDs and network statements.
dhcp_labStep-by-step build of a DHCP lab: a 2911 gateway, a 2960 switch and DHCP-client PCs, served by an IOS DHCP pool on the router or by a Server-PT.
nat_labStep-by-step build of a NAT lab: inside PCs behind a 2911 edge router, an ISP router and a web server, with PAT, static or dynamic NAT, the ACL and the routes.

Resources

Contextual data attached and managed by the client

NameDescription
catalogPTBuilder model keys with category, IOS/host-IP support, onboard ports and their verification status, other valid PTBuilder model keys without catalog data, and the cable types. Read before choosing models and ports.

TDQS

A4.1/5.0

Scored across 15 tools

Disambiguation4/5

Most tools have distinct purposes by resource and action, and descriptions clarify boundaries well. A couple of pairs overlap conceptually: build_topology versus the incremental add/configure tools, and generate_script versus export_script, though their different workflows and outputs make misselection unlikely.

Naming Consistency5/5

All tool names use consistent snake_case verb_noun phrasing such as add_device, remove_link, configure_pc, validate_config, and generate_script. The pattern is predictable throughout with no mixed conventions.

Tool Count5/5

Fifteen tools is within the well-scoped range and appropriate for a topology builder covering device/link CRUD, configuration, validation, script generation, and persistence. Each tool serves a clear workflow rather than being redundant filler.

Completeness4/5

The surface covers the full core lifecycle: create/remove devices and links, configure devices and PCs, validate, generate/export scripts, save/load, and reset. Minor gaps remain, such as no dedicated move/reposition operation and explicitly unsupported module additions, but these are workaroundable or documented limitations.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues