Skip to main content
Glama

List Cluster Nodes

get_nodes
Read-onlyIdempotent

List all Kubernetes nodes in a cluster with readiness status, availability zone, node pool, and allocatable CPU/memory capacity. Use it to check node health, pool composition, or raw capacity.

Instructions

List all Kubernetes nodes in a cluster with readiness status, availability zone, node pool, and allocatable CPU/memory capacity.

Returns cluster_id, count, and items (one normalized entry per node) for cluster_id (from list_teams_and_clusters). Strictly read-only with cached cluster lookups.

Use when checking node readiness, node pool composition, or raw node capacity. Prefer get_cluster_workload_map when you also need pod-to-node placement and live CPU/memory utilization, or get_cost_estimate for monthly node-pool pricing estimates.

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

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
countNoTotal number of nodes returned.
itemsNoNormalized node objects containing name, status/ready, roles, zone, node_pool, cpu_capacity, memory_capacity, and age.
cluster_idNoCluster identifier queried.

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"
      +    },
      +    "count": {
      +      "default": 0,
      +      "description": "Total number of nodes returned.",
      +      "title": "Count",
      +      "type": "integer"
      +    },
      +    "items": {
      +      "description": "Normalized node objects containing name, status/ready, roles, zone, node_pool, cpu_capacity, memory_capacity, and age.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Items",
      +      "type": "array"
      +    }
      +  },
      +  "title": "NodesOutput",
      +  "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 non-destructive, so the safety profile is covered. The description still adds value with 'cached cluster lookups', which hints results may lag live state, plus a note that entries are normalized. It stops short of saying how stale the cache can be or how large clusters affect the response, which keeps it out of the top band.

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 tight paragraphs: purpose and fields first, return shape and scoping second, routing guidance last — a sensible front-loading order. The mild deduction is that the return-shape sentence partly duplicates the output schema that already exists, so it is not entirely earning 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 one-parameter read tool with full schema coverage, complete annotations, and an output schema, the description covers scope, safety, caching behavior, and alternatives. An agent has everything needed to choose and invoke it correctly.

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 coverage is 100% and the single parameter already documents format, length bounds, and examples. The description's mention of cluster_id provenance ('from list_teams_and_clusters') largely restates the schema text, so it adds only marginal meaning. Baseline 3 applies when the schema carries the load.

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 and resource ('List all Kubernetes nodes in a cluster') and enumerates the per-node fields returned (readiness, availability zone, node pool, allocatable CPU/memory). That is enough for an agent to separate it from siblings such as get_cluster_workload_map or get_cost_estimate 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 a positive trigger ('node readiness, node pool composition, or raw node capacity') and names two alternatives with the exact conditions that select them (pod placement plus live utilization, or monthly pricing). Both when-to-use and when-to-prefer-another are explicit.

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