Skip to main content
Glama

Delete persistent volume claim

k8s_delete_persistent_volume_claim
Destructive

Deletes a Kubernetes PersistentVolumeClaim by name, freeing its bound storage and releasing the claim for cleanup. Use it to remove unused or orphaned volume claims from a namespace.

Instructions

Delete a PersistentVolumeClaim.

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

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

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 largely covered by structured data. The description adds nothing beyond it — it does not say what happens to a bound PersistentVolume, whether the deletion is reversible, or how the 'confirm' gate interacts with the destructive hint.

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 front-loaded and free of waste, but its brevity is under-specification rather than efficiency. It neither buries nor bloats anything; it simply says too little.

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 no output schema and two undocumented parameters, the description should carry real weight about consequences and namespace resolution. It does not, leaving the agent to rely entirely on annotations and partially documented schema fields.

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 50%: 'confirm' and 'context' are documented in the schema, while 'name' and 'namespace' carry no description anywhere. The description does not compensate — it never mentions namespace scoping (whether omission means the default namespace or all namespaces), which is the most consequential ambiguity for a delete call.

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 'Delete a PersistentVolumeClaim.' — it only restates the tool name and title verbatim, adding no scope, target, or distinguishing detail. An agent learns nothing it could not already infer from the identifier alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/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 siblings such as k8s_list_persistent_volume_claims for verification or k8s_expand_persistent_volume for the non-destructive alternative, and no preconditions. Nothing routes the agent between this tool and its alternatives.

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