Skip to main content
Glama

istio-list-gateways

List Istio gateways in a Kubernetes namespace to manage network traffic routing and service mesh configuration.

Instructions

List Istio gateways

Input Schema

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

Implementation Reference

  • Handler for the istio-list-gateways tool. Parses input arguments for namespace, runs 'kubectl get gateways -o wide' (with optional namespace), and returns the command output or a fallback message.
    case "istio-list-gateways": { const { namespace } = args || {}; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `kubectl get gateways ${nsArg} -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No Istio gateways found" }] }; }
  • server.js:1301-1312 (registration)
    Tool registration in the tools array used by ListToolsRequestHandler. Defines the tool name, description, and input schema (optional namespace parameter).
    name: "istio-list-gateways", description: "List Istio gateways", inputSchema: { type: "object", properties: { namespace: { type: "string", description: "The namespace to list gateways from (optional, defaults to current context namespace)" } } } },
  • Input schema definition for istio-list-gateways tool, specifying an optional 'namespace' string parameter.
    name: "istio-list-gateways", description: "List Istio gateways", inputSchema: { type: "object", properties: { namespace: { type: "string", description: "The namespace to list gateways 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