Skip to main content
Glama

list-pvc

List persistent volume claims in a Kubernetes namespace to monitor storage resources and manage cluster capacity.

Instructions

List Kubernetes persistent volume claims in a namespace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceNoThe namespace to list PVCs from (optional, defaults to current context namespace)

Implementation Reference

  • Handler for the 'list-pvc' tool. Executes 'kubectl get pvc -n [namespace] -o wide' to list PersistentVolumeClaims (PVCs) in the given namespace or default.
    case "list-pvc": { const { namespace } = args || {}; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `kubectl get pvc ${nsArg} -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No persistent volume claims found" }] }; }
  • server.js:149-161 (registration)
    Tool registration and schema definition for 'list-pvc' in the tools array, including input schema for optional namespace.
    { name: "list-pvc", description: "List Kubernetes persistent volume claims in a namespace", inputSchema: { type: "object", properties: { namespace: { type: "string", description: "The namespace to list PVCs from (optional, defaults to current context namespace)" } } } },
  • Input schema for the 'list-pvc' tool, defining an optional 'namespace' parameter.
    inputSchema: { type: "object", properties: { namespace: { type: "string", description: "The namespace to list PVCs from (optional, defaults to current context namespace)" } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thekaranpargaie/kube-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server