Scale StatefulSet
scale_statefulsetScale a StatefulSet to a specified number of replicas.
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": {
"namespace": "<namespace>",
"statefulset_name": "<statefulset_name>",
"replicas": "<replicas>",
"cluster_id": "<cluster_id>"
},
"name": "scale_statefulset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, preview the change without executing it. | |
| replicas | Yes | Target number of replicas (0-100). | |
| namespace | Yes | Kubernetes namespace where the StatefulSet is located. | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| statefulset_name | Yes | Name of the StatefulSet to scale. |