Skip to main content
Glama

fail2ban_unban

Unban an IP address from fail2ban. Resolve lockouts or correct false positives across specific jails or all monitored hosts on Mia.

Instructions

Unban an IP in fail2ban (all jails, or one) on hosts — e.g. after locking yourself out or a false positive.

Input Schema

NameRequiredDescriptionDefault
ipYes
jailNo
applyNofalse (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash
targetNohosts: all | <host> | <glob nl-*> | <group> | role:<edge|remnanode|panel|docker> | tag:<tag>; comma-separated, !x excludesall
planHashNoplanHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it only states the purpose. It doesn't disclose that this mutates firewall/ban state, that it defaults to a dry run requiring apply/planHash, or any permission or failure behavior; the dry-run mechanism is only visible in the 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?

A single front-loaded sentence: verb and resource lead, scope follows, and the motivating example closes without waste. Compact and easy to scan, though the trailing example is optional.

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?

For a 5-parameter mutation tool with no annotations and no output schema, the description covers only purpose and a hint of context. The schema carries the critical dry-run/planHash mechanics, but behavioral facts an agent needs (state changes, error cases, whether the ban must exist) are absent.

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 a middling 60%, with ip and jail carrying only patterns and no prose. The description partially compensates by clarifying the jail parameter ('all jails, or one') and the host targeting ('on hosts'), but says nothing about apply/planHash/target beyond what the schema already documents.

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?

The description gives a specific verb (unban), resource (an IP in fail2ban), and scope (all jails, or one) applied across hosts. An agent can tell exactly what this does, and the parenthetical disambiguates the jail scoping rather than leaving it to the schema alone.

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 supplies a clear use context — 'after locking yourself out or a false positive' — which frames when an agent should reach for this tool. It does not name explicit exclusions or alternatives (e.g. ban-side tools), so it stops short of full routing guidance.

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