Skip to main content
Glama

pt_host_ip_config

Configure IPv4/IPv6 settings on Packet Tracer PCs, laptops, and servers: set static or DHCP addresses, masks, gateways, DNS, and IPv6, then optionally open or capture the IP configuration window.

Instructions

Desktop > IP Configuration (and Config > Global) of a PC/Laptop/Server: static IP or DHCP, mask, gateway, DNS, IPv6 (automatic or static).

Parameters (empty = leave alone):

  • mode: "static" | "dhcp". With "dhcp" a lease is requested and the tool waits up to wait_dhcp_s seconds (0-120) for it.

  • ip, mask: IPv4 and mask ("255.255.255.0" or "24").

  • gateway, dns: IPv4. "0.0.0.0" to clear.

  • interface: port (default: the first Ethernet, or Wireless0).

  • ipv6_mode: "auto" (SLAAC) | "off".

  • ipv6_address: static IPv6 with its prefix, "2001:db8:0:1::10/64". Added to the port (it does not remove other addresses) and read back.

  • ipv6_gateway, ipv6_dns.

  • show / capture: opens Desktop > IP Configuration (per pt_ui_mode).

For routers/switches use pt_cli (ip address ... on the interface).

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": {
      "device": "<device>"
    },
    "name": "pt_host_ip_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
ipNo
dnsNo
maskNo
modeNo
showNo
deviceYes
captureNo
gatewayNo
ipv6_dnsNo
interfaceNo
ipv6_modeNo
output_dirNoscreenshots
wait_dhcp_sNo
ipv6_addressNo
ipv6_gatewayNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses important behavior: DHCP lease wait up to wait_dhcp_s, empty parameters preserving existing settings, IPv6 addresses being added rather than replacing others, and UI opening via show/capture. It does not warn about connectivity disruption or reversibility when changing IP settings, which is a notable gap for a network-configuration mutation tool.

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?

The description is front-loaded with the target and purpose, then uses a compact parameter list that earns its space given 15 parameters. There is no filler or redundant restatement of the tool name.

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 15-parameter mutation tool with no annotations, the description is substantially complete: it covers most parameter semantics, DHCP waiting behavior, IPv6 behavior, and the pt_cli alternative. It falls short by omitting device and output_dir semantics and by not addressing risk or error behavior when reconfiguration fails.

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 description coverage is 0%, so the description must compensate and does so for most parameters: mode values, mask formats, 0.0.0.0 clearing semantics, interface default, IPv6 syntax, wait_dhcp_s range, and show/capture behavior. However, the required device parameter and output_dir are not explained.

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?

The description names the exact UI area and device class (Desktop > IP Configuration for PC/Laptop/Server) and enumerates the configurable resources: static IP/DHCP, mask, gateway, DNS, and IPv6. It also distinguishes the tool from pt_cli by stating that routers/switches should use pt_cli instead.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly routes routers/switches to pt_cli and implies this tool is for host IP configuration. It also gives operational guidance such as empty parameters leaving settings alone and show/capture opening the UI per pt_ui_mode.

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

Deploy Server

Other Tools