k8s_namespaces
Manage Kubernetes namespaces to list, view, create, or delete them within your cluster using the Kube MCP server.
Instructions
Manage Kubernetes namespaces. Actions:
list: List all namespaces in the cluster
get: Get details of a specific namespace
create: Create a new namespace
delete: Delete a namespace (requires confirm=true or dryRun=true)
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": {
"action": "<action>"
},
"name": "k8s_namespaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| name | No | Namespace name (required for get, create, delete) | |
| confirm | No | Confirm destructive action (required for delete unless dryRun=true) | |
| dryRun | No | Preview changes without executing (default: false) |