Read anything in a cluster with kubectl
kubectl_readRun read-only kubectl commands to troubleshoot Kubernetes workloads: inspect pods, describe resources, read logs, view events, and explain issues without allowing cluster changes.
Instructions
Run a READ-ONLY kubectl command — get, describe, logs, top, events, explain. Anything that would change the cluster is refused by the same classifier the portal's own console uses. This is the troubleshooting tool: describe a failing pod, read its logs, look at events in a namespace.
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": {
"project": "<project>",
"cluster": "<cluster>",
"command": "<command>"
},
"name": "kubectl_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | Yes | cluster id, from `clusters` | |
| command | Yes | the kubectl command WITHOUT the word kubectl, e.g. `describe pod web-7d9 -n dev` or `logs deploy/api -n dev --tail=200` | |
| project | Yes | project id, from `clusters` |