Skip to main content
Glama

List Firewall Bans

hestia_list_firewall_bans
Read-onlyIdempotent

Lists active Fail2Ban and firewall IP bans in HestiaCP to identify which addresses are currently blocked.

Instructions

List active Fail2Ban / firewall IP bans tracked by HestiaCP via v-list-firewall-ban. Use when checking blocked IPs in HestiaCP; prefer hestia_list_firewall_rules for static port rules or hestia_fail2ban_jails (forensics) for per-jail Fail2Ban statistics over SSH. Returns { ok, targetId, command, data (map of active bans) }.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered structurally. The description adds the underlying command and the response envelope { ok, targetId, command, data }, but says nothing about ban expiry, volume of results, permissions, or any failure modes; useful but not rich beyond what annotations and the return-shape note provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with zero padding: purpose first, disambiguation second, return shape last. Every clause carries decision-relevant information for the agent.

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?

Although there is no output schema, the description spells out the response envelope, and the single optional parameter is fully covered by the schema. For a read-only list tool of this complexity, nothing needed to invoke it correctly 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 fully documented in the schema, so the baseline is 3. The description never mentions targetId or its default-to-"default" behavior, adding nothing beyond the schema.

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) plus the exact resource (active Fail2Ban / firewall IP bans) and names the underlying HestiaCP command v-list-firewall-ban, which pins down scope unambiguously against the many other list_* siblings.

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?

Gives an explicit when-to-use (checking blocked IPs in HestiaCP) and routes the agent away to two named alternatives with their distinct purposes: hestia_list_firewall_rules for static port rules and hestia_fail2ban_jails for per-jail forensics over SSH.

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