Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_crictl_logs

Read-only

Fetch recent log lines from a CRI container with crictl, even when the Kubernetes API server is down; secret-like values are redacted.

Instructions

The last lines log lines of one CRI container (crictl logs); works with the API server down. 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_id": "<container_id>",
      "host": "<host>",
      "user": "<user>"
    },
    "name": "get_crictl_logs"
  }
}

Input Schema

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds two useful behavioral facts beyond that: it operates without a functioning API server and it redacts secret-looking values. However, it never discloses that this reaches the container over SSH (implied by host/user/port/key_path/password_env/accept_new_hostkey), which is the most consequential behavior for an agent to know.

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 tight sentences with the core resource front-loaded and no filler. The phrasing 'The last `lines` log lines' is slightly awkward but compact and unambiguous.

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?

For a 10-parameter tool with zero schema coverage and only a readOnlyHint annotation, the definition says far too little about authentication, host-key handling, and the `since` window. The output schema covers return values, so that part is fine, but the invocation surface is under-described.

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 carries the full burden and only explains `lines`. The connection parameters (host, user, port, key_path, password_env, accept_new_hostkey, timeout) and the `since` time window are left with no meaning beyond their names.

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 verb and resource: retrieve the last `lines` log lines of one CRI container, naming `crictl logs` as the underlying operation. It implies a distinction from kubectl/docker log tools via 'works with the API server down', but never names a sibling explicitly, so it stops 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?

'works with the API server down' gives a real usage condition that implies when to prefer this over kubectl-based log tools, but it is embedded rather than framed as guidance. There is no explicit when-not statement and no prerequisites (SSH access, host credentials) are called out.

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