Skip to main content
Glama

List, set, update, or delete environment variables

env_vars
Destructive

Lists, sets, updates, or deletes owner-scoped environment variables for one Cloud site, Data project, Mobile starter, Studio app, or the Code workspace. Actions are list, set, update, and delete. Use env_vars for those stored values. Use deploy to publish a Cloud page: only public values are copied into the page, and private values are not. Use project for source and database for records. exposure is secret by default. There is no server runtime.

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": {
      "product": "<product>"
    },
    "name": "env_vars"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoVariable name for set, update, and delete. 1 to 64 letters, numbers, and underscores, starting with a letter or underscore.
valueNoNew text value for set or update. At most 4,096 bytes. Not used by list or delete.
actionNolist, set, update, or delete. Omitted means list. update and delete fail when the name is missing. delete removes the stored value.
productYesScope product: cloud, data, mobile, studio, or code. code is the browser workspace and has no projectId.
exposureNosecret or public. Default secret. Only public is copied into a Cloud page. Private values are not.
projectIdNoUUID of the Cloud, Data, Mobile, or Studio project. Omit for the Code workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"list, set, update, or delete. Omitted means list. update and delete fail when the name is missing. delete removes the stored value."
    • changedInput schema / properties / exposure / description
      Previous value: -"Default secret. Only public is copied into a Cloud page."New value: +"secret or public. Default secret. Only public is copied into a Cloud page. Private values are not."
    • addedInput schema / properties / name / description
      Added value: +"Variable name for set, update, and delete. 1 to 64 letters, numbers, and underscores, starting with a letter or underscore."
    • addedInput schema / properties / product / description
      Added value: +"Scope product: cloud, data, mobile, studio, or code. code is the browser workspace and has no projectId."
    • changedInput schema / properties / projectId / description
      Previous value: -"Required except for the Code workspace."New value: +"UUID of the Cloud, Data, Mobile, or Studio project. Omit for the Code workspace."
    • addedInput schema / properties / value / description
      Added value: +"New text value for set or update. At most 4,096 bytes. Not used by list or delete."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds real context beyond that: exposure defaults to secret, private values are never copied into a deployed page, and there is no server runtime, which tells the agent these are injection-time values only. It omits permission/auth requirements and whether a delete can remove multiple entries.

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-loads verbs, resource, and scope in the first sentence, and each subsequent sentence routes to a sibling or clarifies exposure. Some redundancy exists: 'Actions are list, set, update, and delete' repeats the opening verb list and the schema enum, and 'Use env_vars for those stored values' is filler.

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 6-parameter destructive tool with no output schema, the description covers scope selection, action semantics, exposure consequences, and sibling disambiguation. An agent has enough to choose the tool and the right scope without guessing.

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 description coverage is 100%, covering name format, value byte limit, action defaults, product enum, exposure default, and projectId omission for code. The description's parameter-relevant content (exposure defaults to secret, public copied into page) largely restates what the schema already says, so it adds only marginal meaning.

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 specific verbs (list, set, update, delete) against a specific resource (owner-scoped environment variables) and enumerates the five product scopes, including that code is a browser workspace. It also explicitly distinguishes itself from deploy, project, and database, so an agent can pick it without opening the schema.

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 clear routing rules: use env_vars for stored values, deploy to publish a Cloud page, project for source, database for records. The distinction that only public values flow into a page is a concrete use-case boundary. It stops short of stating when-not to use it (e.g. secret rotation tooling or permission prerequisites).

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