Auth can i
k8s_auth_can_iCheck whether a user can perform a specific Kubernetes action on a resource, optionally within a namespace or named context, before running kubectl commands.
Instructions
Check if a user has permission to perform an action (kubectl auth can-i).
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": {
"verb": "<verb>",
"resource": "<resource>"
},
"name": "k8s_auth_can_i"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verb | Yes | ||
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| resource | Yes | ||
| namespace | No |