Skip to main content
Glama

auth_log_summary

Summarize SSH authentication activity on an instance by grouping failed logins, invalid-user probes, and accepted logins by source IP, revealing security threats and access patterns.

Instructions

Summarize SSH auth activity on one instance: failed logins, invalid-user probes, and accepted logins, grouped by source IP. Read-only (auth.log/secure tail, journald ssh units as fallback). Returns JSON: {failed_logins: [{ip, user, count, method}], invalid_users: [{ip, count}], accepted_logins: [{ip, user, count, method}]}. Errors: auth_log_not_available, auth_log_permission_denied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNoMax rows per section (1-100, default 20).
instance_idYesInstance ID or name.
since_minutesNoLookback window in minutes — exact on the journald path, approximate (line-bounded tail) on file tails (1-10080, default 1440).
Behavior5/5

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

With no annotations, the description fully discloses behavior: it states read-only, identifies the log sources (auth.log/secure tail, journald ssh units as fallback), lists the exact return JSON structure, and enumerates possible errors (auth_log_not_available, auth_log_permission_denied). This goes far beyond a minimal description.

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?

The description is three sentences, each providing essential information: purpose, read-only/source fallback, return format and errors. It is front-loaded with the primary purpose and avoids repetition or fluff. Every word earns its place.

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?

The tool has moderate complexity (multi-section JSON output, error handling, fallback sources) and no output schema. The description compensates fully by specifying the exact JSON structure and error names. Combined with schema descriptions, it gives an agent all necessary information to invoke and interpret results.

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 description coverage is 100%, so the parameters (instance_id, top_n, since_minutes) are already well-documented. The description does not add extra meaning to the parameters; it focuses on output and behavior. Baseline 3 is appropriate as the schema carries the parameter explanation.

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 the tool 'Summarize SSH auth activity on one instance' with specific categories (failed logins, invalid-user probes, accepted logins) and grouping by source IP. This specific verb+resource combination distinguishes it from sibling log/audit tools like get_logs or security_audit.

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 provides clear context: it is a read-only summarizer for SSH auth activity on a single instance, with fallback sources mentioned. It does not explicitly name alternatives or exclusion cases, but the purpose is specific enough to imply when it should be used over raw 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