Skip to main content
Glama

Delete resource

k8s_delete_resource
Destructive

Delete a Kubernetes resource by specifying its apiVersion, kind, and name, with optional namespace and context targeting. Use confirmation and propagation policy controls for safe removal.

Instructions

Delete any object by apiVersion and kind.

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": {
      "api_version": "<api_version>",
      "kind": "<kind>",
      "name": "<name>"
    },
    "name": "k8s_delete_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
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
api_versionYes
propagation_policyNoBackground

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.7/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 structurally. The description adds only the apiVersion/kind addressing model and says nothing about irreversibility, cascading deletion via propagation_policy, or the confirm prompt that the schema hints at.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the brevity borders on under-specification given the tool's destructiveness and parameter count.

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, generic 7-parameter mutation tool with no output schema and low schema coverage, one sentence is not enough. An agent lacks the information needed to decide deletion propagation behavior or understand the confirmation path before invoking an irreversible operation.

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 description coverage is only 29% across 7 parameters, so the description carries a real compensation burden and it fails to meet it. It mentions only apiVersion and kind (already in the schema property names) and leaves name, namespace, context, confirm and especially propagation_policy — the parameter that governs dependent-object deletion — completely unexplained.

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?

States a specific verb ("Delete") and resource scope ("any object by apiVersion and kind"), which signals a generic, type-agnostic delete versus the many typed siblings like k8s_delete_namespace. It never explicitly contrasts itself with those typed delete tools, but "any object" is enough for an agent to infer the generic case.

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?

No when-to-use or when-not-to-use guidance, and no alternatives named. With ~30 typed k8s_delete_* siblings present, an agent gets no instruction on when the generic tool is the right choice versus a type-specific one.

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