Update Environment Settings
environment_updateChanges the settings of one environment, like the dashboard's Hosting
settings: release_command, healthcheck_path, container_port,
cpu, memory, max_instances, concurrency, timeout_seconds
and name. Send only the settings to change; the others keep their
value. null clears a setting. Takes the
app_id from apps_list and the environment_id from
environments_list.
PRODUCTION REQUIRES confirm: true in the same call; without it the
tool refuses and changes nothing. Only pass confirm: true once the
developer you act for has agreed to this exact change. Development
and staging don't need it.
When each setting takes effect: release_command and
healthcheck_path at the next deploy (config_pending_deploy
becomes true on an environment that is already deployed);
container_port, cpu, memory, max_instances,
concurrency and timeout_seconds on the running service within a
minute or two, with no deploy. A wrong port takes the running app
down, so read the port the app listens on before changing it.
Compute values are limited by the app's plan: a value above the plan
is lowered to it, and the answer returns what was saved. The region,
the environment type and the always-on server (min_instances)
can't be changed here. Returns the environment in the shape of one
environments_list entry, with changed listing the settings that
really changed.
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": {
"app_id": "<app_id>",
"environment_id": "<environment_id>"
},
"name": "environment_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | CPU per instance, for example `1`. Limited by the plan. | |
| name | No | The display name of the environment. | |
| app_id | Yes | The app this call works on: its `app_id` uuid from `apps_list`. | |
| memory | No | Memory per instance, for example `512Mi`. Limited by the plan. | |
| confirm | No | Must be exactly `true` to change the production environment. Not needed for development or staging. | |
| concurrency | No | Requests one instance serves at the same time. | |
| max_instances | No | The most instances the environment scales out to. Limited by the plan. | |
| container_port | No | The port the app listens on (1 to 65535). Applies to the running service on save. | |
| environment_id | Yes | The environment uuid from `environments_list`. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. | |
| release_command | No | The command a deploy runs once before the new version takes traffic, for example `npx prisma migrate deploy`. Up to 1000 characters. Applies at the next deploy. | |
| timeout_seconds | No | How long a request may run before it is cut off. | |
| healthcheck_path | No | The path a deploy checks for an HTTP 200, for example `/health`. Applies at the next deploy. |