Skip to main content
Glama

Get K8S Service

cm_k8s_networking_get_k8s_service
Read-onlyIdempotent

Retrieve Kubernetes service details by name and namespace to inspect networking configuration, endpoints, ports, and selectors for troubleshooting or verification.

Instructions

Get k8s service (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_get_k8s_service"
  }
}

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 fully covered. The description adds no behavioral context beyond that — no mention of scoping to a namespace, error behavior when the service is absent, or what happens with the many write-oriented parameters present in the schema.

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?

The text is short, but the leading restatement of the tool name and the parenthetical tool id are pure redundancy, and the trailing domain catalog is boilerplate that does not help an agent select or invoke this specific tool.

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?

The output schema means return values need not be explained, but a read-only get tool exposing 17 mostly write/DNS-related parameters badly needs the description to say which inputs matter and how it differs from the list and native-service siblings. The generic domain sentence leaves that entirely unresolved.

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 description coverage is 100%, so the baseline is 3; every parameter already carries an inline description. The description does not clarify which parameters apply to this read operation versus the create/update/DNS-test parameters the schema shares across the networking toolset, so it adds no meaning beyond the schema.

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 clause states a specific verb and resource ("Get k8s service"), but the parenthetical tool-id restatement adds nothing and the second sentence is a generic catalog of the whole networking domain rather than a statement of what this call retrieves. It does not separate the tool from obvious siblings such as cm_k8s_networking_list_k8s_services or k8s_get_native_service, so an agent cannot tell whether this returns one Service object or something broader.

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?

The description contains no when-to-use guidance, no prerequisites, and no exclusions. Nothing tells the agent to prefer this over list_k8s_services for enumeration or over k8s_get_native_service, and nothing says which of the 17 parameters are relevant for a get operation.

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