Skip to main content
Glama
safe-ssh-mcp

safe-ssh-mcp

by Areso

get_kubectl_describe

Read-only

Retrieve read-only kubectl describe output for Kubernetes resources over SSH to inspect status, conditions, and events while redacting secret-like values and environment data.

Instructions

kubectl describe of one resource (pod, node, deployment, service, ...; not secrets or configmaps): status, conditions, events. Environment values and 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": {
      "resource_type": "<resource_type>",
      "name": "<name>",
      "host": "<host>",
      "user": "<user>"
    },
    "name": "get_kubectl_describe"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostYes
nameYes
portNo
userYes
timeoutNo
key_pathNo
namespaceNodefault
password_envNo
resource_typeYes
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?

With readOnlyHint=true already declaring the safe-read profile, the description adds genuinely new behavior: environment values and secret-looking values are redacted, so the agent knows returned data may be masked. It does not disclose the SSH connection requirements implied by host/user/key_path/password_env or how timeouts and host-key acceptance behave, leaving a gap on a 10-parameter remote-execution tool.

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?

Two compact sentences with the primary capability front-loaded, followed by scope and output; every clause carries information and nothing is padded.

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

Completeness3/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-value detail is not required, and the redaction note covers the most important behavioral surprise. But for a 10-parameter tool requiring host, user, and credential inputs, the absence of any parameter or connection guidance leaves the definition only partially complete.

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 largely does not. It implies resource_type, name, and namespace through 'one resource', but says nothing about host, user, port, key_path, password_env, timeout, or accept_new_hostkey, all of which are undocumented in both places.

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?

Names a specific verb and resource ('kubectl describe of one resource') and enumerates the resource kinds it covers (pod, node, deployment, service) while explicitly excluding secrets and configmaps. It also states the returned content (status, conditions, events), which distinguishes it from the log/event siblings, though it does not name those siblings directly.

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 exclusion clause ('not secrets or configmaps') tells the agent when this tool is not appropriate, which is meaningful guidance. However, there is no positive routing to alternatives (e.g., 'use get_kubectl_logs for container output') and no statement of prerequisites for the call.

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