Skip to main content
Glama

csf_unblock_ip

Remove an IP from CSF/LFD firewall bans by clearing permanent deny and temporary blocks. Optionally whitelist the IP temporarily to prevent re-banning on next connection.

Instructions

Unblock an IP in CSF/LFD (permanent deny + temporary ban).

This is the primary 'unlock from firewall' action. It:

  1. Runs the plugin Quick Unblock (action=kill) — csf -dr + csf -tr + drop states

  2. Also sends qrm when the plugin supports it

  3. Optionally adds a temporary allow so the next connection is not re-banned

Pair with bfm_unblock_ip if DirectAdmin Brute Force Monitor also listed the IP.

Args: ip: IPv4 or IPv6 to unblock. also_allow: After unblock, temporarily whitelist the IP. allow_ttl_seconds: TTL for the optional temporary allow (default 1h). comment: Note stored next to the allow rule. confirm: Required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes
reasonNo
commentNounblocked-via-directadmin-mcp
confirmNo
also_allowNo
idempotency_keyNo
allow_ttl_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden, and it does so well: it discloses the exact commands run (csf -dr, csf -tr, drop states), the optional qrm call, and the temporary-allow behavior that prevents re-banning. It does not mention permissions or reversibility, but the command-level detail is strong and goes well beyond a generic 'unblocks an IP.'

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?

The description is structured with a one-line summary, a numbered behavioral breakdown, an alternative-tool hint, and an Args list. It is slightly longer than strictly necessary, but every section earns its place. The most important information is front-loaded in the first sentence.

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?

The description covers the core behavior, the optional temporary allow, and the BFM pairing, and an output schema exists so return-value documentation is not required. But the tool has 7 parameters and no annotations, and two parameters are unexplained. It also lacks explicit guidance around sibling tools like csf_remove_allow or firewall_unblock_everywhere, making it good but not fully complete.

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 0%, so the description must compensate. It documents ip, also_allow, allow_ttl_seconds, comment, and confirm, including the important 'confirm: Required' semantic. However, it omits two schema parameters entirely: reason and idempotency_key. The agent would not know what those do, which is a meaningful gap given no schema descriptions exist.

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 opens with a specific verb and resource: 'Unblock an IP in CSF/LFD (permanent deny + temporary ban).' It also identifies itself as 'the primary unlock from firewall action,' which clearly distinguishes it from the sibling bfm_unblock_ip and other firewall management tools. The numbered command-level steps reinforce exactly what the tool does.

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?

The description gives clear usage context by calling itself the primary firewall-unblock action and explicitly instructs agents to 'Pair with bfm_unblock_ip if DirectAdmin Brute Force Monitor also listed the IP.' However, it does not explicitly state when to prefer this over related siblings like csf_remove_allow or firewall_unblock_everywhere, leaving some routing to inference.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OpenIaaS/directadmin-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server