Skip to main content
Glama

Cluster topology

k8s_cluster_topology

Retrieve Kubernetes cluster topology and map persistent volumes to the nodes and physical hosts storing their data.

Instructions

Cluster topology and data locations: nodes, and where each volume's data lives.

Each node lists its roles, readiness, capacity and labels; each PersistentVolume lists its claim, storage class, the node whose disk holds node-local data and its host path. Node hostnames equal the inventory host aliases, so a volume routes to the physical host that stores it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "k8s_cluster_topology"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only declare non-readOnly, openWorld and non-destructive - which is already odd for a purely descriptive listing tool - and the description adds real value by explaining the content and, notably, that node hostnames equal inventory host aliases so a volume can be routed to the physical host. It does not address cost, latency, or whether the inventory alias mapping is guaranteed in all environments, which keeps it off 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?

The lead sentence front-loads what the tool returns, then the following sentences unpack node and volume fields and close with the hostname-alias mapping. Density is high with no filler, though the two-line field enumeration could be tightened.

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

Completeness4/5

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

With no output schema, the description carries the burden of describing return shape and does so for both node and volume entities. It stops short of covering omissions such as whether all volumes or only bound ones appear, or how large clusters are handled, but it is enough to call the tool confidently.

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?

Only one parameter (context) exists and the schema documents it at 100% coverage, including a pointer to cm_multi_context list_contexts. The description adds nothing about context selection or cross-context behavior, so the baseline 3 applies.

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

Purpose4/5

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

The description names the resource concretely - cluster nodes with roles/readiness/capacity/labels, and PersistentVolumes with claim, storage class, backing node and host path. That is far more specific than a title restatement, though it never contrasts itself with nearby read tools such as k8s_get_cluster_info or k8s_get_cluster_resource_summary.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance: nothing says to reach for this tool when mapping volume data to physical hosts rather than for general cluster state. The agent must infer the use case entirely from the described payload shape.

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

Deploy Server

Other Tools