Skip to main content
Glama

Delete K8S Service

cm_k8s_networking_delete_k8s_service
DestructiveIdempotent

Deletes a Kubernetes Service by name and namespace, removing the service and its networking endpoint from the cluster when it is no longer needed.

Instructions

Delete 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_delete_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.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered. The description adds nothing beyond that: it does not say whether deletion is immediate or graceful, whether dependent endpoints are removed, or what happens if the service is absent despite idempotency being claimed.

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 operation statement is front-loaded and short, which is good. But the second sentence is reusable family boilerplate that does not apply to a delete-service call and dilutes the signal an agent needs.

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

Completeness4/5

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

The tool's core intent is stated and an output schema exists, so return values need not be described. The gap is modest: with 17 all-optional parameters, the agent gets no hint about which parameter actually identifies the service to delete, though the schema's own descriptions carry that weight.

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 per the baseline this lands at 3 even with no parameter discussion in the description. The description does not help disambiguate the overlapping 'name' versus 'service_name' fields, which would have been valuable added meaning for a 17-parameter tool.

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

Purpose4/5

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

The first sentence gives a specific verb and resource ('Delete k8s service') with the family tag '(cm_k8s_networking)', so the core operation is unambiguous. The second sentence, however, describes the whole networking tool family (ingress, network policies, DNS) rather than this tool, which widens perceived scope instead of narrowing it, and the description never distinguishes this from siblings such as k8s_delete_native_service or k8s_delete_resource.

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 guidance on when to use this tool versus k8s_delete_native_service, k8s_delete_resource, or the other delete siblings. No prerequisites (namespace scope, whether the service must exist, cascading behavior) are stated, leaving the agent to infer usage entirely.

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