Skip to main content
Glama

list-nodes

Retrieve a list of all Kubernetes nodes in your cluster to monitor resource availability and manage workloads effectively.

Instructions

List all Kubernetes nodes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execution handler for the 'list-nodes' tool. It runs the kubectl command 'kubectl get nodes -o wide' and returns the stdout output as text content.
    case "list-nodes": { const cmd = `kubectl get nodes -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No nodes found" }] }; }
  • The tool schema definition for 'list-nodes', including name, description, and input schema (no required parameters). This is part of the tools list returned by the ListToolsRequestHandler.
    name: "list-nodes", description: "List all Kubernetes nodes", inputSchema: { type: "object", properties: {} }
  • server.js:1392-1394 (registration)
    The ListToolsRequestHandler that registers all tools, including 'list-nodes', by returning the complete tools array.
    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