Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_docker_inspect

Read-only

Retrieve key Docker container inspection details over SSH—image, state, health, restarts, limits, ports, mounts—to diagnose issues while redacting secret-like values and omitting environment variables.

Instructions

Key fields of docker inspect for one container: image, cmd, state, exit code, OOMKilled, health, restarts, limits, ports, mounts. No environment. 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_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
portNo
userYes
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

A3.5/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, and the description is consistent with that while adding real behavior: which subset of inspect data is returned, that environment is excluded, and that secret-looking values are redacted. What it omits is that the call reaches a remote host — the presence of host/user/key_path/password_env implies SSH execution and auth requirements that the description never mentions.

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?

Front-loaded and compact — the field inventory comes first, followed by two short scoping notes. The 'No environment.' fragment is slightly ambiguous (it could read as a parameter constraint rather than a return-value exclusion), which keeps it from a perfect score, but nothing is wasted.

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

Completeness4/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 need not be spelled out, and the description still summarizes the returned fields and the redaction policy. The remaining gap is connection/auth behavior for a remote-host inspection call, which is a meaningful omission but not one that blocks correct invocation.

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 8 parameters, so the description must compensate and largely does not: it clarifies only what 'container' means implicitly and says nothing about host, port, user, timeout, key_path, password_env, or accept_new_hostkey. For a tool whose parameters define SSH connectivity and credentials, this is a substantial documentation gap.

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 concrete verb (inspect) and resource (one container) and enumerates the exact fields returned — image, cmd, state, exit code, OOMKilled, health, restarts, limits, ports, mounts — which lets an agent distinguish it from log- or list-oriented siblings such as get_docker_logs and get_docker_ps_all. It does not explicitly name a sibling alternative, keeping it just short of a 5.

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?

Usage is only implied: an agent can infer this is for single-container state/diagnostic inspection, and the 'No environment' clause hints at a boundary. There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named for cases like needing environment variables or multi-container listing.

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