list_services
List Kubernetes services in a namespace to view their types and exposed ports, helping inspect network ingress and internal service endpoints.
Instructions
List Kubernetes services, exposed ports, and service types within a namespace.
Usage Guidelines
Use this tool when checking network ingress, internal DNS resolution, or service endpoints.
Complement with
list_podsto confirm underlying backend endpoints exist.
Behavioral Transparency
Read-only query using CoreV1Api.
Lists service name, type (ClusterIP, NodePort, LoadBalancer), and mapped ports.
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": "list_services"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | No | Target Kubernetes namespace to inspect services in. Defaults to 'default'. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |