Skip to main content
Glama

Delete namespace

k8s_delete_namespace
Destructive

Delete a Kubernetes namespace to remove its resources and workloads; require explicit confirmation for this destructive operation.

Instructions

Delete a namespace.

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

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2/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. However, the description adds nothing beyond that: it never warns that deleting a namespace cascades to every resource inside it (pods, services, PVCs), which is the single most important behavioral fact for this operation. It also says nothing about irreversibility or whether deletion is graceful versus forced.

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 single sentence is trivially concise with zero wasted words, but that brevity stems from under-specification rather than disciplined editing. There is no front-loading problem because there is almost no content.

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 highly destructive, open-world mutation with three parameters and no output schema, the description is essentially empty. It omits cascading deletion of all contained resources, irreversibility, and the confirmation protocol, leaving an agent with only the name to reason from.

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 67%, and the one undescribed parameter is name, whose meaning is obvious. The description adds no meaning to confirm (the crucial gate for a destructive call) or context, so it contributes nothing over the schema. With the most safety-relevant parameter relying entirely on its own schema text, the description fails to compensate.

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 reads 'Delete a namespace.', which simply restates the tool name and title rather than explaining anything new. While the verb and resource are technically identifiable, it offers no scope, no differentiation from the many sibling k8s_delete_* tools, and no elaboration beyond the title field.

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 guidance on when to use this tool, no prerequisites (e.g., namespace must exist, permissions required), and no mention of when a different approach is preferable. The schema's confirm parameter hints at a confirmation flow, but the description never addresses it or when to set it.

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