Skip to main content
Glama

LogTriage

Scan a log for attacks

scan_log_for_attacks
Read-onlyIdempotent

Detects the log format (50+ formats: web access logs, auth.log, Windows events, Sysmon, CloudTrail, Entra ID, Okta, Kubernetes audit, firewalls, EDR exports and more) and runs LogTriage's deterministic attack checks: brute force and password spraying, logins after failures, web scanning and injection, privilege changes in cloud logs, suspicious command lines, port scans and others, with MITRE ATT&CK techniques. Up to 5 MB of text; no threat-intelligence lookups and no AI (use analyze_log_file for those). The log is processed in memory and not stored. Free; no API key needed.

Input Schema

NameRequiredDescriptionDefault
logYesThe log text.
filenameNoOptional file name; the extension can help identify the format.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavior beyond that: deterministic (non-AI) checks only, in-memory processing with no persistence, and a hard 5 MB input ceiling. It stops short of describing output shape or how findings are ordered, so it is solid but not exhaustive.

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 capability statement is front-loaded and the exclusion plus operational limits come after, which is the right order. It is dense to the point of being a single sprawling sentence with a long parenthetical format list, but nearly every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, non-destructive scan with no output schema, the description covers scope, detection coverage, input limits, data handling, cost/auth requirements, and the sibling alternative. Nothing an agent needs to invoke it correctly is missing.

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 100%, so the baseline is 3; the description earns one extra point by adding a constraint the schema does not carry — the 5 MB text limit on the log payload. The optional filename parameter and its format-hinting role are left entirely to the schema, which is acceptable given full coverage.

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?

States a specific verb (detects format, runs deterministic attack checks) on a specific resource (the supplied log), enumerates the covered formats and detection classes (brute force, spraying, injection, port scans), and explicitly separates itself from analyze_log_file. An agent can distinguish it from every sibling without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit routing rule: threat-intelligence lookups and AI analysis are out of scope, and analyze_log_file is named as the tool for those. It also states the operational precondition (up to 5 MB of text) and that no API key is needed, so an agent knows both when to pick this tool and when to switch.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources