Skip to main content
Glama

auth_log_summary

Summarize SSH authentication activity on an instance by source IP, showing failed logins, invalid-user probes, and accepted logins in a read-only report.

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. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'.
since_minutesNoLookback window in minutes — exact on the journald path, approximate (line-bounded tail) on file tails (1-10080, default 1440).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.28.0
    • changedInput schema / properties / instance_id / description
      Previous value: -"Instance ID or name."New value: +"Instance ID or name. '<account>/<name>' picks the server of one provider account; custom servers are 'custom/<name>'."
  2. Addedv2.24.0
  3. Removedv2.23.8
  4. Addedv2.23.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares read-only behavior, names the data sources (auth.log/secure tail with journald ssh units as fallback), and lists two specific error codes. It stops short of stating permission requirements or volume/rate limits, but the behavioral profile is substantially disclosed.

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?

Three tightly packed sentences: purpose and scope first, then data source and read-only status, then return shape and errors. No filler and the most important information is front-loaded.

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?

There is no output schema, but the description inlines the full JSON return shape for all three sections and enumerates the error codes, so an agent knows both inputs (via schema) and outputs. Nothing material is missing for a 3-parameter summary tool.

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% and the schema already documents top_n, instance_id, and since_minutes with defaults and ranges. The description adds no parameter-level detail (e.g. it never mentions top_n or since_minutes), so the baseline 3 applies.

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 (Summarize) and resource (SSH auth activity on one instance), and enumerates the exact content categories (failed logins, invalid-user probes, accepted logins). This distinguishes it cleanly from siblings like journal_errors, docker_log_summary, and 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 Guidelines3/5

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

The scope ('SSH auth activity on one instance') implies when the tool applies, but there is no explicit guidance on when to choose it over alternatives such as journal_errors or security_audit, nor any stated prerequisites. Usage is inferable rather than directed.

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