Skip to main content
Glama

block_ip

Block or unblock an IP/CIDR at the layer that works for a site: prefers WebACL for real client IP, falls back to SG/NACL, or recommends host layer. Reversible; confirm before use.

Instructions

Block (or unblock) an IP/CIDR at the layer that actually works. Resolves the best layer for 'site' (WebACL/ALB ARN or instance): prefers the WebACL (sees the real client IP behind an ALB), falls back to a configured SG/NACL, and otherwise recommends the host layer rather than silently editing the firewall. Reversible. DANGEROUS — confirm with the user first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYesIP address or CIDR to block/unblock.
siteYesWebACL ARN, ALB ARN, or instance id/name.
actionNo'block' or 'unblock'.block
regionNoAWS region override.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the resolution logic (prefers WebACL, falls back to SG/NACL, recommends host layer), notes reversibility, and warns about danger. This provides good context, though it could mention required permissions or logging behavior.

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 four sentences, front-loaded with the core purpose, and each sentence adds value. It is efficient and avoids redundancy, though a bullet list could improve readability slightly.

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?

Given the 4 parameters and no output schema, the description covers the core functionality, resolution strategy, and safety warning. It is sufficiently complete for an IP blocking tool, though it does not describe the return format or confirmation behavior.

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 coverage is 100%, so the baseline is 3. The description adds context about how 'site' is resolved but does not add new semantics beyond what the schema already provides for parameters like 'ip' or 'region'. The action enum is already documented.

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 clearly states that the tool blocks or unblocks an IP/CIDR, and specifies that it resolves the best layer (WebACL, SG/NACL, or host). This verb+resource combination is distinct from sibling tools like 'ip_ban_set', making the purpose unambiguous.

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 explains when to use the tool (to block an IP at the appropriate layer) and includes a strong warning about danger and user confirmation. However, it does not explicitly state when not to use it or compare it to alternatives like 'ip_ban_set'.

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

Install Server

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/zb-ss/servonaut'

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