kubectl_run
Runs kubectl commands, enforcing permission rules for read, write, and destructive operations to ensure safe Kubernetes management.
Instructions
Run a kubectl command. Read ops (get, describe, logs) require k8s.read.. Write ops (apply, create) require k8s.write.. Destructive ops (delete, drain) require k8s.danger.*.
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": {
"command": "<command>"
},
"name": "kubectl_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | kubectl command (e.g., 'get pods', 'logs my-pod -f', 'apply -f deploy.yaml') |