Skip to main content
Glama

update_compose_env

DestructiveIdempotent

Update a compose service's environment variables by replacing the file or merging changes and unsetting names, without redeploying.

Instructions

Update a compose service's environment variables.

Pass env to replace the file, or variables and unset to merge into the current file. This does not redeploy. When a name is in both variables and unset, it is removed.

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": {
      "compose_id": "<compose_id>"
    },
    "name": "update_compose_env"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNo
unsetNo
variablesNo
compose_idYescomposeId from list_compose_services or get_project.
create_env_fileNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety bar is lower. The description still adds two facts annotations cannot convey: it does not trigger a redeploy, and a name present in both variables and unset is removed. It omits whether merging requires an existing env file and what create_env_file does.

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?

Three short sentences, front-loaded with purpose before the mode semantics. No filler, though the terse phrasing borders on under-specification for create_env_file rather than being genuinely economical.

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

Completeness3/5

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

An output schema exists, so return values need not be described. However, for a destructive mutation whose schema is 20% documented, the missing create_env_file semantics and the lack of any precondition (must the env file already exist?) leave a real gap an agent could stumble on.

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

Parameters4/5

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

Schema coverage is only 20% (only compose_id is documented in-schema), so the description must compensate — and it does for three of the four remaining parameters: env replaces the file, variables/unset merge, and unset wins when a name collides. create_env_file, the one boolean with real behavioral consequences, is left entirely undefined.

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

Purpose4/5

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

States a specific verb plus resource: 'Update a compose service's environment variables.' That is precise enough to distinguish it from deploy/redeploy/restart siblings, but it never explicitly names an alternative such as update_application_env, so it falls short of a 5.

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

Usage Guidelines3/5

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

Gives real usage distinction between the two modes ('Pass env to replace the file, or variables and unset to merge') and resolves the variables-vs-unset precedence, which is genuinely helpful. It offers no explicit when-to-use/when-not guidance relative to redeploy_compose or update_application_env, and leaves create_env_file unexplained.

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