Skip to main content
Glama

pv_delete

Remove a PersistentVolume from a Kubernetes cluster to free storage resources and manage cluster capacity.

Instructions

Delete a PersistentVolume from the cluster.

Args: context_name: The Kubernetes context name name: The PersistentVolume name

Returns: Status of the deletion operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
nameYes

Implementation Reference

  • tools/pv.py:104-104 (registration)
    Registers the pv_delete tool using the MCP decorator.
    @mcp.tool()
  • The handler function for pv_delete tool, decorated with context and permission checks, implements deletion of PersistentVolume via Kubernetes CoreV1Api.
    @mcp.tool()
    @use_current_context
    @check_readonly_permission
    def pv_delete(context_name: str, name: str):
        """
        Delete a PersistentVolume from the cluster.
    
        Args:
            context_name: The Kubernetes context name
            name: The PersistentVolume name
    
        Returns:
            Status of the deletion operation
        """
        core_v1: CoreV1Api = get_api_clients(context_name)["core"]
        core_v1.delete_persistent_volume(name=name)
        return {"name": name, "status": "Deleted"}
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states it's a deletion operation, implying it's destructive, but doesn't specify if it's irreversible, requires specific permissions, has side effects (e.g., on dependent resources), or details error handling. This is a significant gap for a mutation tool with zero annotation coverage.

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?

The description is front-loaded with the core action, followed by structured sections for Args and Returns, making it efficient and easy to scan. However, the 'Returns' section is vague ('Status of the deletion operation'), which slightly reduces clarity without being wasteful.

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?

Given the complexity of a deletion tool with no annotations, 0% schema coverage, and no output schema, the description is incomplete. It lacks critical details like behavioral traits, error cases, and return value specifics, making it inadequate for safe and effective use by an AI agent.

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

Parameters3/5

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

Schema description coverage is 0%, so the schema provides no parameter details. The description adds minimal semantics by listing parameters ('context_name' and 'name') and their roles, but doesn't explain format, constraints, or examples. This partially compensates for the schema gap but remains basic, aligning with the baseline when schema coverage is low.

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 clearly states the action ('Delete') and resource ('PersistentVolume from the cluster'), which is specific and unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'pv_list' or 'pv_get', though the verb 'Delete' makes its purpose distinct from read operations.

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?

The description provides no guidance on when to use this tool versus alternatives, such as when deletion is appropriate compared to updating or other operations. It lacks context about prerequisites, dependencies, or warnings about irreversible actions, which is critical for a destructive operation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bourbonkk/k8s-pilot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server