scale_app
Adjust app instance count or enable auto-scaling between min and max when CPU is at its limit or traffic exceeds capacity.
Instructions
Set how many instances run the app (min), or turn auto-scaling on between min and max. Use it when get_process_metrics shows the CPU at its limit, or one instance isn't enough for the traffic. It affects billing, and only the app's owner can do it. Check the current values with get_app_infrastructure first.
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": {
"appObjectId": "<appObjectId>",
"min": "<min>",
"max": "<max>",
"auto": "<auto>"
},
"name": "scale_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | Maximum number of instances (with auto-scaling); at least min | |
| min | Yes | Minimum number of instances (the number that runs when auto-scaling is off) | |
| auto | Yes | Enable auto-scaling | |
| region | No | Target region (optional) | |
| cpuTarget | No | CPU target percentage for auto-scaling | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) |