Skip to main content
Glama

Set an app variable

set_app_variable
DestructiveIdempotent

Set a single environment variable on an app and roll it out. Call this when an app needs plain configuration such as LOG_LEVEL or a feature flag. For secrets (API keys, passwords, tokens) call set_app_secret instead if this connection has the secrets permission, else have the person use the Secrets section of the Dockhold dashboard: this tool rejects secret-looking keys.

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": {
      "app_id": "<app_id>",
      "key": "<key>",
      "value": "<value>"
    },
    "name": "set_app_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesEnvironment variable name, e.g. LOG_LEVEL
valueYesEnvironment variable value
app_idYesThe app id returned by list_apps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare mutating, destructive, and idempotent behavior, and the description adds two things beyond them: the change triggers a rollout, and secret-looking keys are actively rejected. It does not say whether an existing value is overwritten, which matters given destructiveHint=true, nor what the response looks like.

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 sentences, front-loaded with the action and its side effect, followed by usage and the exclusion. Nothing is redundant and the routing logic is packed into the final clause.

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?

For a three-parameter mutation with no output schema, the description covers the essential decision points: what it does, the rollout side effect, the secret-key rejection, and the correct alternative. The remaining gap is overwrite semantics for an already-set key, which destructiveHint hints at but does not explain.

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%, so all three parameters are already documented in the schema, including the LOG_LEVEL example. The description's example values duplicate that rather than adding new meaning such as format rules or naming constraints.

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?

The description gives a specific verb and resource ("Set a single environment variable on an app") plus the side effect ("roll it out"), and explicitly distinguishes itself from the sibling set_app_secret. An agent can select 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 Guidelines5/5

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

It states exactly when to use it (plain configuration like LOG_LEVEL or a feature flag), when not to (secrets: API keys, passwords, tokens), and names the alternative tool. It even handles the fallback case where the secrets permission is unavailable, routing the user to the dashboard.

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.