Skip to main content
Glama

Get Namespace Storage Topology

get_storage_topology
Read-onlyIdempotent

Builds a namespace's persistent storage binding graph linking StorageClasses, PVs, PVCs, and Pods to diagnose Pending PVCs, missing StorageClasses, and volume mount issues.

Instructions

Build the persistent storage binding graph (StorageClass -> PersistentVolume -> PersistentVolumeClaim -> Pod) for one namespace.

Returns cluster_id, namespace, nodes (with id, label, kind, status, meta), and directed edges (source -> target) showing how StorageClasses provision PVs bound to PVCs mounted by Pods.

Use when diagnosing Pending PVCs, missing StorageClasses, or volume mount bindings. Prefer get_network_topology for traffic routing, get_namespace_map for full namespace dependencies (including ConfigMaps and Secrets), or get_namespace_resources for flat object tables.

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

Input Schema

NameRequiredDescriptionDefault
namespaceYesTarget Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on 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
edgesNoDirected storage-binding edges (`source` -> `target`).
nodesNoGraph vertices (`id`, `label`, `kind` in storageclass/pv/pvc/pod, `status`, `meta`).
namespaceNoNamespace inspected.
cluster_idNoCluster identifier queried.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 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}$"
    • addedInput schema / properties / namespace / description
      Added value: +"Target Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on the cluster."
    • addedInput schema / properties / namespace / maxLength
      Added value: +63
    • addedInput schema / properties / namespace / minLength
      Added value: +1
    • addedInput schema / properties / namespace / 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"
      +    },
      +    "edges": {
      +      "description": "Directed storage-binding edges (`source` -> `target`).",
      +      "items": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "title": "Edges",
      +      "type": "array"
      +    },
      +    "namespace": {
      +      "default": "",
      +      "description": "Namespace inspected.",
      +      "title": "Namespace",
      +      "type": "string"
      +    },
      +    "nodes": {
      +      "description": "Graph vertices (`id`, `label`, `kind` in storageclass/pv/pvc/pod, `status`, `meta`).",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Nodes",
      +      "type": "array"
      +    }
      +  },
      +  "title": "StorageTopologyOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so safety is covered. The description adds real semantic context beyond that: the shape of the returned graph, the meaning of edges ('how StorageClasses provision PVs bound to PVCs mounted by Pods'), and the per-node fields. It does not discuss scale limits or behavior on namespaces with no storage objects, which keeps it below 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.

Conciseness5/5

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

Three compact paragraphs: purpose and graph shape first, then the return structure, then usage routing. Every sentence carries information an agent would otherwise have to infer, and nothing is repeated from the schema.

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 graph query with full schema coverage, annotations, and an output schema, the description supplies everything still missing: what the graph represents, node/edge semantics, and alternative-tool routing. No behavioral gap an agent needs before calling it remains.

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 both parameters carry their own descriptions including discovery hints (get_namespaces, list_teams_and_clusters). The description adds only that the graph is scoped to 'one namespace', so the schema is doing essentially all the parameter work; 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?

States a specific verb and resource ('Build the persistent storage binding graph') and enumerates the exact node/edge chain (StorageClass -> PV -> PVC -> Pod) for one namespace. It is immediately distinguishable from the sibling topology and resource-table tools.

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?

Gives explicit when-to-use triggers ('diagnosing Pending PVCs, missing StorageClasses, or volume mount bindings') and routes to three named alternatives with the condition that selects each: get_network_topology for traffic routing, get_namespace_map for full dependencies, get_namespace_resources for flat tables.

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