Skip to main content
Glama

block_ip

Block or unblock an IP/CIDR across AWS WebACL, ALB, or security groups. Automatically selects the appropriate layer and is fully reversible.

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?

Discloses reversible nature, resolution preferences, and danger. Lacks details on exact changes made (e.g., rule creation) and required permissions, but sufficient given no annotations.

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?

Concise paragraph with no wasted words. Front-loaded with purpose, each sentence adds meaningful information.

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?

Covers main behavior and risks, but lacks explanation of return values, error handling, or prerequisites. For a tool with no output schema, this gap reduces completeness.

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 covers 100% of parameter descriptions. Description adds value by explaining site resolution (ARNS, instance ID) and default action. Enriches beyond schema.

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 it blocks/unblocks an IP/CIDR and explains the resolution logic for the site parameter. It distinguishes itself from sibling tools by emphasizing 'at the layer that actually works'.

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?

Provides context on when to use (dangerous, confirm with user) and describes behavior for site resolution. However, does not explicitly mention when not to use or compare with alternative tools like ip_ban_set or waf_rate_rule_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