Skip to main content
Glama

List Firewall Rules

hestia_list_firewall_rules
Read-onlyIdempotent

Lists active HestiaCP firewall rules with action, protocol, port, IP/ipset, and comment so you can audit configured firewall settings.

Instructions

List active HestiaCP firewall rules (action, protocol, port, IP/ipset, comment) via v-list-firewall. Use when reviewing configured HestiaCP firewall rules; prefer hestia_list_firewall_bans for active Fail2Ban bans, hestia_list_firewall_ipsets for named IP sets, or hestia_port_exposure_audit (serverops) to cross-check rules against live listening sockets. Returns { ok, targetId, command, data (map keyed by rule ID) }.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hestia_list_firewall_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetIdNoConfigured target identifier (defaults to "default").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety bar is low. The description adds real context beyond them: the backing command (v-list-firewall) and the exact return shape including the rule-ID-keyed map. Pagination or empty-result behavior is not stated, keeping it just under 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-loaded with purpose, then usage routing, then return shape -- a logical order. Three dense sentences with no filler; the parenthetical field list and return-shape sentence are information-bearing rather than redundant, though the sentence is quite packed.

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

Completeness5/5

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

With no output schema present, the description supplies the return shape ({ ok, targetId, command, data }) and the parameter schema is fully covered. Nothing essential for correct invocation or interpreting results is missing.

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% and the single targetId parameter is documented in the schema, so baseline is 3. The description adds no extra detail about targetId meaning or default handling beyond what the schema already provides.

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 (List) and resource (active HestiaCP firewall rules), lists the returned fields, and names the exact sibling tools it is not (bans, ipsets, port_exposure_audit). An agent can distinguish it from all named alternatives without opening schemas.

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 states 'Use when reviewing configured HestiaCP firewall rules' and routes each alternative case to a specific tool (bans, ipsets, port exposure audit). Both when-to-use and alternatives are spelled out with no inference required.

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