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

Packet Tracer MCP — Node.js port

pt_server_dhcp

Creates or edits a DHCP pool on a Packet Tracer server and turns the DHCP service on or off, with options to set gateway, DNS, IP range, mask, and exclusions.

Instructions

A Server-PT's Services > DHCP: creates or edits a pool and switches it on.

  • pool: name ("serverPool" is the factory one: editing it is the most common case). Touched only if a pool field below is given; if it doesn't exist it is created with those values.

  • gateway, dns, start_ip, mask ("255.255.255.0" or "24"), max_users, tftp, wlc: empty/0 = leave alone. PT's script API has no TFTP/WLC setter, so tftp/wlc always come back in not_applied (set them in the GUI). Every field is read back: any PT does not hold comes back in not_applied, with ok=false.

  • enable: True = Service On (default), False = Off, None = leave alone.

  • remove_pool: deletes that pool (alone, it creates nothing).

  • exclude: ranges to exclude, ["192.168.1.1-192.168.1.9"]; they apply to the port's DHCP server, never create or edit a pool.

  • interface: the server's port (default: the first one). Hosts use it with pt_host_ip_config(mode="dhcp").

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_server_dhcp"
  }
}

Input Schema

NameRequiredDescriptionDefault
dnsNo
wlcNo
maskNo
poolNoserverPool
showNo
tftpNo
deviceYes
enableNo
captureNo
excludeNo
gatewayNo
start_ipNo
interfaceNo
max_usersNo
output_dirNoscreenshots
remove_poolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.1/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 a solid job: it discloses the PT script API limitation for TFTP/WLC (always returned in not_applied), that every field is read back and unsupported values yield not_applied with ok=false, that remove_pool deletes the pool outright, and that enable defaults to On. It leaves the side effects of show, capture, and output_dir (screenshots/GUI) completely unexplained, which is a meaningful gap for a mutating tool.

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?

Front-loaded one-line purpose followed by a per-parameter bullet structure that maps directly onto the call. Nearly every line earns its place, though the tftp/wlc caveat is somewhat buried mid-list rather than flagged as a known limitation up front.

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

Completeness5/5

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

For a 16-parameter, annotation-free mutation tool with no output schema, the description supplies the operational contract an agent needs: which fields are no-ops, create-vs-edit semantics, delete semantics, partial-failure signaling via not_applied/ok=false, and the downstream DHCP client tool. Only the GUI/screenshot parameters remain unaccounted for, which is peripheral to correct invocation.

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% across 16 parameters, so the description must compensate, and it does for 12 of them: pool semantics (factory default, create-if-missing), empty/0 = leave alone, mask accepting either "255.255.255.0" or "24", exclude range syntax with an example, and interface defaulting to the first port. The remaining four (device, show, capture, output_dir) get no explanation anywhere.

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?

Opens with a specific verb+resource pair ("creates or edits a pool and switches it on") anchored to a concrete location ("Server-PT's Services > DHCP"), and explicitly separates the three sub-behaviors (pool edit/create, remove_pool delete, exclude ranges). It does not, however, differentiate itself from the sibling pt_configure_dhcp_server, which an agent could plausibly confuse with this tool.

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?

Gives real when-to guidance: pool is only touched if a field is supplied, "serverPool" is the factory pool and the most common edit case, empty/0/None mean leave-alone, and remove_pool creates nothing. It also points to the companion call (pt_host_ip_config(mode="dhcp")) for hosts. It stops short of stating when to prefer this over pt_configure_dhcp_server or how to handle a purely read/inspect need.

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