Skip to main content
Glama

helm-uninstall

Remove a Helm release from a Kubernetes cluster by specifying its name and optional namespace to clean up deployed applications and resources.

Instructions

Uninstall a Helm release

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the release
namespaceNoThe namespace of the release (optional, defaults to current context namespace)

Implementation Reference

  • Handler for the helm-uninstall tool. Parses arguments for release name and optional namespace, constructs and executes the 'helm uninstall' command via execAsync, and returns the command output or a success message.
    case "helm-uninstall": {
      const { name, namespace } = args;
      const nsArg = namespace ? `-n ${namespace}` : "";
      const cmd = `helm uninstall ${name} ${nsArg}`;
      const { stdout } = await execAsync(cmd);
      return {
        content: [{ type: "text", text: stdout || `Helm release ${name} uninstalled` }]
      };
    }
  • server.js:1235-1251 (registration)
    Tool registration entry in the tools array, including name, description, and inputSchema for validation. This is returned by the ListToolsRequestHandler.
      name: "helm-uninstall",
      description: "Uninstall a Helm release",
      inputSchema: {
        type: "object",
        properties: {
          name: { 
            type: "string",
            description: "The name of the release"
          },
          namespace: { 
            type: "string",
            description: "The namespace of the release (optional, defaults to current context namespace)"
          }
        },
        required: ["name"]
      }
    },
  • Input schema defining the expected arguments: required 'name' (string) and optional 'namespace' (string). Used for tool call validation.
    inputSchema: {
      type: "object",
      properties: {
        name: { 
          type: "string",
          description: "The name of the release"
        },
        namespace: { 
          type: "string",
          description: "The namespace of the release (optional, defaults to current context namespace)"
        }
      },
      required: ["name"]

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/thekaranpargaie/kube-mcp'

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