Skip to main content
Glama

list-pv

Retrieve persistent volume information from Kubernetes clusters to monitor storage resources and manage capacity.

Instructions

List Kubernetes persistent volumes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list-pv' tool that runs the kubectl command to list all PersistentVolumes (PVs) in the cluster.
    case "list-pv": { const cmd = `kubectl get pv -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No persistent volumes found" }] }; }
  • The tool definition including name, description, and empty input schema (no parameters required). This is part of the tools array used for tool listing and validation.
    { name: "list-pv", description: "List Kubernetes persistent volumes", inputSchema: { type: "object", properties: {} } },
  • server.js:1392-1394 (registration)
    Registers the listTools handler which returns the full tools array containing the 'list-pv' tool definition.
    server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });

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