Skip to main content
Glama

cloudwatch_top_ips

Rank top client IPs from CloudWatch WAF/ALB logs, showing total, allowed, and blocked counts per IP. Identify abusive IPs to ban, with optional filters for action and time range.

Instructions

Rank the top client IPs in a CloudWatch log group. Parses WAF/ALB structured logs to report per-IP total, allowed, and blocked counts — use it to find abusive IPs before banning.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum IPs to return.
regionNoAWS region (optional).
log_groupYesCloudWatch log group name (e.g. a WAF or ALB access-log group).
hours_backNoHow many hours back to scan.
max_eventsNoMaximum events to scan (0 = unlimited, capped at 50000).
action_filterNoCount only events with this WAF action: 'ALLOW', 'BLOCK', or empty for all.
Behavior2/5

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

No annotations provided, so description carries full burden. It does not disclose important behavioral traits such as cost implications, rate limits, permissions needed, scanning limits (max_events cap only in schema), or behavior under heavy log volumes. Only mentions that it parses WAF/ALB structured logs, which is useful but insufficient.

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?

Two concise sentences. First sentence states the core action and resource, second provides context and recommended use case. No fluff or repetition.

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?

No output schema, but description partially describes output (total, allowed, blocked counts). Missing details like return format, ordering, error handling, and behavior when no matching logs. Adequate 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 coverage is 100% with all 6 parameters described. The description adds no extra meaning beyond the schema; it does not elaborate on how parameters like action_filter or hours_back interact. Baseline score of 3 is appropriate.

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?

Specific verb 'Rank' + resource 'top client IPs in a CloudWatch log group', and explicitly distinguishes from siblings like cloudwatch_get_log_events by mentioning parsing WAF/ALB logs to aggregate counts.

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?

States 'use it to find abusive IPs before banning', providing clear usage context for abuse detection. Does not explicitly list when not to use, but the purpose is clear enough to differentiate from general log retrieval tools.

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