Skip to main content
Glama

Create native service

k8s_create_native_service

Create Kubernetes core/v1 Services by passing either a complete spec or convenience ports, selector, and type fields to expose workloads.

Instructions

Create a real Kubernetes (core/v1) Service.

Either pass a full spec dict or the ports/selector/type convenience fields.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "k8s_create_native_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
specNo
typeNoClusterIP
portsNo
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
selectorNo
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false, so the mutation and open-world profile is covered structurally. The description adds the meaningful detail that a full ``spec`` and the convenience fields are mutually exclusive alternatives, but says nothing about namespace/context defaulting, behavior when the Service already exists, or required permissions.

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

Conciseness4/5

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

Two short sentences with the core purpose front-loaded and the alternative invocation path immediately after. The reST double-backtick markup is minor noise but nothing is padded.

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

Completeness3/5

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

For a 7-parameter mutation tool with 14% schema coverage and no output schema, the definition covers the central spec-vs-convenience decision but leaves namespace defaulting, existing-resource behavior and failure modes unaddressed. Adequate to start a call, not complete enough to call confidently in edge cases.

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

Parameters4/5

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

Schema coverage is only 14% (only ``context`` is documented), so the description carries real weight: it names four of the seven parameters and explains the two mutually exclusive construction paths, which is more than the schema conveys. ``name``, ``namespace`` and ``context`` still get no clarification beyond the schema's own single description.

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?

"Create a real Kubernetes (core/v1) Service" gives a specific verb and resource and the qualifier "real/core/v1" signals that this produces a raw native object rather than the wrapper behavior implied by a plain create-service sibling. It does not name any sibling directly, so the differentiation is inferred rather than stated.

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 explains how to invoke the tool (two construction modes) but never says when to choose this over the many other service-creation siblings, nor when not to use it. Usage context is only implied.

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