Skip to main content
Glama

security_fail2ban_check

Read-only

Fail2ban Jail Config Audit — Audit a fail2ban jail.local / jail.d config, offline. text= is the INI file. Resolves effective values per jail (jail key, else [DEFAULT], else fail2ban defaults) and flags: no enabled jails, missing or disabled SSH jail, bantime 0 or under 10 minutes, permanent bans, maxretry too high or too low, findtime too short for slow brute force, ignoreip that whitelists everything or huge public ranges, hostnames in ignoreip, usedns = yes, dummy or hostsdeny actions, action_mwl log mailing, polling backend, SSH jail without backend = systemd on journald-only systems, no recidive jail or a weak one, bantime.increment off, duplicate sections and an edited jail.conf. Returns OK / REVIEW / WEAK, score, grade, a per-jail table (bantime, findtime, maxretry, port, backend, banaction) and findings with fixes. Price: $0.005 USDC (Base, via x402).

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": "security_fail2ban_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo[DEFAULT] bantime = 5m findtime = 10m maxretry = 12 ignoreip = 127.0.0.1/8 8.0.0.0/8 [sshd] enabled = true port = ssh

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description earns credit for going well beyond them: it discloses the value-resolution precedence (jail key, else [DEFAULT], else fail2ban defaults), enumerates the specific findings raised, and describes the return shape (OK/REVIEW/WEAK, score, grade, per-jail table, findings with fixes). The one unaddressed note is that openWorldHint=true sits in mild tension with the "offline" framing, though the distinction (no live server, but a paid x402 call) is legitimate.

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?

Purpose and the input contract are front-loaded before the finding list, and every clause carries information. The long comma-delimited catalogue of checks is dense and slightly run-on, but trimming it would cost the agent the ability to predict the findings it will get back.

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 an audit tool with no output schema, the description fully covers what is returned and how severity is expressed, so an agent knows what to expect. Remaining gaps are minor: behavior on empty/oversized input and the exact payment flow are left to the user to discover.

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

Parameters4/5

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

With a single fully-described parameter the baseline is 3, and the description adds real meaning: text= is the entire INI file content, not a path, and its sections are resolved with a defined precedence. It does not say what happens if text is omitted, which matters because required_parameters is 0.

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?

"Fail2ban Jail Config Audit — Audit a fail2ban jail.local / jail.d config, offline" gives a specific verb (audit), a specific resource (fail2ban jail config), and a scope qualifier (offline). Against a sibling set of per-format config auditors, the resource name alone is enough to route the agent to the right tool.

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?

It establishes the usage context clearly: pass the INI file via text= and no live host is contacted ("offline"). It does not state explicit exclusions or name alternative tools, but the sibling namespace (one auditor per config format) makes the boundary self-evident.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources