Skip to main content
Glama

list-endpoints

Retrieve Kubernetes endpoints within a specified namespace to monitor service connectivity and network configurations.

Instructions

List Kubernetes endpoints in a namespace

Input Schema

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

Implementation Reference

  • The handler function that executes the "list-endpoints" tool logic by running the kubectl command to list endpoints in the specified or default namespace.
    case "list-endpoints": { const { namespace } = args || {}; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `kubectl get endpoints ${nsArg} -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No endpoints found" }] }; }
  • The input schema definition for the "list-endpoints" tool, defining an optional namespace parameter.
    name: "list-endpoints", description: "List Kubernetes endpoints in a namespace", inputSchema: { type: "object", properties: { namespace: { type: "string", description: "The namespace to list endpoints from (optional, defaults to current context namespace)" } } } },
  • server.js:1392-1394 (registration)
    The request handler for listing tools, which includes the "list-endpoints" tool in the returned 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