set_engine
Change an app's engine to adjust CPU and memory per instance when metrics show memory limits or CPU-heavy cloud code needs more, confirming billing impact before redeploy.
Instructions
Change an app's engine: the CPU and memory each of its instances has. Use it when get_process_metrics shows the engine at its memory limit, or CPU-heavy cloud code needs more. It affects billing (confirmBillingChange), only the app's owner can do it, and the app is redeployed.
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>",
"engineName": "<engineName>",
"billingPolicy": "<billingPolicy>",
"confirmBillingChange": "<confirmBillingChange>"
},
"name": "set_engine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Target region (optional) | |
| engineName | Yes | The engine name (e.g., "pico", "nano", "micro", "small", "medium", "large") | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) | |
| billingPolicy | Yes | Billing policy - "monthly" for fixed monthly rate, "hourly" for pay-per-use | |
| confirmBillingChange | Yes | Must be true to confirm you understand this will affect your billing |