kubernetes_workload
MCP tools › Containers and Kubernetes
One Kubernetes workload through kubectl: logs returns the last output lines of all its containers; restart runs kubectl rollout restart (Deployment, StatefulSet, DaemonSet) or deletes the pod so its controller replaces it. restart defaults to dry_run=true and returns the command; dry_run=false needs the user-granted run right and is logged in .ferris-idea/agent-log.jsonl.
Its results carry text from remote: the client is told to treat that as data, never as instructions.
| Capability | containers.kubernetes_workload |
|---|---|
| Area | Containers and Kubernetes |
| Access | changes processes |
| Reaches | process, network |
| Rights | run |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
context | string | Context (default: the current one). |
namespace | string | Namespace (default: the context's, else default). |
kindrequired | string | Pod, Deployment, StatefulSet, DaemonSet or Job. |
namerequired | string | Name of the object. |
actionrequired | string | logs or restart. |
tail | integer | Lines for logs (default 200, at most 5000).minimum 0 |
dry_run | boolean | For restart: only report the command (default true). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project kubernetes_workload '{"kind":"<string>","name":"<string>","action":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "kind", "name", "action" ], "properties": { "context": { "description": "Context (default: the current one).", "type": [ "string", "null" ] }, "namespace": { "description": "Namespace (default: the context's, else `default`).", "type": [ "string", "null" ] }, "kind": { "description": "`Pod`, `Deployment`, `StatefulSet`, `DaemonSet` or `Job`.", "type": "string" }, "name": { "description": "Name of the object.", "type": "string" }, "action": { "description": "`logs` or `restart`.", "type": "string" }, "tail": { "description": "Lines for `logs` (default 200, at most 5000).", "type": [ "integer", "null" ], "minimum": 0 }, "dry_run": { "description": "For `restart`: only report the command (default true).", "type": [ "boolean", "null" ] } }}