Skip to main content
Glama
Packet Tracer MCP — Node.js port

Packet Tracer MCP — Node.js port

pt_host_ip_config

Configure static or DHCP IP settings on Packet Tracer PCs, laptops, or servers, including IPv4/IPv6 address, mask, gateway, and DNS, and optionally capture the dialog.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.4/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 does well: it states that empty parameters leave settings alone, that DHCP requests a lease and waits up to wait_dhcp_s seconds, that 0.0.0.0 clears gateway/DNS, and that IPv6 addresses are added rather than replacing existing ones. It still omits some mutation behavior such as required device state or error/rollback behavior.

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 purpose and scope, then uses compact parameter bullets. Despite covering many parameters, every line adds useful meaning, and the router/switch alternative is placed clearly at the end.

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 and no output schema, this is substantially complete: it explains core values, defaults, clearing semantics, DHCP waiting, and IPv6 behavior. It is not fully complete because device and output_dir are undocumented, and behavior around applying changes is only partially described.

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 0%, so the description must compensate, and it largely does: it explains mode, mask formats, gateway/DNS clearing, interface defaults, IPv6 modes/address formats, wait_dhcp_s range, and show/capture. However, it does not document the required device parameter or output_dir, leaving meaningful gaps among 15 parameters.

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 clearly states that this tool configures IP settings on a PC/Laptop/Server, listing static/DHCP, mask, gateway, DNS, and IPv6. It also explicitly distinguishes the host use case from routers/switches by pointing those to pt_cli.

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?

It gives a clear when-not-to-use rule: for routers/switches use pt_cli instead. It also implies use for PCs/laptops/servers and notes that show/capture depends on pt_ui_mode, but it does not spell out broader prerequisites or all alternative configuration paths.

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