Skip to main content
Glama

pt_server_http

Configure HTTP/HTTPS on a Packet Tracer Server-PT by toggling services and editing existing web pages; prevents failed writes when both protocols are off or a page does not exist.

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden and does substantial work: it discloses the PT 9.0.0 hang/crash condition, that such calls change nothing and return ok=false, that failures land in not_applied while other pages still apply, and that turning things off is always safe. It omits any mention of what show/capture/output_dir do behaviorally, which keeps it short of a 5.

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-loads the one-line purpose, then uses tight bullets keyed to parameter names. The nested parenthetical about PT 9.0.0 vs 9.0.1 is slightly dense but every sentence carries operational information.

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?

An output schema exists, so return-shape explanation is not required, yet the description still explains ok=false and not_applied outcomes. For a 7-param mutation tool with no annotations it covers the risky paths well; the remaining gap is the unexplained screenshot-related parameters.

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 coverage is 0% across 7 params, and the description meaningfully documents three of them: pages (replace-only, no creation, example shape), enable/https_enable (True/False/None semantics, default True). It says nothing about device, show, capture, or output_dir, leaving over half the parameters undocumented in both schema and prose.

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?

Opens with a specific verb+resource+location: "A Server-PT's Services > HTTP: switches HTTP/HTTPS and edits pages." That cleanly separates it from siblings like pt_server_dhcp, pt_server_dns and pt_server_service, which target other services on the same device.

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 concrete usage context: use it to toggle HTTP/HTTPS or replace existing page content, and verify results with pt_web_browser(host, "http://<server ip>"). It also states a hard precondition (turn one protocol on in the GUI tab first on PT 9.0.0). No explicit exclusions against sibling tools, but the context is clear.

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