Skip to main content
Glama

Remove service

k8s_remove_service
Destructive

Removes a Kubernetes service by service ID, with confirmation for this destructive action when prompted. Use it to delete unused services from a selected context.

Instructions

Invoke the remove_service operation.

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": {
      "service_id": "<service_id>"
    },
    "name": "k8s_remove_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
service_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.9/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 known from structured data. The description adds nothing beyond that: it does not say whether removal is irreversible, what happens to dependent pods/endpoints, or whether the operation waits for completion. It adds no value past the annotations, though it does not contradict them.

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

Conciseness2/5

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

It is short, but brevity here comes from omission rather than economy; the single sentence restates the title and earns no place. There is no front-loaded statement of effect, scope, or irreversibility.

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

Completeness1/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 three parameters and no output schema, the description is effectively empty. An agent cannot learn from it what will be destroyed, whether confirmation is required in practice, or how context selection affects the target cluster — the most consequential details for this tool are absent.

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 67%: confirm and context are well documented in the schema, while service_id has no description. The description supplies no parameter meaning whatsoever — not the format of service_id, not whether it accepts names or IDs, and not how confirm interacts with the default false value.

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

Purpose2/5

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

The description is "Invoke the remove_service operation," which merely restates the tool name and title in other words. It never says what a "service" is in this system or what removal entails (scaling to zero vs. deleting the object), and it does nothing to distinguish it from siblings like k8s_delete_service, cm_k8s_networking_delete_k8s_service, or k8s_update_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 when-to-use guidance at all — no prerequisites, no indication of when to prefer this over k8s_delete_service or k8s_scale_service, and no note about when removal is inappropriate. The only hint about conditions (the confirm flag needing a client that can't prompt) lives in the schema, not the description.

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