Skip to main content
Glama

pv_delete

Remove PersistentVolumes in Kubernetes clusters managed by the k8s-pilot MCP server. Provide context name and PV name to execute deletion and retrieve operation status.

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

  • The pv_delete tool handler function, registered via @mcp.tool() decorator. Deletes the specified PersistentVolume using Kubernetes CoreV1Api. Includes input schema in function signature and docstring.
    @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"}

Other Tools

Related 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