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

Packet Tracer MCP — Node.js port

pt_configure_dhcp_server

Creates or edits a DHCP pool on a Server-PT, validates settings against the subnet, switches DHCP service on, and reads every pool back.

Instructions

Creates or edits a DHCP pool on a Server-PT (GUI: Services > DHCP), validated against its subnet, switches the service on and reads every pool back. No CLI (a Server-PT has none). Router DHCP: plan with dhcp=True or CLI ip dhcp pool. Exclusions or showing the page on screen: pt_server_dhcp (same JS backend, server_dhcp_js).

The server needs a static IP inside the pool's subnet (else warning DHCP_SERVER_NO_IP). PT never leases the server's own IP but DOES lease the gateway's if the range covers it.

  • device: the Server-PT.

  • network / mask: pool subnet ("192.168.10.0", "255.255.255.0"). No network = read-only.

  • gateway / dns: what clients receive (empty dns = left alone).

  • start_ip: first IP handed out; empty = after a .1 gateway, else the first host.

  • max_users: number of IPs; 0 = to the end of the subnet.

  • pool_name: default "serverPool" (the factory pool the GUI shows); another name creates or edits that pool, never duplicates.

  • port: serving port (default FastEthernet0). enabled: service On/Off.

  • drop_factory_pool: with a custom pool_name, delete the factory serverPool if it was never configured (it would hand out .1, the gateway).

  • remove: delete pool_name instead. dry_run: validate and return the JS only.

Example: pt_configure_dhcp_server(device="DHCP-A", network="192.168.10.0", gateway="192.168.10.1", dns="8.8.8.8", start_ip="192.168.10.3")

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

Input Schema

NameRequiredDescriptionDefault
dnsNo
maskNo255.255.255.0
portNoFastEthernet0
deviceYes
removeNo
dry_runNo
enabledNo
gatewayNo
networkNo
start_ipNo
max_usersNo
pool_nameNoserverPool
drop_factory_poolNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.8/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and delivers: it validates against the subnet, switches the service on, reads every pool back, and surfaces warning DHCP_SERVER_NO_IP. It also discloses non-obvious behaviors such as PT leasing the gateway's IP but never the server's own, and that drop_factory_pool deletes an unconfigured factory pool that would hand out the gateway address.

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 with purpose and outcome, then a scannable bullet list of parameters and a concrete example call. The opening paragraph is somewhat dense and packs validation behavior alongside the purpose statement, but nearly every clause carries information an agent needs.

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?

Given 13 parameters, no annotations, no output schema, and 0% schema coverage, the description supplies purpose, alternatives, per-parameter semantics, and a worked example. Return values are only loosely described ('reads every pool back', 'return the JS' for dry_run), which leaves minor ambiguity about the response shape, but nothing essential to invoking it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0% and the description compensates fully, defining all 13 parameters including defaults and edge cases: empty network = read-only, empty start_ip = after .1 gateway else first host, max_users 0 = to end of subnet, pool_name default serverPool, drop_factory_pool default true only applies with a custom name. That is meaning well beyond the bare schema types and defaults.

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?

States a specific verb and resource ('Creates or edits a DHCP pool on a Server-PT') plus the exact GUI location (Services > DHCP). It also names the sibling pt_server_dhcp and the router alternative, so an agent can distinguish the target device type and escape route immediately.

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?

Explicitly routes exclusions and on-screen display to pt_server_dhcp, and routers to plan dhcp=True or CLI `ip dhcp pool`, and notes Server-PT has no CLI. The read-only path (no network) and the removal path are also stated, so an agent knows which mode selects which behavior.

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