Skip to main content
Glama

set_host_firewall

Enable or disable IPv4/IPv6 host firewalls and manage permit/deny rules for IP, ICMP, TCP, or UDP by remote address and port.

Instructions

Use the Firewall and IPv6 Firewall apps of a PC, laptop or server: switch each one on or off, add rules (permit or deny ip, icmp, tcp or udp, by remote address and port) and remove them. Returns both switches and the rules in the order the firewall evaluates them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipv4NoSwitch the IPv4 inbound firewall on or off. Omit to leave it as it is.
ipv6NoSwitch the IPv6 inbound firewall on or off. Omit to leave it as it is.
portNoNetwork port. Defaults to `FastEthernet0`.
deviceYesPC, laptop or server name.
add_rulesNoRules to add, in the order the firewall will evaluate them.
remove_rulesNoRules to remove; they must match an existing rule exactly.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipv4Yes
ipv6Yes
portYes
deviceYes
ipv4_rulesYesIPv4 rules as the firewall lists them, in order.
ipv6_rulesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation profile is covered. The description adds that the reply reflects the firewall's evaluation order, but says nothing about permissions needed, reversibility of rule removal, or per-rule atomicity beyond what the schema states, and the return-format sentence is largely redundant with the existing output schema.

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?

Two sentences, operations front-loaded, no padding. The trailing sentence about return values is somewhat expendable given the output schema, but the size is well matched to the tool's breadth.

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?

For a six-parameter mutation tool with full schema coverage, an output schema, and annotations covering safety, the description supplies an adequate overview of what can be configured. The main gap is operational guidance (rule ordering, removal matching, permission needs), which is minor given the structured metadata.

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 100%, so all six parameters (including the nested rule object) are already documented, giving a baseline of 3. The description restates protocol/action/address/port in prose but adds no format or constraint detail beyond the schema (e.g., no guidance on ordering semantics or the exact-match requirement for removals).

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?

States a specific resource (the host's IPv4 and IPv6 Firewall apps) and enumerates the concrete operations: toggling each firewall, adding permit/deny rules, and removing rules. No sibling does firewall management, so confusion risk is low, but the description does not explicitly distinguish itself from neighbors like configure_host, keeping it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent the tool is for a PC/laptop/server's Firewall apps and describes the classes of operation, so usage is implied. However there are no when-to-use/when-not statements, no mention of which parameter combinations are valid, and no routing to an alternative for firewall inspection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.