Skip to main content
Glama

Delete native service

k8s_delete_native_service
Destructive

Deletes a Kubernetes core/v1 Service by name from a chosen context and namespace, using an optional confirmation flag to guard destructive removal.

Instructions

Delete a real Kubernetes (core/v1) Service.

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_delete_native_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is covered. The description adds only the API-group scope and says nothing about irreversibility, what happens to associated endpoints/load balancers, or how the confirm flag interacts with client-side prompting — all behavior an agent needs before invoking a destructive call.

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?

A single short sentence with zero waste and the resource front-loaded, but it is under-specified rather than concise — the terseness comes at the cost of all operational detail.

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 destructive, open-world mutation with four parameters, no output schema, and half the parameters undocumented, one sentence is not enough. An agent lacks the confirmation semantics, namespace defaulting behavior, and consequences of deletion needed to call this safely.

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

Parameters2/5

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

Schema coverage is only 50%: 'confirm' and 'context' are documented in the schema, but 'name' and 'namespace' carry no description. The description does not compensate at all — it never mentions name, namespace scoping, or the confirmation requirement, so the agent learns nothing beyond the structured fields.

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 description gives a specific verb and resource: 'Delete a real Kubernetes (core/v1) Service.' The qualifier 'real ... (core/v1)' signals this targets the native core API group rather than a wrapper, which partly distinguishes it from siblings like cm_k8s_networking_delete_k8s_service, though it never names an alternative explicitly.

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 mention of prerequisites (e.g. that the Service must exist or be drained first), and no pointer to the sibling that deletes a wrapped/networking service. The agent must infer the choice from the tool name alone.

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