Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_failed_logins

Read-only

Retrieve recent failed SSH login attempts to identify brute-force activity and support security checks.

Instructions

Recent failed login attempts (lastb), for brute-force checks.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "host": "<host>",
      "user": "<user>"
    },
    "name": "get_failed_logins"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
linesNo
sinceNo
timeoutNo
key_pathNo
password_envNo
accept_new_hostkeyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.4.0
    • removedInput schema / properties / password
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null
      -}
    • addedInput schema / properties / password_env
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Changed1 schema field changedv0.3.3
    • changedInput schema / properties / timeout / default
      Previous value: -20New value: +60
  3. Addedv0.2.0

TDQS

B3.1/5.0
Behavior3/5

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

The readOnlyHint=true annotation already establishes this as a safe read, and the description usefully discloses that the data comes from `lastb`/btmp rather than an application log. However, it omits that reading btmp typically requires elevated privileges on the target host, and it says nothing about per-host SSH connection behavior despite the host/user/port/key_path/password_env parameters.

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?

A single front-loaded sentence with zero filler, and the tool's essence lands immediately. It is arguably too terse for a 9-parameter SSH-based tool, but there is no wasted wording to penalize.

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

Completeness2/5

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

This is a remote-SSH tool with 9 parameters, two of them required connection credentials, and an output schema that covers return values. Given that complexity, the description should at least flag remote execution, authentication inputs, and likely privilege requirements; it addresses none of these.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, so the description carries the full burden, yet it explains none of them beyond a vague 'Recent' that loosely gestures at `since` and `lines`. SSH authentication parameters (key_path, password_env, accept_new_hostkey, timeout) are left entirely undefined, as is the required `user`/`host` pair.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (recent failed login attempts) and names the underlying source command `lastb`, which pins down the exact data returned. It is distinguishable from `get_last_logins` by the word 'failed', but it never explicitly contrasts the two, so it stops short of full sibling differentiation.

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 phrase 'for brute-force checks' gives a clear intended use case, but there is no when-not guidance, no mention of how it relates to `get_last_logins` or `get_systemd_list_failed`, and no prerequisites stated. Usage is implied rather than directed.

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