scale_deployment
Scale a Kubernetes deployment to a target number of replicas. Preview changes with dry-run mode before applying.
Instructions
WRITE ACTION — This modifies cluster state. Scales a Deployment to the specified number of replicas. Always confirm with the user before calling this. Use dryRun=true (default) to preview the change without executing it.
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": {
"deploymentName": "<deploymentName>",
"replicas": "<replicas>"
},
"name": "scale_deployment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | If true (default), preview the action without executing it. Set to false only after the user confirms. | |
| replicas | Yes | Target number of replicas. | |
| namespace | No | Kubernetes namespace. Defaults to "default". | |
| deploymentName | Yes | Name of the deployment to scale. |