Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_docker_logs

Read-only

Retrieve the last log lines from a Docker container over SSH for read-only diagnostics, with values resembling secrets automatically redacted.

Instructions

The last lines log lines of one docker container (name or ID). Values that look like secrets are redacted.

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": {
      "container": "<container>",
      "host": "<host>",
      "user": "<user>"
    },
    "name": "get_docker_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
linesNo
sinceNo
timeoutNo
key_pathNo
containerYes
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

C2.9/5.0
Behavior3/5

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

The redaction of secret-looking values is genuinely useful behavior not derivable from the readOnlyHint annotation, which itself is not contradicted. However, the description is silent on the SSH-based access model, host-key acceptance, and timeout behavior that govern whether the call succeeds.

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?

Two sentences, no filler, with the scoping constraint (last N lines, one container) front-loaded. It is efficient but so terse that it under-serves a 10-parameter tool rather than over-explaining.

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?

An output schema exists, so return values needn't be described, but for a 10-parameter remote-docker tool with zero schema coverage the description leaves too much unexplained: connection setup, auth alternatives, and the meaning of since/timeout are absent.

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 10 parameters, so the description must compensate and it explains only two of them ('lines' and 'container' as name-or-ID). The authentication and connection parameters (host, port, user, key_path, password_env, accept_new_hostkey), plus since and timeout, are left entirely undefined.

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 action and resource: retrieve the last `lines` log lines of a single docker container, accepting either a name or ID. The word 'docker' implicitly separates it from siblings like get_kubectl_logs and get_crictl_logs, though it never explicitly names them.

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

Usage Guidelines2/5

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

No when-to-use guidance at all – nothing says when to pick this over get_kubectl_logs, get_crictl_logs, or get_service_logs_from_journalctl, and no prerequisites (SSH reachability, credentials) are stated despite host/user/key_path parameters implying remote access.

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