Skip to main content
Glama

Get pod

get_pod
Read-onlyIdempotent

Retrieve a Kubernetes pod's full details by name and namespace, masking credential-like environment values and arguments for safer inspection.

Instructions

Fetch the full representation of a single pod. Credential-shaped env values and arguments are masked.

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": {
      "name": "<name>",
      "namespace": "<namespace>"
    },
    "name": "get_pod"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPod name
contextNokube-config context to target (defaults to current-context)
namespaceYesNamespace

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds a genuinely non-obvious trait the annotations cannot express: credential-shaped env values and arguments are masked in the returned representation, which matters for anyone inspecting pods with secrets.

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 short sentences, front-loaded with the action and followed by the one caveat that changes how the result should be read. Nothing is padded or redundant.

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?

This is a simple three-parameter read tool with full schema coverage and complete annotations, and there is no output schema to explain. The masking caveat covers the main surprise in the payload; only the error case for a missing pod is left unstated.

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%, with name, namespace, and context each documented in the schema itself, so a baseline of 3 applies. The description adds no further meaning about required vs optional parameters or how an omitted context is resolved.

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?

"Fetch the full representation of a single pod" gives a specific verb (fetch) and resource (pod) plus a scope qualifier (single, full representation). That implicitly separates it from list_pods and get_pod_logs, though it never names a sibling to contrast against.

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 word "single" hints that this is the point-lookup counterpart to the list_* tools, but no explicit when-to-use or when-not-to-use guidance is given. An agent must infer that it needs a concrete name plus namespace rather than browsing.

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