Skip to main content
Glama

Get Workloads Health Overview

get_workloads_overview
Read-onlyIdempotent

Summarize workload health counts and top unhealthy items across Kubernetes workload kinds for fast first-pass triage before deeper diagnosis.

Instructions

Summarize workload health counts and top unhealthy items across pods, deployments, statefulsets, daemonsets, jobs, and cronjobs.

Returns cluster_id, namespace, and overview containing total, healthy, unhealthy, and up to 20 unhealthy issues per workload kind. Omit namespace for a cluster-wide summary (excluding system namespaces by default) or pass a namespace to scope tightly.

Use as a fast first-pass health triage before drilling deeper. Prefer get_workloads_catalog when you need the complete list of every workload and pod, get_applications for app-grouped views, or diagnose_cluster_issues for 12-Step root-cause analysis and remediation commands.

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>"
    },
    "name": "get_workloads_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceNoOptional Kubernetes namespace name (1-63 chars) to scope results to a single namespace. Omit or pass null to query across all non-system namespaces (system namespaces such as kube-system are excluded by default).
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
overviewNoPer-kind health rollups for pods, deployments, statefulsets, daemonsets, jobs (each with total, healthy, unhealthy, and up to 20 unhealthy issues) plus cronjobs (total, active).
namespaceNoScoped namespace name, or null when aggregated across non-system namespaces.
cluster_idNoCluster identifier queried.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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}$"
    • changedInput schema / properties / namespace / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 63,
      +    "minLength": 1,
      +    "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / namespace / description
      Added value: +"Optional Kubernetes namespace name (1-63 chars) to scope results to a single namespace. Omit or pass null to query across all non-system namespaces (system namespaces such as kube-system are excluded by default)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "namespace": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Scoped namespace name, or null when aggregated across non-system namespaces.",
      +      "title": "Namespace"
      +    },
      +    "overview": {
      +      "additionalProperties": true,
      +      "description": "Per-kind health rollups for pods, deployments, statefulsets, daemonsets, jobs (each with total, healthy, unhealthy, and up to 20 unhealthy issues) plus cronjobs (total, active).",
      +      "title": "Overview",
      +      "type": "object"
      +    }
      +  },
      +  "title": "WorkloadsOverviewOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely non-obvious behavior: the default exclusion of system namespaces when namespace is omitted, and the cap of 20 unhealthy issues per workload kind. It does partly restate the return payload that the output schema already defines, which keeps it from 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.

Conciseness4/5

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

Three short paragraphs, front-loaded with purpose, then scope/return shape, then routing to alternatives. Little waste, though the enumeration of return keys is somewhat redundant given an output schema exists.

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 two-parameter read-only triage tool with a full output schema and complete annotations, nothing an agent needs to invoke it correctly is missing: purpose, scoping behavior, defaults, and sibling routing are all present.

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 both parameters are fully documented in the schema, including the namespace pattern and the null/omit semantics. The description's note about omitting namespace largely repeats that text rather than adding new meaning (no format, quoting, or edge-case detail beyond the schema). Baseline 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?

The description opens with a specific verb ('Summarize') and enumerates the exact resources covered (pods, deployments, statefulsets, daemonsets, jobs, cronjobs), plus the metric shape (health counts and top unhealthy items). That is enough for an agent to distinguish it from get_workloads_catalog or get_applications without opening a schema.

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?

It states the intended role ('fast first-pass health triage before drilling deeper') and names three explicit alternatives with the conditions that select them: get_workloads_catalog for complete lists, get_applications for app-grouped views, diagnose_cluster_issues for root cause. This is exactly the when-to-use/when-not guidance an agent needs.

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