Skip to main content
Glama

csf_deny_ip

Block an IP address in CSF firewall on DirectAdmin. Add a permanent or temporary deny rule with optional comment and TTL, protecting your server from unwanted traffic.

Instructions

Block an IP in CSF (csf -d / temporary deny).

Args: ip: IPv4, IPv6, or CIDR. comment: Note stored with the rule. temporary: Use a TTL instead of a permanent deny. ttl_seconds: Lifetime when temporary=true. confirm: Required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes
commentNodenied-via-directadmin-mcp
confirmNo
temporaryNo
ttl_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose that this is a mutating deny operation, that temporary=true switches to a TTL-based deny, and that confirm is required — a meaningful guardrail signal given the schema defaults confirm to false. It stops short of richer consequences: no mention of firewall reload behavior, reversibility via csf_unblock_ip, or the self-lockout risk of blocking one's own IP.

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?

The description is tightly packaged: one headline sentence establishes the action and the underlying CSF command, followed by a five-line argument block where every line adds meaning. There is no filler, and the most decision-critical distinction (temporary vs permanent) appears in both the headline and the args.

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?

Given zero annotations and 0% schema description coverage, the description covers the core operation and all parameters, and an output schema exists so return values need no prose. It lacks a warning about consequences (permanent firewall change, reversibility path, self-lockout) and any note on CSF state prerequisites, which matters for a security-sensitive write tool.

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?

Schema description coverage is 0%, so the Arg block is the only documentation and it glosses all five parameters, including ip's accepted forms (IPv4, IPv6, CIDR) and that confirm is required. Gaps remain: ttl_seconds units are not stated, and confirm's underlying purpose as a safety gate is not explained beyond 'Required'.

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 states a specific action, 'Block an IP in CSF', and anchors it to the underlying command (csf -d / temporary deny), which unambiguously identifies this as the deny operation among firewall siblings like csf_allow_ip, csf_ignore_ip, and csf_unblock_ip. It also discloses that the same tool handles both permanent and temporary denies, giving the agent the full scope of the tool up front.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the verb 'Block' and the sibling names (csf_allow_ip, csf_unblock_ip) let an agent infer when this tool is appropriate. However, there is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites such as CSF being enabled, and no guidance on choosing permanent vs temporary beyond the parameter semantics.

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