Skip to main content
Glama

k8s_pod_logs

Fetch recent Kubernetes pod logs by pod name with optional namespace and tail-line limits to diagnose incidents without switching dashboards.

Instructions

Fetch recent logs from a 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": "k8s_pod_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
pod_nameYes
namespaceNodefault
tail_linesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

C2.6/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 not meet it. It does not say whether logs are a one-shot snapshot or a stream, whether it requires cluster permissions, whether it blocks, or what "recent" means relative to the tail_lines default of 100; only the presence of an output schema reduces the need to describe return values.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence with no wasted words, but its brevity reflects under-specification rather than density. Nothing is front-loaded beyond the bare retrieval action.

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 three-parameter tool with zero schema description coverage and no annotations, far more context is needed about the namespace scoping and log-limit parameters. The output schema covers return values, but the input-side and behavioral gaps remain substantial.

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 three parameters, so the description must compensate and does not. It never mentions the namespace parameter (defaulting to "default") or tail_lines, and "recent logs" only faintly gestures at a line limit without explaining truncation behavior.

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: "Fetch recent logs from a pod." An agent knows it retrieves pod logs. However, it offers no differentiation from nearby siblings such as k8s_describe_pod or log tools in other clouds, and "recent" is left undefined.

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 or when-not guidance is given. The description never tells the agent to prefer this over k8s_describe_pod, nor does it explain scenarios such as crash-looping pods or previous-container logs, so the agent must infer selection from the name alone.

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