Skip to main content
Glama

List K8S Services

cm_k8s_networking_list_k8s_services
Read-onlyIdempotent

List Kubernetes services in a target namespace to inspect service endpoints and support networking diagnostics.

Instructions

List k8s services (cm_k8s_networking). Manage Kubernetes networking (ingress, ingress classes, network policies, endpoints, DNS, native 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": "cm_k8s_networking_list_k8s_services"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoResource name (ingress class, network policy, service)
specNoSpecification for NetworkPolicy CIDR/rule and service ops
rulesNoNetworkPolicy rules for update_network_policy_rules
targetNoTarget for DNS connectivity test
hostnameNoHostname for DNS resolution
pod_nameNoPod name for DNS operations
namespaceNoTarget namespace (default: from config)
netpol_nameNoNetworkPolicy name
netpol_specNoNetworkPolicy spec as JSON string
ingress_nameNoIngress name
ingress_specNoIngress spec as JSON string
manager_typeNoContainer manager: kubernetes (default: auto-detect)
service_nameNoService name for DNS endpoint lookup
service_specNoFull spec dict for create_k8s_service
service_typeNoService type for create_k8s_serviceClusterIP
service_portsNoPorts list for create_k8s_service
service_selectorNoSelector for create_k8s_service

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond that, and its "Manage ... networking" phrasing actually implies mutation capability that sits awkwardly against a read-only annotation. No mention of namespace scoping, default behavior, or result shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the actual action, which is efficient. However, the second sentence is generic family-level boilerplate that neither explains this tool nor earns its place in a list operation's description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 17 optional parameters spanning service creation, NetworkPolicy rules, ingress, and DNS testing, the description should explain which parameters matter for listing and which are irrelevant. An output schema exists, so return values need not be described, but the mismatch between the narrow name and the sprawling schema is left entirely unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every one of the 17 parameters is documented in the schema itself; the description adds no parameter meaning at all. The baseline of 3 applies when the schema carries the full load. The description could have clarified which subset (e.g., name, namespace) is relevant to a list operation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a clear verb+resource ("List k8s services") with a namespace tag, but the second sentence shifts to "Manage Kubernetes networking (ingress, ingress classes, network policies, endpoints, DNS, native services)", which describes a whole domain rather than this tool's operation. Neither sentence distinguishes this from siblings such as k8s_list_native_services or k8s_list_services. The reader is left unsure whether this lists services or performs broader networking management.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no named alternative despite several closely related sibling list tools. The domain enumeration hints at breadth but never says under what conditions an agent should pick this tool over k8s_list_native_services or cm_k8s_networking_get_k8s_service.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools