Skip to main content
Glama

Get Full Workloads Catalog

get_workloads_catalog
Read-onlyIdempotent

Retrieve a full itemized catalog of Kubernetes deployments, statefulsets, daemonsets, jobs, cronjobs, and pods with per-workload health flags, filtered by namespace or across all namespaces.

Instructions

Retrieve the complete itemized catalog of deployments, statefulsets, daemonsets, jobs, cronjobs, and pods with per-workload health flags.

Returns cluster_id, namespace, a summary rollup, and full arrays (deployments, statefulsets, daemonsets, jobs, cronjobs, pods). Pass namespace to filter to one namespace, or omit namespace (null) to fetch workloads across all namespaces.

Use when you need to inspect every individual workload object, replica counts, or images. Prefer get_workloads_overview for lightweight health counts without full object lists, or get_applications when you want workloads and services correlated into logical applications.

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_catalog"
  }
}

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 namespaces in 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
jobsNoBatch Jobs with completion/failure status.
podsNoPods with phase, readiness, restarts, node placement, and metrics.
summaryNoAggregate counts: total_workloads, healthy_count, unhealthy_count, and per-kind counts.
cronjobsNoCronJobs with schedule, suspend state, and active job counts.
namespaceNoFiltered namespace name, or null when listing across all namespaces.
cluster_idNoCluster identifier queried.
daemonsetsNoDaemonSets with scheduled/ready node counts and `healthy` flag.
deploymentsNoDeployments with replica counts, images, and `healthy` flag.
statefulsetsNoStatefulSets with replica counts and `healthy` flag.

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 namespaces in the cluster."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "cronjobs": {
      +      "description": "CronJobs with schedule, suspend state, and active job counts.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Cronjobs",
      +      "type": "array"
      +    },
      +    "daemonsets": {
      +      "description": "DaemonSets with scheduled/ready node counts and `healthy` flag.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Daemonsets",
      +      "type": "array"
      +    },
      +    "deployments": {
      +      "description": "Deployments with replica counts, images, and `healthy` flag.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Deployments",
      +      "type": "array"
      +    },
      +    "jobs": {
      +      "description": "Batch Jobs with completion/failure status.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Jobs",
      +      "type": "array"
      +    },
      +    "namespace": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Filtered namespace name, or null when listing across all namespaces.",
      +      "title": "Namespace"
      +    },
      +    "pods": {
      +      "description": "Pods with phase, readiness, restarts, node placement, and metrics.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Pods",
      +      "type": "array"
      +    },
      +    "statefulsets": {
      +      "description": "StatefulSets with replica counts and `healthy` flag.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Statefulsets",
      +      "type": "array"
      +    },
      +    "summary": {
      +      "additionalProperties": true,
      +      "description": "Aggregate counts: total_workloads, healthy_count, unhealthy_count, and per-kind counts.",
      +      "title": "Summary",
      +      "type": "object"
      +    }
      +  },
      +  "title": "WorkloadsCatalogOutput",
      +  "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, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior: the null-namespace default fetches across all namespaces, and results carry per-workload health flags and a summary rollup. It stops short of disclosing performance or pagination implications of the all-namespaces bulk fetch, which would be the remaining value-add.

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?

Structure is strong: purpose first, then the namespace scoping rule, then the when-to-use and sibling routing. The middle paragraph listing `cluster_id`, `namespace`, and the six result arrays is largely redundant given an output schema exists, so a sentence of the text doesn't fully earn its place.

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 tool with a 100% documented schema, full annotations, and an output schema, the description covers purpose, scoping behavior, and alternatives. Nothing an agent needs in order to call this correctly is missing; the return-value enumeration is extra rather than required.

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%: both parameters document their pattern, length bounds, default (null), and a concrete cluster_id example, so the schema already carries the semantics. The description's namespace/omit-null sentence restates the schema's own default behavior rather than adding new meaning such as filtering interactions or validation rules.

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 names a specific verb ('Retrieve') and resource ('complete itemized catalog of deployments, statefulsets, daemonsets, jobs, cronjobs, and pods'), enumerating exactly which object kinds are returned. It distinguishes itself from get_workloads_overview (lightweight counts) and get_applications (workloads + services), so an agent can choose without opening schemas.

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 gives an explicit when-to-use ('inspect every individual workload object, replica counts, or images') and names two alternatives with the conditions that select them: get_workloads_overview for counts, get_applications for correlated apps. Both the include and exclude cases are stated rather than implied.

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