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

Packet Tracer MCP — Node.js port

pt_server_http

Toggles HTTP/HTTPS services and replaces the content of existing pages on a Packet Tracer Server-PT device, letting you edit served web pages directly.

Instructions

A Server-PT's Services > HTTP: switches HTTP/HTTPS and edits pages.

  • pages: {"index.html": "..."} replaces the content of pages that ALREADY exist on the server (a Server-PT has index.html). New pages cannot be created: PT 9.0.0 answers "File not exist" (9.0.1 unverified). Such a page comes back in not_applied with ok=false; the other pages and switches are still applied.

  • enable / https_enable: True/False/None (None = leave alone); enable defaults to True.

  • PT 9.0.0 hangs and crashes if one call turns HTTP/HTTPS on or writes pages while both are off, so such a call changes nothing and returns ok=false: turn one on in the server's Services > HTTP tab first. Turning things off is always allowed. Check it with pt_web_browser(host, "http://").

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

Input Schema

NameRequiredDescriptionDefault
showNo
pagesNo
deviceYes
enableNo
captureNo
output_dirNoscreenshots
https_enableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.2/5.0
Behavior5/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 so well: it discloses that only existing pages can be replaced, that new pages fail with ok=false and land in not_applied while other changes still apply, that None means leave alone, and that PT 9.0.0 hangs and crashes when enabling or writing pages while both protocols are off. These are exactly the non-obvious behaviors an agent needs before calling.

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?

The purpose is front-loaded in one line, followed by bulleted parameter notes and a verification hint, so it scans well. A few clauses (the 9.0.1 unverified aside) are slightly more than strictly needed, but nearly every sentence carries operational value.

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

Completeness3/5

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

For a 7-parameter mutation tool with no annotations and no output schema, the description covers the risky behaviors thoroughly but omits the meaning of device, capture, and output_dir, which an agent must infer from the schema alone. It is adequate for the core HTTP/page workflow but not complete for the whole signature.

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

Parameters3/5

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

Schema description coverage is 0% across 7 parameters, and the description only explains pages, enable, and https_enable, including the None semantics and the enable default. It says nothing about device, show, capture, or output_dir, so it partially compensates for the coverage gap but leaves four parameters undocumented.

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 a specific verb set (switches HTTP/HTTPS, edits pages) and a precise resource (a Server-PT's Services > HTTP), which cleanly separates it from siblings like pt_server_dns and pt_server_dhcp. An agent can identify the tool's job without opening the schema.

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 concrete prerequisite (turn HTTP or HTTPS on in the Services > HTTP tab first) and a verification path via pt_web_browser(host, "http://<server ip>"). It stops short of naming explicit alternatives or when-not-to-use cases, so it is clear context rather than full routing guidance.

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