Skip to main content
Glama

update_environment

Update an environment's variables by merging key-value pairs or replacing all existing variables, and optionally rename the environment.

Instructions

Update environment variables. By default merges with existing vars; set replace=true to overwrite all.

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": {
      "environment_id": "<environment_id>",
      "data": "<data>"
    },
    "name": "update_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesVariable key-value pairs to set
nameNoOptionally rename the environment
replaceNoIf true, replaces all variables; if false, merges
environment_idYesThe environment _id to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose the key risk: replace=true destroys all existing variables. That is genuinely useful. But it says nothing about permissions/auth needs, what is returned, what happens to keys omitted in merge mode, or that renaming may affect other references.

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?

Two short sentences, front-loaded with the action and immediately followed by the critical default-versus-overwrite distinction. Every clause earns its place with no filler.

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?

For a 4-parameter mutation tool with a nested object and no output schema or annotations, the description covers the most consequential setting but omits permissions, return behavior, and the rename side effect on existing references. The strong schema coverage compensates partially, leaving it adequate rather than complete.

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

Parameters3/5

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

Schema coverage is 100%, with the schema already describing replace ('If true, replaces all variables; if false, merges'), data, name, and environment_id. The description's mention of replace largely restates the schema, so baseline 3 applies; it adds no format or syntax detail for the nested data object.

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 and resource ('Update environment variables'), which is enough for an agent to distinguish it from get_environment, create_environment, and delete_environment. It does not explicitly contrast itself with a variable-level sibling such as delete_environment_variable, so it stops short of full sibling differentiation.

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?

The description explains the two modes of operation (merge by default, replace=true to overwrite), which implicitly tells the agent which mode suits which intent. However, it offers no guidance on when to pick this tool over variable-level operations or create_environment, and no prerequisites are stated.

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