Skip to main content
Glama

blocked_traffic_rca

Read-only

Rank blocked firewall sources from logs by hit volume and ports, classify cause as port scan, service probe, or generic, and recommend an action.

Instructions

[READ] Rank the noisiest blocked sources and classify cause + action.

Keeps only blocked firewall-log entries, aggregates by source (hit count, distinct destination ports, busiest port), ranks the noisiest sources, and classifies each as a port scan, a service probe/brute-force on a sensitive port, or generic — with a recommended action. Every entry carries its numbers. Pass 'log_entries' for pure analysis, or a target to pull live.

Args: top: How many source rows to return, noisiest first (default 20). limit: How many recent log rows to pull when live (default 500). log_entries: Injected rows {action, source, destination, destinationPort, protocol}; skips the live pull. target: Firewall target name from config; omit for the default.

Returns dict: {blocksEvaluated, distinctSources, topSources:[{source, hits, distinctPorts, topPort, topPortHits, cause, action}], note}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topNo
limitNo
targetNo
log_entriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.4/5.0
Behavior4/5

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

readOnlyHint=true already establishes the safe-read profile, so the bar is lower. The description adds real value beyond that: it discloses the internal classification taxonomy (port scan, service probe/brute-force, generic) and that a recommended action is attached to every row, which an agent needs to interpret results. No auth, rate-limit, or pagination notes, so not a 5.

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?

Front-loaded with the [READ] marker and one-line purpose, then mechanics, then Args and Returns. Given the 0% schema coverage, the Args section is load-bearing rather than redundant. Slightly long overall, but no sentence is wasted.

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?

With no output schema, the description properly documents the return dict shape ({blocksEvaluated, distinctSources, topSources:[...], note}) and the per-row fields, which is exactly what the agent needs. The main residual gap is sibling-level guidance on when to prefer this over firewall_log, but otherwise it is complete for a 4-parameter read/analysis tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% — the schema provides only bare titles — so the description must carry the full burden, and it does. Each of the four parameters is documented with meaning and defaults: 'top' (rows, noisiest first, default 20), 'limit' (live rows to pull, default 500), 'log_entries' (with its field shape and that it skips the live pull), and 'target' (from config, omit for default).

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 pair (rank, classify) and resource (noisiest blocked sources), and states the exact mechanics — filtering to blocked entries, aggregating by source, and classifying cause. This is distinguishable from siblings like firewall_log or top_talkers, which neither aggregate blocked-only entries nor attach a cause/action classification.

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?

It gives clear operational routing: pass 'log_entries' for pure analysis, or a target to pull live. That tells the agent which mode to invoke and why. It stops short of naming alternative tools (e.g., firewall_log, rule_hit_and_shadow_analysis) or stating when this tool should be preferred over them.

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