Skip to main content
Glama

update_application_env

DestructiveIdempotent

Update an application's environment variables by replacing the full env or merging individual keys, with optional unsetting and build arg/secret changes; does not redeploy.

Instructions

Update an application's environment variables.

Pass env to replace the whole file, or variables to set keys and unset to remove keys. Those edits merge into the current file unless you also pass env. build_args and build_secrets are left unchanged unless you pass them. create_env_file controls whether Dokploy writes an env file into the build. This does not redeploy. To change one secret, pass only variables={KEY: value}; other keys are kept. Never pass the *** mask from get_application back as a value.

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": {
      "application_id": "<application_id>"
    },
    "name": "update_application_env"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNo
unsetNo
variablesNo
build_argsNo
build_secretsNo
application_idYesapplicationId from list_applications 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

A4.7/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 adds the semantics the agent most needs: merge-into-current-file behavior, which fields (build_args, build_secrets) are left untouched, that create_env_file toggles build-time env file writing, and that no redeploy occurs. The warning never to pass back the *** mask from get_application is a genuinely useful, non-obvious behavioral constraint.

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?

Purpose is front-loaded and every sentence contributes a distinct rule, with no filler. The merge semantics are restated twice ("merge into the current file unless you also pass env" and "other keys are kept"), and the dense paragraph could be broken into clearer modes, but it is not wasteful.

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 destructive 7-parameter mutation tool with an output schema present, the description covers replacement vs merge semantics, untouched fields, side-effect scope (no redeploy), and a safety warning about masked values. Nothing an agent needs to call this correctly 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 description coverage is only 14%, so the description carries the burden and does: it explains env (full replacement), variables (key merge), unset (key removal), build_args/build_secrets (unchanged unless passed), and create_env_file (whether an env file is written into the build). Precedence between env and variables is stated explicitly, which the schema does not convey.

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?

Opens with a specific verb+resource ("Update an application's environment variables") and implicitly scopes it against the sibling update_compose_env by naming the application as the target. An agent knows exactly what state this tool mutates.

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

Usage Guidelines4/5

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

Gives concrete selection guidance between modes: pass env to replace the whole file vs variables/unset to merge individual keys, plus the explicit rule "To change one secret, pass only variables={KEY: value}". It also says "This does not redeploy", which tells the agent a follow-up deploy call is needed, though it does not name deploy_application/redeploy_application directly.

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