Skip to main content
Glama

Update Environment Settings

environment_update
DestructiveIdempotent

Changes 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

NameRequiredDescriptionDefault
cpuNoCPU per instance, for example `1`. Limited by the plan.
nameNoThe display name of the environment.
app_idYesThe app this call works on: its `app_id` uuid from `apps_list`.
memoryNoMemory per instance, for example `512Mi`. Limited by the plan.
confirmNoMust be exactly `true` to change the production environment. Not needed for development or staging.
concurrencyNoRequests one instance serves at the same time.
max_instancesNoThe most instances the environment scales out to. Limited by the plan.
container_portNoThe port the app listens on (1 to 65535). Applies to the running service on save.
environment_idYesThe environment uuid from `environments_list`.
organization_idNoAn 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_commandNoThe 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_secondsNoHow long a request may run before it is cut off.
healthcheck_pathNoThe path a deploy checks for an HTTP 200, for example `/health`. Applies at the next deploy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true and idempotentHint=true, but the description goes further: it discloses partial-update semantics (only send what changes, null clears), per-setting activation timing (next deploy vs. live within a minute or two), plan-based value clamping, and the risk that a wrong container_port takes the running app down. It also states the return shape and the `changed` list despite there being no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and organized into topical paragraphs (settings, confirm gate, activation timing, plan limits, return) with no filler. A few clauses restate schema content, notably the confirm requirement and 'applies at the next deploy', which the property descriptions already carry.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter destructive mutation with no output schema, the description covers the mutation contract, the authorization gate, side-effect timing, clamping behavior, excluded fields, and the response shape. Nothing an agent needs in order to call it safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: 'Send only the settings to change; the others keep their value' and '`null` clears a setting' define the update contract, and it explains that an over-plan value is silently lowered and the saved value returned. That materially changes how an agent should populate the optional nullable fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Changes the settings of one environment') and immediately enumerates the mutable settings, so an agent can distinguish it from environment_create without opening the schema. The scope of 'one environment' plus the required app_id/environment_id pairing is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit usage conditions: IDs come from apps_list/environments_list, production requires confirm:true in the same call, and region/environment type/min_instances cannot be changed here. It also prescribes a safety prerequisite ('read the port the app listens on before changing it') rather than leaving sequencing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources