Skip to main content
Glama

Create K8S Service

cm_k8s_networking_create_k8s_service

Create a Kubernetes Service to expose workloads, specifying service type, ports, and pod selector for stable network access.

Instructions

Create 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_create_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 establish that this is a non-read-only, non-idempotent, open-world write with destructiveHint=false; the description adds nothing on top of that. It does not say what happens if the service already exists, what permissions or context are needed, how namespace defaults are resolved beyond the schema's terse note, or how failures manifest.

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 first sentence is tight and front-loaded, but the second sentence is catalog-style scope text for the parent toolset that does not help an agent call this tool. It is short overall, yet roughly half the content fails to earn its place.

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?

For a 17-parameter tool with zero required parameters and an output schema, the description leaves a major gap: how to compose a valid creation request (full service_spec vs. discrete fields) and what the lifecycle semantics are. An agent could not reliably invoke this correctly from the description alone.

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 schema itself documents all 17 parameters, which sets the baseline at 3. The description adds no meaning beyond that — it never explains the relationship between service_spec and the narrower service_type/service_ports/service_selector parameters, or which fields are actually consumed by this specific tool.

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 clearly states the verb and resource ("Create k8s service"), but the second sentence describes the whole networking toolkit's scope (ingress, network policies, endpoints, DNS) — resources this tool does not create per the schema — which blurs rather than sharpens the purpose. No attempt is made to distinguish it from siblings such as k8s_create_service, k8s_create_native_service, or cm_k8s_networking_get_k8s_service.

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 indication of when to use this tool versus k8s_create_service, k8s_create_native_service, or the cm_k8s_networking_* siblings. With 17 optional parameters and no required ones, the agent also gets no guidance on which parameter combinations constitute a valid creation call.

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