istio-list-gateways
List Istio gateways in a Kubernetes namespace to manage network traffic routing and service mesh configuration.
Instructions
List Istio gateways
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "istio-list-gateways"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | The namespace to list gateways from (optional, defaults to current context namespace) |
Implementation Reference
- server.js:2193-2201 (handler)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)" } } } }, - server.js:1301-1312 (schema)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)" } } } },