Skip to content

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.

Capabilitycontainers.kubernetes_workload
AreaContainers and Kubernetes
Accesschanges processes
Reachesprocess, network
Rightsrun
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
contextstringContext (default: the current one).
namespacestringNamespace (default: the context's, else default).
kindrequiredstringPod, Deployment, StatefulSet, DaemonSet or Job.
namerequiredstringName of the object.
actionrequiredstringlogs or restart.
tailintegerLines for logs (default 200, at most 5000).minimum 0
dry_runbooleanFor 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.

Terminal window
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"
]
}
}
}