Check a command against the zero-trust policy
classify_commandClassify Kubernetes, Docker, Helm, and Podman commands by risk as safe-read, approval-required, or blocked, with reasons, risk score, and role permission checks before execution.
Instructions
Classify a kubectl/oc/docker/podman/helm command as SAFE_READ, APPROVAL_REQUIRED or BLOCKED_DESTRUCTIVE, with reasons and a risk score, and say whether the given role may run it. Pipes, chaining, command substitution and non-allowlisted binaries are blocked.
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": "classify_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | operator | |
| command | Yes | ||
| approved | No | A human approved this command |