Turn serverless on or off
service_sleep_setConfigure a Lizard service to sleep when idle or remain always on. Set an idle timeout in minutes; the service wakes on the next request and preserves memory while asleep.
Instructions
Use this when the user wants a Lizard service to be serverless (sleep when idle) or always on. On: with no traffic for idleMinutes (5-1440, default 15) it sleeps with its memory saved, costs almost nothing, and the next request or connection wakes it in about a second. Turning it on restarts the service once. Works for apps with one replica and a port, and for Postgres/Redis databases; the error says why otherwise.
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": {
"project": "<project>",
"service": "<service>",
"enabled": "<enabled>"
},
"name": "service_sleep_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true: sleep when idle; false: always on | |
| project | Yes | Project name, slug, or ID | |
| service | Yes | App or database name or ID | |
| idleMinutes | No | Minutes without traffic before it sleeps |