Skip to main content
Glama

Get Cluster Node-to-Pod Placement Map

get_cluster_workload_map
Read-onlyIdempotent

Map pod placement across cluster nodes with per-node CPU, memory, pod capacity, and namespace breakdown to identify unbalanced scheduling, hot nodes, or where namespace pods run.

Instructions

Map pod placement across every cluster node with per-node CPU, memory, pod capacity, and namespace breakdown.

Returns cluster_id, summary (node, ready, scheduled pod, and namespace counts), namespaces legend, and per-node nodes cards with live kubectl top nodes utilization (or conservative fallback if metrics-server is unavailable). Excludes kube-system pods to highlight user workloads.

Use to spot unbalanced scheduling, hot nodes, or where a namespace's pods are running across nodes. Prefer get_nodes for lightweight node inventory without pod placement, or get_namespace_map for intra-namespace resource dependencies.

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

Input Schema

NameRequiredDescriptionDefault
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
nodesNoPer-node placement cards with status, machine_type, zone, node_pool, cpu/memory utilization, pods_capacity, and per-namespace pod lists.
summaryNoCluster placement summary: total nodes, ready nodes, pods_scheduled (excluding kube-system), and namespace count.
cluster_idNoCluster identifier queried.
namespacesNoActive non-kube-system namespaces with display color legend.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "namespaces": {
      +      "description": "Active non-kube-system namespaces with display color legend.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Namespaces",
      +      "type": "array"
      +    },
      +    "nodes": {
      +      "description": "Per-node placement cards with status, machine_type, zone, node_pool, cpu/memory utilization, pods_capacity, and per-namespace pod lists.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Nodes",
      +      "type": "array"
      +    },
      +    "summary": {
      +      "additionalProperties": true,
      +      "description": "Cluster placement summary: total nodes, ready nodes, pods_scheduled (excluding kube-system), and namespace count.",
      +      "title": "Summary",
      +      "type": "object"
      +    }
      +  },
      +  "title": "ClusterWorkloadMapOutput",
      +  "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 cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description correctly spends its space on behavior the annotations cannot express: kube-system pods are excluded, utilization comes from live `kubectl top nodes` with a conservative fallback when metrics-server is unavailable. That fallback note is a genuinely useful caveat about data quality. It stops short of describing pagination or scale limits for large clusters, 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?

Front-loaded with the operation, then return shape, then usage and alternatives — a logical order. It is somewhat dense in the middle paragraph enumerating return keys, but each clause carries real information and nothing is redundant 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?

An output schema exists, yet the description still sketches the return shape (summary, namespaces legend, per-node cards) enough for an agent to know what it will get, and it discloses the one data caveat (missing metrics-server) that would otherwise cause misinterpretation. Complete for a single-parameter read tool.

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?

There is a single parameter and schema description coverage is 100%; the schema already gives the pattern, length bounds, and the 'returned by list_teams_and_clusters' provenance. The description only restates cluster_id as part of the return shape rather than adding input semantics, 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?

The opening sentence names a specific verb and resource: mapping pod placement across cluster nodes with per-node CPU, memory, pod capacity, and namespace breakdown. It is immediately distinguishable from get_nodes (node inventory) and get_namespace_map (intra-namespace dependencies), which are named explicitly.

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?

The description states concrete use cases ('spot unbalanced scheduling, hot nodes, or where a namespace's pods are running') and then routes the agent away to alternatives with the selecting condition: get_nodes for lightweight inventory without pod placement, get_namespace_map for intra-namespace dependencies. When-to-use, when-not-to-use, and alternatives are all present.

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