Skip to main content
Glama

apply_env_changes

Destructive

Restart a service to apply current environment variables, or rebuild its image when build-time variables change; first call previews changes, then confirm to execute.

Instructions

Restart the service with its current variables (about a second, no rebuild). rebuild=true rebuilds the image instead: needed when a build-time variable changed. The first call only returns a preview; call again with confirm=true once the user agrees.

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_id": "<project_id>"
    },
    "name": "apply_env_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
rebuildNo
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description adds substantial context beyond them: the operation is fast (~1 second), it does not rebuild by default, rebuild is required for build-time variable changes, and the first invocation is a non-destructive preview gated behind confirm=true. That preview/confirm disclosure directly explains how the destructive effect is controlled, which the annotations alone do not convey.

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

Conciseness5/5

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

Three short sentences, each earning its place: the default behavior first, the flag-driven alternative second, the confirmation protocol last. No restatement of the tool name or filler.

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

Completeness4/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 needn't be explained, and the destructive profile plus preview gate are well covered. The remaining gap is the undocumented required project_id and no mention of service downtime during the restart, but the operational picture is otherwise complete for a three-parameter mutation.

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 description coverage is 0%, so the description must carry the parameter meaning – and it does for both booleans: rebuild's semantics and when to set it, plus confirm's role in the two-step flow. project_id is never mentioned, leaving one of three parameters (the only required one) undocumented in both places.

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?

The description states a concrete verb+resource ('Restart the service with its current variables') and immediately contrasts it with the alternative mode ('rebuild=true rebuilds the image instead'). It doesn't name the sibling that would be the closest alternative (redeploy), so differentiation from the broader catalog is left implicit, but the restart-vs-rebuild distinction 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 Guidelines4/5

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

It gives a clear selection rule for the rebuild flag ('needed when a build-time variable changed') and a precise two-step workflow ('first call only returns a preview; call again with confirm=true once the user agrees'). No explicit guidance on when to use this instead of set_env or redeploy, which keeps it below a 5.

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