Skip to main content
Glama

pt_host_firewall

Toggles a host's IPv4 or IPv6 inbound firewall on or off in Packet Tracer and optionally reports its state. Use it to enable or disable host firewall filtering without editing rules manually.

Instructions

A host's Desktop > Firewall / IPv6 Firewall: switches the inbound firewall on or off (True/False; None = leave alone). Individual rules have no API in PT; edit them in the window (pt_ui_open(host, app="firewall")).

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

Input Schema

NameRequiredDescriptionDefault
ipv4No
ipv6No
showNo
deviceYes
captureNo
interfaceNo
output_dirNoscreenshots

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it usefully discloses that None leaves the setting untouched and that rule-level changes are out of scope. However, it says nothing about the other behavioral traits implied by the schema — screenshot capture (capture/output_dir/interface), whether the device must be powered on, or whether a change takes effect immediately.

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?

Three short sentences, front-loaded with the scope and ending with the pointer to the alternative — very little waste. The only cost is that the sentence about rule editing and the pt_ui_open pointer are somewhat compressed into one line.

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?

An output schema exists, so return values need not be described, and the toggle semantics are covered. Still, for a 7-parameter tool with zero schema coverage, the absence of any explanation for the capture/interface/output_dir cluster leaves an agent guessing about side effects it will trigger.

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

Parameters2/5

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

Schema description coverage is 0% across seven parameters, so the description must compensate; it only clarifies ipv4/ipv6 with the important 'True/False; None = leave alone' semantics. The device, show, capture, interface, and output_dir parameters get no explanation at all, leaving the majority of the surface 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?

States a concrete verb and resource ('switches the inbound firewall on or off') and names the UI location 'Desktop > Firewall / IPv6 Firewall' so the agent knows exactly which setting is touched. It also explicitly distinguishes itself from the sibling pt_ui_open, which handles per-rule editing.

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?

It says when to use it (toggling the inbound IPv4/IPv6 firewall) and when not to (individual rules, which have no API), and routes the agent to the concrete alternative pt_ui_open(host, app="firewall"). Both the positive case and the exclusion are explicit.

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