Skip to main content
Glama

list-resourcequotas

List Kubernetes resource quotas to monitor and manage namespace resource limits, ensuring cluster resource allocation compliance.

Instructions

List Kubernetes resource quotas in a namespace

Input Schema

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

Implementation Reference

  • The handler function for the 'list-resourcequotas' tool. It constructs and executes a 'kubectl get resourcequotas' command with an optional namespace flag, then returns the command output as text content.
    case "list-resourcequotas": {
      const { namespace } = args || {};
      const nsArg = namespace ? `-n ${namespace}` : "";
      const cmd = `kubectl get resourcequotas ${nsArg} -o wide`;
      const { stdout } = await execAsync(cmd);
      return {
        content: [{ type: "text", text: stdout || "No resource quotas found" }]
      };
    }
  • server.js:916-927 (registration)
    The tool registration entry in the tools array, including name, description, and input schema. This is returned by the ListTools handler.
      name: "list-resourcequotas",
      description: "List Kubernetes resource quotas in a namespace",
      inputSchema: {
        type: "object",
        properties: {
          namespace: { 
            type: "string",
            description: "The namespace to list resource quotas from (optional, defaults to current context namespace)"
          }
        }
      }
    },
  • The input schema definition for the 'list-resourcequotas' tool, specifying an optional 'namespace' parameter.
    inputSchema: {
      type: "object",
      properties: {
        namespace: { 
          type: "string",
          description: "The namespace to list resource quotas 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