istio-list-virtualservices
List Istio virtual services in a Kubernetes namespace to manage traffic routing rules and service mesh configurations.
Instructions
List Istio virtual services
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-virtualservices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | The namespace to list virtual services from (optional, defaults to current context namespace) |
Implementation Reference
- server.js:2184-2191 (handler)Handler that lists Istio VirtualServices by executing 'kubectl get virtualservices -o wide' in the specified namespace.
const { namespace } = args || {}; const nsArg = namespace ? `-n ${namespace}` : ""; const cmd = `kubectl get virtualservices ${nsArg} -o wide`; const { stdout } = await execAsync(cmd); return { content: [{ type: "text", text: stdout || "No Istio virtual services found" }] }; } - server.js:1288-1298 (registration)Tool registration in the tools array, including name, description, and input schema for 'istio-list-virtualservices'.
name: "istio-list-virtualservices", description: "List Istio virtual services", inputSchema: { type: "object", properties: { namespace: { type: "string", description: "The namespace to list virtual services from (optional, defaults to current context namespace)" } } } - server.js:1291-1297 (schema)Input schema definition for the istio-list-virtualservices tool.
type: "object", properties: { namespace: { type: "string", description: "The namespace to list virtual services from (optional, defaults to current context namespace)" } }