Skip to main content
Glama
WSL DevSecOps MCP Server

WSL DevSecOps MCP Server

by darkpowerxo

kubectl_get_logs

Retrieve logs from a Kubernetes pod to troubleshoot crashes, errors, and container output. Specify the pod, namespace, container, and tail lines for targeted log inspection.

Instructions

Get logs from a Kubernetes pod

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": {
      "pod_name": "<pod_name>"
    },
    "name": "kubectl_get_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
tailNoNumber of lines to show from the end
pod_nameYesName of the pod
containerNoContainer name (optional, for multi-container pods)
namespaceNoNamespace (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does almost nothing with it. It does not state that this is a non-mutating read, that logs are a point-in-time snapshot rather than a stream, or what happens when the pod is running in a non-default namespace or has multiple containers.

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 or redundancy. It is not padded, though the terseness reflects under-specification rather than tight editing, which is captured in other dimensions.

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 four-parameter tool with no annotations and no output schema, one sentence is not enough. Key operational facts are missing: that the container parameter is effectively required for multi-container pods, that namespace defaults if omitted, and what the returned log content looks like.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter (tail, pod_name, container, namespace) is already documented in the schema, including the tail default of 100. The description adds no additional meaning beyond that, which matches the baseline of 3 for high-coverage schemas.

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?

The description names a specific verb and resource ('Get logs from a Kubernetes pod'), which is unambiguous. It does not differentiate from siblings such as list_kubernetes_resources or scan_kubernetes_cluster, though those are conceptually distinct enough that confusion is unlikely.

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?

There is no when-to-use guidance, no mention of prerequisites (cluster context, kubeconfig, RBAC permissions to read pod logs), and no indication of how this differs from listing resources. The agent must infer everything from the tool name.

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