Skip to main content
Glama

Inspect Pod Details and 12-Step Status

get_pod_details
Read-onlyIdempotent

Inspect a single Kubernetes pod's container states, probes, restart reasons, pipeline status, matching services, and recent logs to diagnose crashes or unready state.

Instructions

Inspect a single pod in depth, including container states, probe configs, restart reasons, 12-Step pipeline status, matching services, and a 150-line log tail.

Returns cluster_id, pod metadata (name, namespace, phase, node_name, pod_ip, labels), containers (probes, requests/limits, termination/waiting reasons), conditions, pipeline_steps, matching_services, and recent_logs for the primary container.

Use as the primary diagnostic call for one failing, crashing, or unready pod. Prefer get_pod_logs to fetch longer log tails (up to 5000 lines) or logs from a non-primary/sidecar container, or get_manifest for the exact raw pod YAML.

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": {
      "cluster_id": "<cluster_id>",
      "namespace": "<namespace>",
      "pod_name": "<pod_name>"
    },
    "name": "get_pod_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
pod_nameYesExact Kubernetes pod name inside `namespace` (1-253 chars, e.g. 'api-7c9f8b-x9k2p'). Obtain pod names from `get_namespace_resources` or `get_workloads_catalog`.
namespaceYesTarget Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on the cluster.
cluster_idYesUnique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging').

Output Schema

NameRequiredDescriptionDefault
nameNoPod name.
phaseNoKubernetes pod phase (Running, Pending, Failed, Succeeded, Unknown).
labelsNoKubernetes metadata labels attached to the pod.
pod_ipNoPod IP address assigned by CNI.
host_ipNoHost node IP address.
namespaceNoPod namespace.
node_nameNoNode currently running the pod, or null if unscheduled.
cluster_idNoCluster identifier queried.
conditionsNoPodScheduled, Initialized, ContainersReady, and Ready conditions.
containersNoPer-container state, image, readiness, restarts, last termination/waiting reason, requests/limits, and liveness/readiness/startup probes.
start_timeNoISO timestamp when kubelet acknowledged the pod.
recent_logsNoRecent trailing logs (up to 150 lines) from the primary container.
pipeline_stepsNo12-Step `kubectl apply` lifecycle checklist (Steps 1-8, 9, 10a/b, 10c/d, 11, 12) with passed/failed/pending status.
matching_servicesNoServices in the namespace whose label selector matches this pod.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.1.1
    • addedInput schema / properties / cluster_id / description
      Added value: +"Unique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging')."
    • addedInput schema / properties / cluster_id / maxLength
      Added value: +63
    • addedInput schema / properties / cluster_id / minLength
      Added value: +1
    • addedInput schema / properties / cluster_id / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • addedInput schema / properties / namespace / description
      Added value: +"Target Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on the cluster."
    • addedInput schema / properties / namespace / maxLength
      Added value: +63
    • addedInput schema / properties / namespace / minLength
      Added value: +1
    • addedInput schema / properties / namespace / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • addedInput schema / properties / pod_name / description
      Added value: +"Exact Kubernetes pod name inside `namespace` (1-253 chars, e.g. 'api-7c9f8b-x9k2p'). Obtain pod names from `get_namespace_resources` or `get_workloads_catalog`."
    • addedInput schema / properties / pod_name / maxLength
      Added value: +253
    • addedInput schema / properties / pod_name / minLength
      Added value: +1
    • addedInput schema / properties / pod_name / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "conditions": {
      +      "description": "PodScheduled, Initialized, ContainersReady, and Ready conditions.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Conditions",
      +      "type": "array"
      +    },
      +    "containers": {
      +      "description": "Per-container state, image, readiness, restarts, last termination/waiting reason, requests/limits, and liveness/readiness/startup probes.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Containers",
      +      "type": "array"
      +    },
      +    "host_ip": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Host node IP address.",
      +      "title": "Host Ip"
      +    },
      +    "labels": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "description": "Kubernetes metadata labels attached to the pod.",
      +      "title": "Labels",
      +      "type": "object"
      +    },
      +    "matching_services": {
      +      "description": "Services in the namespace whose label selector matches this pod.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Matching Services",
      +      "type": "array"
      +    },
      +    "name": {
      +      "default": "",
      +      "description": "Pod name.",
      +      "title": "Name",
      +      "type": "string"
      +    },
      +    "namespace": {
      +      "default": "",
      +      "description": "Pod namespace.",
      +      "title": "Namespace",
      +      "type": "string"
      +    },
      +    "node_name": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Node currently running the pod, or null if unscheduled.",
      +      "title": "Node Name"
      +    },
      +    "phase": {
      +      "default": "",
      +      "description": "Kubernetes pod phase (Running, Pending, Failed, Succeeded, Unknown).",
      +      "title": "Phase",
      +      "type": "string"
      +    },
      +    "pipeline_steps": {
      +      "description": "12-Step `kubectl apply` lifecycle checklist (Steps 1-8, 9, 10a/b, 10c/d, 11, 12) with passed/failed/pending status.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Pipeline Steps",
      +      "type": "array"
      +    },
      +    "pod_ip": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Pod IP address assigned by CNI.",
      +      "title": "Pod Ip"
      +    },
      +    "recent_logs": {
      +      "default": "",
      +      "description": "Recent trailing logs (up to 150 lines) from the primary container.",
      +      "title": "Recent Logs",
      +      "type": "string"
      +    },
      +    "start_time": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "ISO timestamp when kubelet acknowledged the pod.",
      +      "title": "Start Time"
      +    }
      +  },
      +  "title": "PodDetailsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, so the description does not need to restate safety. It adds real behavioral context the annotations cannot: the log tail is capped at 150 lines and covers only the primary container. It does not mention rate limits or cost of the call, which keeps it short of a 5.

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?

Three tight paragraphs progress from what is inspected, to what is returned, to when to use it versus alternatives. The scoping detail (primary container only, 150 lines) is front-loaded rather than buried, and no sentence is filler.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only inspection tool with an output schema, full annotation coverage, and 100% parameter documentation, the description supplies everything else an agent needs: scope, return contents, the log-tail limitation, and explicit routing to sibling tools.

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% and each of the three required parameters carries its own format, length, and sourcing guidance in the schema. The description adds no parameter-level meaning beyond what the schema already provides, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Inspect a single pod in depth") and enumerates the exact contents: container states, probe configs, restart reasons, 12-Step pipeline status, matching services, and a log tail. It is immediately distinguishable from sibling tools like get_pod_logs and get_manifest.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the trigger condition ("primary diagnostic call for one failing, crashing, or unready pod") and names two alternatives with the conditions that select them: get_pod_logs for longer tails or sidecar containers, get_manifest for raw YAML. This is the full when/when-not/alternatives pattern.

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